From 5eda1e138fd0a9600c1fb6db4f415976107b53e0 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 03:07:27 +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 --- .../apigateway/v1/ApiGatewayServiceGrpc.java | 1933 ---------- .../v1/ApiGatewayServiceClient.java | 64 +- .../v1/ApiGatewayServiceSettings.java | 30 +- .../cloud/apigateway/v1/gapic_metadata.json | 0 .../cloud/apigateway/v1/package-info.java | 0 .../v1/stub/ApiGatewayServiceStub.java | 6 +- .../stub/ApiGatewayServiceStubSettings.java | 59 +- .../GrpcApiGatewayServiceCallableFactory.java | 0 .../v1/stub/GrpcApiGatewayServiceStub.java | 1 + ...pJsonApiGatewayServiceCallableFactory.java | 105 + .../stub/HttpJsonApiGatewayServiceStub.java | 1118 ++++++ .../ApiGatewayServiceClientHttpJsonTest.java | 1552 ++++++++ .../v1/ApiGatewayServiceClientTest.java | 0 .../apigateway/v1/MockApiGatewayService.java | 0 .../v1/MockApiGatewayServiceImpl.java | 0 .../apigateway/v1/ApiGatewayServiceGrpc.java | 1507 ++++++++ .../com/google/cloud/apigateway/v1/Api.java | 1193 +++--- .../google/cloud/apigateway/v1/ApiConfig.java | 3430 ++++++----------- .../cloud/apigateway/v1/ApiConfigName.java | 0 .../apigateway/v1/ApiConfigOrBuilder.java | 252 +- .../google/cloud/apigateway/v1/ApiName.java | 0 .../cloud/apigateway/v1/ApiOrBuilder.java | 132 +- .../cloud/apigateway/v1/Apigateway.java | 520 +++ .../apigateway/v1/ApigatewayService.java | 138 + .../apigateway/v1/CreateApiConfigRequest.java | 570 ++- .../v1/CreateApiConfigRequestOrBuilder.java | 64 +- .../cloud/apigateway/v1/CreateApiRequest.java | 526 +-- .../v1/CreateApiRequestOrBuilder.java | 52 +- .../apigateway/v1/CreateGatewayRequest.java | 567 ++- .../v1/CreateGatewayRequestOrBuilder.java | 64 +- .../apigateway/v1/DeleteApiConfigRequest.java | 342 +- .../v1/DeleteApiConfigRequestOrBuilder.java | 31 + .../cloud/apigateway/v1/DeleteApiRequest.java | 332 +- .../v1/DeleteApiRequestOrBuilder.java | 31 + .../apigateway/v1/DeleteGatewayRequest.java | 339 +- .../v1/DeleteGatewayRequestOrBuilder.java | 31 + .../google/cloud/apigateway/v1/Gateway.java | 1272 +++--- .../cloud/apigateway/v1/GatewayName.java | 0 .../cloud/apigateway/v1/GatewayOrBuilder.java | 141 +- .../apigateway/v1/GetApiConfigRequest.java | 483 +-- .../v1/GetApiConfigRequestOrBuilder.java | 41 +- .../cloud/apigateway/v1/GetApiRequest.java | 329 +- .../apigateway/v1/GetApiRequestOrBuilder.java | 31 + .../apigateway/v1/GetGatewayRequest.java | 336 +- .../v1/GetGatewayRequestOrBuilder.java | 31 + .../apigateway/v1/ListApiConfigsRequest.java | 612 ++- .../v1/ListApiConfigsRequestOrBuilder.java | 65 +- .../apigateway/v1/ListApiConfigsResponse.java | 579 ++- .../v1/ListApiConfigsResponseOrBuilder.java | 63 +- .../cloud/apigateway/v1/ListApisRequest.java | 602 ++- .../v1/ListApisRequestOrBuilder.java | 65 +- .../cloud/apigateway/v1/ListApisResponse.java | 571 ++- .../v1/ListApisResponseOrBuilder.java | 64 +- .../apigateway/v1/ListGatewaysRequest.java | 612 ++- .../v1/ListGatewaysRequestOrBuilder.java | 65 +- .../apigateway/v1/ListGatewaysResponse.java | 572 ++- .../v1/ListGatewaysResponseOrBuilder.java | 63 +- .../cloud/apigateway/v1/LocationName.java | 0 .../apigateway/v1/OperationMetadata.java | 1521 +++----- .../v1/OperationMetadataOrBuilder.java | 126 +- .../apigateway/v1/UpdateApiConfigRequest.java | 483 +-- .../v1/UpdateApiConfigRequestOrBuilder.java | 46 +- .../cloud/apigateway/v1/UpdateApiRequest.java | 439 +-- .../v1/UpdateApiRequestOrBuilder.java | 34 +- .../apigateway/v1/UpdateGatewayRequest.java | 480 +-- .../v1/UpdateGatewayRequestOrBuilder.java | 46 +- .../cloud/apigateway/v1/apigateway.proto | 0 .../apigateway/v1/apigateway_service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 39 + .../createapi/AsyncCreateApi.java | 49 + .../createapi/AsyncCreateApiLRO.java | 50 + .../createapi/SyncCreateApi.java | 45 + .../SyncCreateApiLocationnameApiString.java | 41 + .../SyncCreateApiStringApiString.java | 41 + .../createapiconfig/AsyncCreateApiConfig.java | 50 + .../AsyncCreateApiConfigLRO.java | 50 + .../createapiconfig/SyncCreateApiConfig.java | 45 + ...CreateApiConfigApinameApiconfigString.java | 42 + ...cCreateApiConfigStringApiconfigString.java | 42 + .../creategateway/AsyncCreateGateway.java | 50 + .../creategateway/AsyncCreateGatewayLRO.java | 50 + .../creategateway/SyncCreateGateway.java | 45 + ...reateGatewayLocationnameGatewayString.java | 42 + .../SyncCreateGatewayStringGatewayString.java | 42 + .../deleteapi/AsyncDeleteApi.java | 46 + .../deleteapi/AsyncDeleteApiLRO.java | 48 + .../deleteapi/SyncDeleteApi.java | 43 + .../deleteapi/SyncDeleteApiApiname.java | 39 + .../deleteapi/SyncDeleteApiString.java | 39 + .../deleteapiconfig/AsyncDeleteApiConfig.java | 47 + .../AsyncDeleteApiConfigLRO.java | 48 + .../deleteapiconfig/SyncDeleteApiConfig.java | 43 + .../SyncDeleteApiConfigApiconfigname.java | 39 + .../SyncDeleteApiConfigString.java | 39 + .../deletegateway/AsyncDeleteGateway.java | 47 + .../deletegateway/AsyncDeleteGatewayLRO.java | 48 + .../deletegateway/SyncDeleteGateway.java | 43 + .../SyncDeleteGatewayGatewayname.java | 39 + .../SyncDeleteGatewayString.java | 39 + .../getapi/AsyncGetApi.java | 44 + .../getapi/SyncGetApi.java | 41 + .../getapi/SyncGetApiApiname.java | 39 + .../getapi/SyncGetApiString.java | 39 + .../getapiconfig/AsyncGetApiConfig.java | 47 + .../getapiconfig/SyncGetApiConfig.java | 43 + .../SyncGetApiConfigApiconfigname.java | 39 + .../getapiconfig/SyncGetApiConfigString.java | 39 + .../getgateway/AsyncGetGateway.java | 46 + .../getgateway/SyncGetGateway.java | 43 + .../getgateway/SyncGetGatewayGatewayname.java | 39 + .../getgateway/SyncGetGatewayString.java | 39 + .../listapiconfigs/AsyncListApiConfigs.java | 53 + .../AsyncListApiConfigsPaged.java | 61 + .../listapiconfigs/SyncListApiConfigs.java | 49 + .../SyncListApiConfigsApiname.java | 41 + .../SyncListApiConfigsString.java | 41 + .../listapis/AsyncListApis.java | 52 + .../listapis/AsyncListApisPaged.java | 60 + .../listapis/SyncListApis.java | 49 + .../listapis/SyncListApisLocationname.java | 41 + .../listapis/SyncListApisString.java | 41 + .../listgateways/AsyncListGateways.java | 53 + .../listgateways/AsyncListGatewaysPaged.java | 61 + .../listgateways/SyncListGateways.java | 49 + .../SyncListGatewaysLocationname.java | 41 + .../listgateways/SyncListGatewaysString.java | 41 + .../updateapi/AsyncUpdateApi.java | 48 + .../updateapi/AsyncUpdateApiLRO.java | 49 + .../updateapi/SyncUpdateApi.java | 44 + .../updateapi/SyncUpdateApiApiFieldmask.java | 40 + .../updateapiconfig/AsyncUpdateApiConfig.java | 49 + .../AsyncUpdateApiConfigLRO.java | 49 + .../updateapiconfig/SyncUpdateApiConfig.java | 44 + ...SyncUpdateApiConfigApiconfigFieldmask.java | 41 + .../updategateway/AsyncUpdateGateway.java | 49 + .../updategateway/AsyncUpdateGatewayLRO.java | 49 + .../updategateway/SyncUpdateGateway.java | 44 + .../SyncUpdateGatewayGatewayFieldmask.java | 40 + .../getgateway/SyncGetGateway.java | 46 + .../getgateway/SyncGetGateway.java | 47 + .../cloud/apigateway/v1/Apigateway.java | 595 --- .../apigateway/v1/ApigatewayService.java | 151 - .../v1/DeleteApiConfigRequestOrBuilder.java | 56 - .../v1/DeleteApiRequestOrBuilder.java | 56 - .../v1/DeleteGatewayRequestOrBuilder.java | 56 - .../apigateway/v1/GetApiRequestOrBuilder.java | 56 - .../v1/GetGatewayRequestOrBuilder.java | 56 - 149 files changed, 15048 insertions(+), 14062 deletions(-) delete mode 100644 grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java rename {google-cloud-api-gateway => owl-bot-staging/v1/google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java (97%) rename {google-cloud-api-gateway => owl-bot-staging/v1/google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java (94%) rename {google-cloud-api-gateway => owl-bot-staging/v1/google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/gapic_metadata.json (100%) rename {google-cloud-api-gateway => owl-bot-staging/v1/google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/package-info.java (100%) rename {google-cloud-api-gateway => owl-bot-staging/v1/google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStub.java (98%) rename {google-cloud-api-gateway => owl-bot-staging/v1/google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java (95%) rename {google-cloud-api-gateway => owl-bot-staging/v1/google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceCallableFactory.java (100%) rename {google-cloud-api-gateway => owl-bot-staging/v1/google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceStub.java (99%) create mode 100644 owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceStub.java create mode 100644 owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientHttpJsonTest.java rename {google-cloud-api-gateway => owl-bot-staging/v1/google-cloud-api-gateway}/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientTest.java (100%) rename {google-cloud-api-gateway => owl-bot-staging/v1/google-cloud-api-gateway}/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayService.java (100%) rename {google-cloud-api-gateway => owl-bot-staging/v1/google-cloud-api-gateway}/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayServiceImpl.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/Api.java (65%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ApiConfig.java (69%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ApiConfigName.java (100%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ApiConfigOrBuilder.java (69%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ApiName.java (100%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ApiOrBuilder.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Apigateway.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApigatewayService.java rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequest.java (64%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequestOrBuilder.java (53%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequest.java (68%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequestOrBuilder.java (63%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequest.java (64%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequestOrBuilder.java (53%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequestOrBuilder.java rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequestOrBuilder.java rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequestOrBuilder.java rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/Gateway.java (66%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/GatewayName.java (100%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/GatewayOrBuilder.java (71%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequest.java (67%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequestOrBuilder.java (56%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/GetApiRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequestOrBuilder.java rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequestOrBuilder.java rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequest.java (69%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequestOrBuilder.java (57%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponse.java (73%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponseOrBuilder.java (70%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListApisRequest.java (69%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListApisRequestOrBuilder.java (57%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListApisResponse.java (73%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListApisResponseOrBuilder.java (67%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequest.java (68%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequestOrBuilder.java (57%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponse.java (73%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponseOrBuilder.java (69%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/LocationName.java (100%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/OperationMetadata.java (69%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/OperationMetadataOrBuilder.java (69%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequest.java (68%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequestOrBuilder.java (67%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequest.java (72%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequestOrBuilder.java (77%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequest.java (68%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequestOrBuilder.java (67%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/proto/google/cloud/apigateway/v1/apigateway.proto (100%) rename {proto-google-cloud-api-gateway-v1 => owl-bot-staging/v1/proto-google-cloud-api-gateway-v1}/src/main/proto/google/cloud/apigateway/v1/apigateway_service.proto (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApi.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApiLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApi.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiLocationnameApiString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiStringApiString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfigLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigApinameApiconfigString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigStringApiconfigString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGateway.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGatewayLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGateway.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayLocationnameGatewayString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayStringGatewayString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApi.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApiLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApi.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiApiname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfigLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigApiconfigname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGateway.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGatewayLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGateway.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayGatewayname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/AsyncGetApi.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApi.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiApiname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/AsyncGetApiConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigApiconfigname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/AsyncGetGateway.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGateway.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayGatewayname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigs.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigs.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsApiname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApis.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApisPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApis.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisLocationname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGateways.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGatewaysPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGateways.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysLocationname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApi.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApiLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApi.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApiApiFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfigLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfig.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfigApiconfigFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGateway.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGatewayLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGateway.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGatewayGatewayFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayservicesettings/getgateway/SyncGetGateway.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/stub/apigatewayservicestubsettings/getgateway/SyncGetGateway.java delete mode 100644 proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Apigateway.java delete mode 100644 proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApigatewayService.java delete mode 100644 proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequestOrBuilder.java delete mode 100644 proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequestOrBuilder.java delete mode 100644 proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequestOrBuilder.java delete mode 100644 proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequestOrBuilder.java diff --git a/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java b/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java deleted file mode 100644 index 252889e..0000000 --- a/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java +++ /dev/null @@ -1,1933 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.apigateway.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The API Gateway Service is the interface for managing API Gateways.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/apigateway/v1/apigateway_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ApiGatewayServiceGrpc { - - private ApiGatewayServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.apigateway.v1.ApiGatewayService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.ListGatewaysRequest, - com.google.cloud.apigateway.v1.ListGatewaysResponse> - getListGatewaysMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListGateways", - requestType = com.google.cloud.apigateway.v1.ListGatewaysRequest.class, - responseType = com.google.cloud.apigateway.v1.ListGatewaysResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.ListGatewaysRequest, - com.google.cloud.apigateway.v1.ListGatewaysResponse> - getListGatewaysMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.ListGatewaysRequest, - com.google.cloud.apigateway.v1.ListGatewaysResponse> - getListGatewaysMethod; - if ((getListGatewaysMethod = ApiGatewayServiceGrpc.getListGatewaysMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getListGatewaysMethod = ApiGatewayServiceGrpc.getListGatewaysMethod) == null) { - ApiGatewayServiceGrpc.getListGatewaysMethod = - getListGatewaysMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGateways")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.ListGatewaysRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.ListGatewaysResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ApiGatewayServiceMethodDescriptorSupplier("ListGateways")) - .build(); - } - } - } - return getListGatewaysMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.GetGatewayRequest, com.google.cloud.apigateway.v1.Gateway> - getGetGatewayMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGateway", - requestType = com.google.cloud.apigateway.v1.GetGatewayRequest.class, - responseType = com.google.cloud.apigateway.v1.Gateway.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.GetGatewayRequest, com.google.cloud.apigateway.v1.Gateway> - getGetGatewayMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.GetGatewayRequest, - com.google.cloud.apigateway.v1.Gateway> - getGetGatewayMethod; - if ((getGetGatewayMethod = ApiGatewayServiceGrpc.getGetGatewayMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getGetGatewayMethod = ApiGatewayServiceGrpc.getGetGatewayMethod) == null) { - ApiGatewayServiceGrpc.getGetGatewayMethod = - getGetGatewayMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGateway")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.GetGatewayRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.Gateway.getDefaultInstance())) - .setSchemaDescriptor( - new ApiGatewayServiceMethodDescriptorSupplier("GetGateway")) - .build(); - } - } - } - return getGetGatewayMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.CreateGatewayRequest, com.google.longrunning.Operation> - getCreateGatewayMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateGateway", - requestType = com.google.cloud.apigateway.v1.CreateGatewayRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.CreateGatewayRequest, com.google.longrunning.Operation> - getCreateGatewayMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.CreateGatewayRequest, com.google.longrunning.Operation> - getCreateGatewayMethod; - if ((getCreateGatewayMethod = ApiGatewayServiceGrpc.getCreateGatewayMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getCreateGatewayMethod = ApiGatewayServiceGrpc.getCreateGatewayMethod) == null) { - ApiGatewayServiceGrpc.getCreateGatewayMethod = - getCreateGatewayMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGateway")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.CreateGatewayRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ApiGatewayServiceMethodDescriptorSupplier("CreateGateway")) - .build(); - } - } - } - return getCreateGatewayMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.UpdateGatewayRequest, com.google.longrunning.Operation> - getUpdateGatewayMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateGateway", - requestType = com.google.cloud.apigateway.v1.UpdateGatewayRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.UpdateGatewayRequest, com.google.longrunning.Operation> - getUpdateGatewayMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.UpdateGatewayRequest, com.google.longrunning.Operation> - getUpdateGatewayMethod; - if ((getUpdateGatewayMethod = ApiGatewayServiceGrpc.getUpdateGatewayMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getUpdateGatewayMethod = ApiGatewayServiceGrpc.getUpdateGatewayMethod) == null) { - ApiGatewayServiceGrpc.getUpdateGatewayMethod = - getUpdateGatewayMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateGateway")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.UpdateGatewayRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ApiGatewayServiceMethodDescriptorSupplier("UpdateGateway")) - .build(); - } - } - } - return getUpdateGatewayMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.DeleteGatewayRequest, com.google.longrunning.Operation> - getDeleteGatewayMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteGateway", - requestType = com.google.cloud.apigateway.v1.DeleteGatewayRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.DeleteGatewayRequest, com.google.longrunning.Operation> - getDeleteGatewayMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.DeleteGatewayRequest, com.google.longrunning.Operation> - getDeleteGatewayMethod; - if ((getDeleteGatewayMethod = ApiGatewayServiceGrpc.getDeleteGatewayMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getDeleteGatewayMethod = ApiGatewayServiceGrpc.getDeleteGatewayMethod) == null) { - ApiGatewayServiceGrpc.getDeleteGatewayMethod = - getDeleteGatewayMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGateway")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.DeleteGatewayRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ApiGatewayServiceMethodDescriptorSupplier("DeleteGateway")) - .build(); - } - } - } - return getDeleteGatewayMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.ListApisRequest, - com.google.cloud.apigateway.v1.ListApisResponse> - getListApisMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListApis", - requestType = com.google.cloud.apigateway.v1.ListApisRequest.class, - responseType = com.google.cloud.apigateway.v1.ListApisResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.ListApisRequest, - com.google.cloud.apigateway.v1.ListApisResponse> - getListApisMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.ListApisRequest, - com.google.cloud.apigateway.v1.ListApisResponse> - getListApisMethod; - if ((getListApisMethod = ApiGatewayServiceGrpc.getListApisMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getListApisMethod = ApiGatewayServiceGrpc.getListApisMethod) == null) { - ApiGatewayServiceGrpc.getListApisMethod = - getListApisMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListApis")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.ListApisRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.ListApisResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ApiGatewayServiceMethodDescriptorSupplier("ListApis")) - .build(); - } - } - } - return getListApisMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.GetApiRequest, com.google.cloud.apigateway.v1.Api> - getGetApiMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetApi", - requestType = com.google.cloud.apigateway.v1.GetApiRequest.class, - responseType = com.google.cloud.apigateway.v1.Api.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.GetApiRequest, com.google.cloud.apigateway.v1.Api> - getGetApiMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.GetApiRequest, com.google.cloud.apigateway.v1.Api> - getGetApiMethod; - if ((getGetApiMethod = ApiGatewayServiceGrpc.getGetApiMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getGetApiMethod = ApiGatewayServiceGrpc.getGetApiMethod) == null) { - ApiGatewayServiceGrpc.getGetApiMethod = - getGetApiMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetApi")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.GetApiRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.Api.getDefaultInstance())) - .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("GetApi")) - .build(); - } - } - } - return getGetApiMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.CreateApiRequest, com.google.longrunning.Operation> - getCreateApiMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateApi", - requestType = com.google.cloud.apigateway.v1.CreateApiRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.CreateApiRequest, com.google.longrunning.Operation> - getCreateApiMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.CreateApiRequest, com.google.longrunning.Operation> - getCreateApiMethod; - if ((getCreateApiMethod = ApiGatewayServiceGrpc.getCreateApiMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getCreateApiMethod = ApiGatewayServiceGrpc.getCreateApiMethod) == null) { - ApiGatewayServiceGrpc.getCreateApiMethod = - getCreateApiMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateApi")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.CreateApiRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ApiGatewayServiceMethodDescriptorSupplier("CreateApi")) - .build(); - } - } - } - return getCreateApiMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.UpdateApiRequest, com.google.longrunning.Operation> - getUpdateApiMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateApi", - requestType = com.google.cloud.apigateway.v1.UpdateApiRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.UpdateApiRequest, com.google.longrunning.Operation> - getUpdateApiMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.UpdateApiRequest, com.google.longrunning.Operation> - getUpdateApiMethod; - if ((getUpdateApiMethod = ApiGatewayServiceGrpc.getUpdateApiMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getUpdateApiMethod = ApiGatewayServiceGrpc.getUpdateApiMethod) == null) { - ApiGatewayServiceGrpc.getUpdateApiMethod = - getUpdateApiMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateApi")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.UpdateApiRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ApiGatewayServiceMethodDescriptorSupplier("UpdateApi")) - .build(); - } - } - } - return getUpdateApiMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.DeleteApiRequest, com.google.longrunning.Operation> - getDeleteApiMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteApi", - requestType = com.google.cloud.apigateway.v1.DeleteApiRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.DeleteApiRequest, com.google.longrunning.Operation> - getDeleteApiMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.DeleteApiRequest, com.google.longrunning.Operation> - getDeleteApiMethod; - if ((getDeleteApiMethod = ApiGatewayServiceGrpc.getDeleteApiMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getDeleteApiMethod = ApiGatewayServiceGrpc.getDeleteApiMethod) == null) { - ApiGatewayServiceGrpc.getDeleteApiMethod = - getDeleteApiMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteApi")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.DeleteApiRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ApiGatewayServiceMethodDescriptorSupplier("DeleteApi")) - .build(); - } - } - } - return getDeleteApiMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.ListApiConfigsRequest, - com.google.cloud.apigateway.v1.ListApiConfigsResponse> - getListApiConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListApiConfigs", - requestType = com.google.cloud.apigateway.v1.ListApiConfigsRequest.class, - responseType = com.google.cloud.apigateway.v1.ListApiConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.ListApiConfigsRequest, - com.google.cloud.apigateway.v1.ListApiConfigsResponse> - getListApiConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.ListApiConfigsRequest, - com.google.cloud.apigateway.v1.ListApiConfigsResponse> - getListApiConfigsMethod; - if ((getListApiConfigsMethod = ApiGatewayServiceGrpc.getListApiConfigsMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getListApiConfigsMethod = ApiGatewayServiceGrpc.getListApiConfigsMethod) == null) { - ApiGatewayServiceGrpc.getListApiConfigsMethod = - getListApiConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListApiConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.ListApiConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.ListApiConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ApiGatewayServiceMethodDescriptorSupplier("ListApiConfigs")) - .build(); - } - } - } - return getListApiConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.GetApiConfigRequest, - com.google.cloud.apigateway.v1.ApiConfig> - getGetApiConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetApiConfig", - requestType = com.google.cloud.apigateway.v1.GetApiConfigRequest.class, - responseType = com.google.cloud.apigateway.v1.ApiConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.GetApiConfigRequest, - com.google.cloud.apigateway.v1.ApiConfig> - getGetApiConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.GetApiConfigRequest, - com.google.cloud.apigateway.v1.ApiConfig> - getGetApiConfigMethod; - if ((getGetApiConfigMethod = ApiGatewayServiceGrpc.getGetApiConfigMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getGetApiConfigMethod = ApiGatewayServiceGrpc.getGetApiConfigMethod) == null) { - ApiGatewayServiceGrpc.getGetApiConfigMethod = - getGetApiConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetApiConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.GetApiConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance())) - .setSchemaDescriptor( - new ApiGatewayServiceMethodDescriptorSupplier("GetApiConfig")) - .build(); - } - } - } - return getGetApiConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.CreateApiConfigRequest, com.google.longrunning.Operation> - getCreateApiConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateApiConfig", - requestType = com.google.cloud.apigateway.v1.CreateApiConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.CreateApiConfigRequest, com.google.longrunning.Operation> - getCreateApiConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.CreateApiConfigRequest, com.google.longrunning.Operation> - getCreateApiConfigMethod; - if ((getCreateApiConfigMethod = ApiGatewayServiceGrpc.getCreateApiConfigMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getCreateApiConfigMethod = ApiGatewayServiceGrpc.getCreateApiConfigMethod) == null) { - ApiGatewayServiceGrpc.getCreateApiConfigMethod = - getCreateApiConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateApiConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.CreateApiConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ApiGatewayServiceMethodDescriptorSupplier("CreateApiConfig")) - .build(); - } - } - } - return getCreateApiConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.UpdateApiConfigRequest, com.google.longrunning.Operation> - getUpdateApiConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateApiConfig", - requestType = com.google.cloud.apigateway.v1.UpdateApiConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.UpdateApiConfigRequest, com.google.longrunning.Operation> - getUpdateApiConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.UpdateApiConfigRequest, com.google.longrunning.Operation> - getUpdateApiConfigMethod; - if ((getUpdateApiConfigMethod = ApiGatewayServiceGrpc.getUpdateApiConfigMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getUpdateApiConfigMethod = ApiGatewayServiceGrpc.getUpdateApiConfigMethod) == null) { - ApiGatewayServiceGrpc.getUpdateApiConfigMethod = - getUpdateApiConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateApiConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.UpdateApiConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ApiGatewayServiceMethodDescriptorSupplier("UpdateApiConfig")) - .build(); - } - } - } - return getUpdateApiConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.DeleteApiConfigRequest, com.google.longrunning.Operation> - getDeleteApiConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteApiConfig", - requestType = com.google.cloud.apigateway.v1.DeleteApiConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.DeleteApiConfigRequest, com.google.longrunning.Operation> - getDeleteApiConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.apigateway.v1.DeleteApiConfigRequest, com.google.longrunning.Operation> - getDeleteApiConfigMethod; - if ((getDeleteApiConfigMethod = ApiGatewayServiceGrpc.getDeleteApiConfigMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getDeleteApiConfigMethod = ApiGatewayServiceGrpc.getDeleteApiConfigMethod) == null) { - ApiGatewayServiceGrpc.getDeleteApiConfigMethod = - getDeleteApiConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteApiConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.DeleteApiConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ApiGatewayServiceMethodDescriptorSupplier("DeleteApiConfig")) - .build(); - } - } - } - return getDeleteApiConfigMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ApiGatewayServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ApiGatewayServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApiGatewayServiceStub(channel, callOptions); - } - }; - return ApiGatewayServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ApiGatewayServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ApiGatewayServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApiGatewayServiceBlockingStub(channel, callOptions); - } - }; - return ApiGatewayServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ApiGatewayServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ApiGatewayServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApiGatewayServiceFutureStub(channel, callOptions); - } - }; - return ApiGatewayServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The API Gateway Service is the interface for managing API Gateways.
-   * 
- */ - public abstract static class ApiGatewayServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists Gateways in a given project and location.
-     * 
- */ - public void listGateways( - com.google.cloud.apigateway.v1.ListGatewaysRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListGatewaysMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Gateway.
-     * 
- */ - public void getGateway( - com.google.cloud.apigateway.v1.GetGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGatewayMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Gateway in a given project and location.
-     * 
- */ - public void createGateway( - com.google.cloud.apigateway.v1.CreateGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateGatewayMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Gateway.
-     * 
- */ - public void updateGateway( - com.google.cloud.apigateway.v1.UpdateGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateGatewayMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single Gateway.
-     * 
- */ - public void deleteGateway( - com.google.cloud.apigateway.v1.DeleteGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteGatewayMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists Apis in a given project and location.
-     * 
- */ - public void listApis( - com.google.cloud.apigateway.v1.ListApisRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListApisMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Api.
-     * 
- */ - public void getApi( - com.google.cloud.apigateway.v1.GetApiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetApiMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Api in a given project and location.
-     * 
- */ - public void createApi( - com.google.cloud.apigateway.v1.CreateApiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateApiMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Api.
-     * 
- */ - public void updateApi( - com.google.cloud.apigateway.v1.UpdateApiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateApiMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single Api.
-     * 
- */ - public void deleteApi( - com.google.cloud.apigateway.v1.DeleteApiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteApiMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ApiConfigs in a given project and location.
-     * 
- */ - public void listApiConfigs( - com.google.cloud.apigateway.v1.ListApiConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListApiConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single ApiConfig.
-     * 
- */ - public void getApiConfig( - com.google.cloud.apigateway.v1.GetApiConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetApiConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new ApiConfig in a given project and location.
-     * 
- */ - public void createApiConfig( - com.google.cloud.apigateway.v1.CreateApiConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateApiConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single ApiConfig.
-     * 
- */ - public void updateApiConfig( - com.google.cloud.apigateway.v1.UpdateApiConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateApiConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single ApiConfig.
-     * 
- */ - public void deleteApiConfig( - com.google.cloud.apigateway.v1.DeleteApiConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteApiConfigMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListGatewaysMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.ListGatewaysRequest, - com.google.cloud.apigateway.v1.ListGatewaysResponse>( - this, METHODID_LIST_GATEWAYS))) - .addMethod( - getGetGatewayMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.GetGatewayRequest, - com.google.cloud.apigateway.v1.Gateway>(this, METHODID_GET_GATEWAY))) - .addMethod( - getCreateGatewayMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.CreateGatewayRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_GATEWAY))) - .addMethod( - getUpdateGatewayMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.UpdateGatewayRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_GATEWAY))) - .addMethod( - getDeleteGatewayMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.DeleteGatewayRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_GATEWAY))) - .addMethod( - getListApisMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.ListApisRequest, - com.google.cloud.apigateway.v1.ListApisResponse>(this, METHODID_LIST_APIS))) - .addMethod( - getGetApiMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.GetApiRequest, - com.google.cloud.apigateway.v1.Api>(this, METHODID_GET_API))) - .addMethod( - getCreateApiMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.CreateApiRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_API))) - .addMethod( - getUpdateApiMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.UpdateApiRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_API))) - .addMethod( - getDeleteApiMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.DeleteApiRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_API))) - .addMethod( - getListApiConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.ListApiConfigsRequest, - com.google.cloud.apigateway.v1.ListApiConfigsResponse>( - this, METHODID_LIST_API_CONFIGS))) - .addMethod( - getGetApiConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.GetApiConfigRequest, - com.google.cloud.apigateway.v1.ApiConfig>(this, METHODID_GET_API_CONFIG))) - .addMethod( - getCreateApiConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.CreateApiConfigRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_API_CONFIG))) - .addMethod( - getUpdateApiConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.UpdateApiConfigRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_API_CONFIG))) - .addMethod( - getDeleteApiConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.DeleteApiConfigRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_API_CONFIG))) - .build(); - } - } - - /** - * - * - *
-   * The API Gateway Service is the interface for managing API Gateways.
-   * 
- */ - public static final class ApiGatewayServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private ApiGatewayServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ApiGatewayServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApiGatewayServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Gateways in a given project and location.
-     * 
- */ - public void listGateways( - com.google.cloud.apigateway.v1.ListGatewaysRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGatewaysMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Gateway.
-     * 
- */ - public void getGateway( - com.google.cloud.apigateway.v1.GetGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGatewayMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a new Gateway in a given project and location.
-     * 
- */ - public void createGateway( - com.google.cloud.apigateway.v1.CreateGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGatewayMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Gateway.
-     * 
- */ - public void updateGateway( - com.google.cloud.apigateway.v1.UpdateGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateGatewayMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single Gateway.
-     * 
- */ - public void deleteGateway( - com.google.cloud.apigateway.v1.DeleteGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGatewayMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists Apis in a given project and location.
-     * 
- */ - public void listApis( - com.google.cloud.apigateway.v1.ListApisRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListApisMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Api.
-     * 
- */ - public void getApi( - com.google.cloud.apigateway.v1.GetApiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetApiMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a new Api in a given project and location.
-     * 
- */ - public void createApi( - com.google.cloud.apigateway.v1.CreateApiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateApiMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Api.
-     * 
- */ - public void updateApi( - com.google.cloud.apigateway.v1.UpdateApiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateApiMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes a single Api.
-     * 
- */ - public void deleteApi( - com.google.cloud.apigateway.v1.DeleteApiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteApiMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists ApiConfigs in a given project and location.
-     * 
- */ - public void listApiConfigs( - com.google.cloud.apigateway.v1.ListApiConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListApiConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single ApiConfig.
-     * 
- */ - public void getApiConfig( - com.google.cloud.apigateway.v1.GetApiConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetApiConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new ApiConfig in a given project and location.
-     * 
- */ - public void createApiConfig( - com.google.cloud.apigateway.v1.CreateApiConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateApiConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single ApiConfig.
-     * 
- */ - public void updateApiConfig( - com.google.cloud.apigateway.v1.UpdateApiConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateApiConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single ApiConfig.
-     * 
- */ - public void deleteApiConfig( - com.google.cloud.apigateway.v1.DeleteApiConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteApiConfigMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The API Gateway Service is the interface for managing API Gateways.
-   * 
- */ - public static final class ApiGatewayServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ApiGatewayServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ApiGatewayServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApiGatewayServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Gateways in a given project and location.
-     * 
- */ - public com.google.cloud.apigateway.v1.ListGatewaysResponse listGateways( - com.google.cloud.apigateway.v1.ListGatewaysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGatewaysMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single Gateway.
-     * 
- */ - public com.google.cloud.apigateway.v1.Gateway getGateway( - com.google.cloud.apigateway.v1.GetGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGatewayMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Gateway in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createGateway( - com.google.cloud.apigateway.v1.CreateGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGatewayMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Gateway.
-     * 
- */ - public com.google.longrunning.Operation updateGateway( - com.google.cloud.apigateway.v1.UpdateGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateGatewayMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single Gateway.
-     * 
- */ - public com.google.longrunning.Operation deleteGateway( - com.google.cloud.apigateway.v1.DeleteGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGatewayMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists Apis in a given project and location.
-     * 
- */ - public com.google.cloud.apigateway.v1.ListApisResponse listApis( - com.google.cloud.apigateway.v1.ListApisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListApisMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single Api.
-     * 
- */ - public com.google.cloud.apigateway.v1.Api getApi( - com.google.cloud.apigateway.v1.GetApiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetApiMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Api in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createApi( - com.google.cloud.apigateway.v1.CreateApiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateApiMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Api.
-     * 
- */ - public com.google.longrunning.Operation updateApi( - com.google.cloud.apigateway.v1.UpdateApiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateApiMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single Api.
-     * 
- */ - public com.google.longrunning.Operation deleteApi( - com.google.cloud.apigateway.v1.DeleteApiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteApiMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ApiConfigs in a given project and location.
-     * 
- */ - public com.google.cloud.apigateway.v1.ListApiConfigsResponse listApiConfigs( - com.google.cloud.apigateway.v1.ListApiConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListApiConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single ApiConfig.
-     * 
- */ - public com.google.cloud.apigateway.v1.ApiConfig getApiConfig( - com.google.cloud.apigateway.v1.GetApiConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetApiConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new ApiConfig in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createApiConfig( - com.google.cloud.apigateway.v1.CreateApiConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateApiConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single ApiConfig.
-     * 
- */ - public com.google.longrunning.Operation updateApiConfig( - com.google.cloud.apigateway.v1.UpdateApiConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateApiConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single ApiConfig.
-     * 
- */ - public com.google.longrunning.Operation deleteApiConfig( - com.google.cloud.apigateway.v1.DeleteApiConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteApiConfigMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The API Gateway Service is the interface for managing API Gateways.
-   * 
- */ - public static final class ApiGatewayServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ApiGatewayServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ApiGatewayServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApiGatewayServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Gateways in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.apigateway.v1.ListGatewaysResponse> - listGateways(com.google.cloud.apigateway.v1.ListGatewaysRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGatewaysMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single Gateway.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.apigateway.v1.Gateway> - getGateway(com.google.cloud.apigateway.v1.GetGatewayRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGatewayMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Gateway in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createGateway(com.google.cloud.apigateway.v1.CreateGatewayRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateGatewayMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Gateway.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateGateway(com.google.cloud.apigateway.v1.UpdateGatewayRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateGatewayMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single Gateway.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteGateway(com.google.cloud.apigateway.v1.DeleteGatewayRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteGatewayMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists Apis in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.apigateway.v1.ListApisResponse> - listApis(com.google.cloud.apigateway.v1.ListApisRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListApisMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single Api.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getApi(com.google.cloud.apigateway.v1.GetApiRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetApiMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Api in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createApi(com.google.cloud.apigateway.v1.CreateApiRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateApiMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Api.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateApi(com.google.cloud.apigateway.v1.UpdateApiRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateApiMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single Api.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteApi(com.google.cloud.apigateway.v1.DeleteApiRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteApiMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ApiConfigs in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.apigateway.v1.ListApiConfigsResponse> - listApiConfigs(com.google.cloud.apigateway.v1.ListApiConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListApiConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single ApiConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.apigateway.v1.ApiConfig> - getApiConfig(com.google.cloud.apigateway.v1.GetApiConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetApiConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new ApiConfig in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createApiConfig(com.google.cloud.apigateway.v1.CreateApiConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateApiConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single ApiConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateApiConfig(com.google.cloud.apigateway.v1.UpdateApiConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateApiConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single ApiConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteApiConfig(com.google.cloud.apigateway.v1.DeleteApiConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteApiConfigMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_GATEWAYS = 0; - private static final int METHODID_GET_GATEWAY = 1; - private static final int METHODID_CREATE_GATEWAY = 2; - private static final int METHODID_UPDATE_GATEWAY = 3; - private static final int METHODID_DELETE_GATEWAY = 4; - private static final int METHODID_LIST_APIS = 5; - private static final int METHODID_GET_API = 6; - private static final int METHODID_CREATE_API = 7; - private static final int METHODID_UPDATE_API = 8; - private static final int METHODID_DELETE_API = 9; - private static final int METHODID_LIST_API_CONFIGS = 10; - private static final int METHODID_GET_API_CONFIG = 11; - private static final int METHODID_CREATE_API_CONFIG = 12; - private static final int METHODID_UPDATE_API_CONFIG = 13; - private static final int METHODID_DELETE_API_CONFIG = 14; - - 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 ApiGatewayServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ApiGatewayServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_GATEWAYS: - serviceImpl.listGateways( - (com.google.cloud.apigateway.v1.ListGatewaysRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_GATEWAY: - serviceImpl.getGateway( - (com.google.cloud.apigateway.v1.GetGatewayRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_GATEWAY: - serviceImpl.createGateway( - (com.google.cloud.apigateway.v1.CreateGatewayRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_GATEWAY: - serviceImpl.updateGateway( - (com.google.cloud.apigateway.v1.UpdateGatewayRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_GATEWAY: - serviceImpl.deleteGateway( - (com.google.cloud.apigateway.v1.DeleteGatewayRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_APIS: - serviceImpl.listApis( - (com.google.cloud.apigateway.v1.ListApisRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_API: - serviceImpl.getApi( - (com.google.cloud.apigateway.v1.GetApiRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_API: - serviceImpl.createApi( - (com.google.cloud.apigateway.v1.CreateApiRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_API: - serviceImpl.updateApi( - (com.google.cloud.apigateway.v1.UpdateApiRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_API: - serviceImpl.deleteApi( - (com.google.cloud.apigateway.v1.DeleteApiRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_API_CONFIGS: - serviceImpl.listApiConfigs( - (com.google.cloud.apigateway.v1.ListApiConfigsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_API_CONFIG: - serviceImpl.getApiConfig( - (com.google.cloud.apigateway.v1.GetApiConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_API_CONFIG: - serviceImpl.createApiConfig( - (com.google.cloud.apigateway.v1.CreateApiConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_API_CONFIG: - serviceImpl.updateApiConfig( - (com.google.cloud.apigateway.v1.UpdateApiConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_API_CONFIG: - serviceImpl.deleteApiConfig( - (com.google.cloud.apigateway.v1.DeleteApiConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class ApiGatewayServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ApiGatewayServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.apigateway.v1.ApigatewayService.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ApiGatewayService"); - } - } - - private static final class ApiGatewayServiceFileDescriptorSupplier - extends ApiGatewayServiceBaseDescriptorSupplier { - ApiGatewayServiceFileDescriptorSupplier() {} - } - - private static final class ApiGatewayServiceMethodDescriptorSupplier - extends ApiGatewayServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ApiGatewayServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ApiGatewayServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ApiGatewayServiceFileDescriptorSupplier()) - .addMethod(getListGatewaysMethod()) - .addMethod(getGetGatewayMethod()) - .addMethod(getCreateGatewayMethod()) - .addMethod(getUpdateGatewayMethod()) - .addMethod(getDeleteGatewayMethod()) - .addMethod(getListApisMethod()) - .addMethod(getGetApiMethod()) - .addMethod(getCreateApiMethod()) - .addMethod(getUpdateApiMethod()) - .addMethod(getDeleteApiMethod()) - .addMethod(getListApiConfigsMethod()) - .addMethod(getGetApiConfigMethod()) - .addMethod(getCreateApiConfigMethod()) - .addMethod(getUpdateApiConfigMethod()) - .addMethod(getDeleteApiConfigMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java similarity index 97% rename from google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java rename to owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java index b8b2403..3044faf 100644 --- a/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java +++ b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java @@ -19,6 +19,7 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -30,7 +31,6 @@ import com.google.cloud.apigateway.v1.stub.ApiGatewayServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; @@ -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. *
* @@ -105,13 +105,29 @@ * ApiGatewayServiceClient.create(apiGatewayServiceSettings); * } * + *

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.
+ * ApiGatewayServiceSettings apiGatewayServiceSettings =
+ *     ApiGatewayServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             ApiGatewayServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * ApiGatewayServiceClient apiGatewayServiceClient =
+ *     ApiGatewayServiceClient.create(apiGatewayServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class ApiGatewayServiceClient implements BackgroundResource { private final ApiGatewayServiceSettings settings; private final ApiGatewayServiceStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of ApiGatewayServiceClient with default settings. */ public static final ApiGatewayServiceClient create() throws IOException { @@ -143,13 +159,17 @@ public static final ApiGatewayServiceClient create(ApiGatewayServiceStub stub) { protected ApiGatewayServiceClient(ApiGatewayServiceSettings settings) throws IOException { this.settings = settings; this.stub = ((ApiGatewayServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected ApiGatewayServiceClient(ApiGatewayServiceStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final ApiGatewayServiceSettings getSettings() { @@ -164,10 +184,18 @@ public ApiGatewayServiceStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists Gateways in a given project and location. @@ -2116,10 +2144,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListGatewaysPagedResponse extends AbstractPagedListResponse< - ListGatewaysRequest, - ListGatewaysResponse, - Gateway, - ListGatewaysPage, + ListGatewaysRequest, ListGatewaysResponse, Gateway, ListGatewaysPage, ListGatewaysFixedSizeCollection> { public static ApiFuture createAsync( @@ -2168,10 +2193,7 @@ public ApiFuture createPageAsync( public static class ListGatewaysFixedSizeCollection extends AbstractFixedSizeCollection< - ListGatewaysRequest, - ListGatewaysResponse, - Gateway, - ListGatewaysPage, + ListGatewaysRequest, ListGatewaysResponse, Gateway, ListGatewaysPage, ListGatewaysFixedSizeCollection> { private ListGatewaysFixedSizeCollection(List pages, int collectionSize) { @@ -2254,10 +2276,7 @@ protected ListApisFixedSizeCollection createCollection( public static class ListApiConfigsPagedResponse extends AbstractPagedListResponse< - ListApiConfigsRequest, - ListApiConfigsResponse, - ApiConfig, - ListApiConfigsPage, + ListApiConfigsRequest, ListApiConfigsResponse, ApiConfig, ListApiConfigsPage, ListApiConfigsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2307,10 +2326,7 @@ public ApiFuture createPageAsync( public static class ListApiConfigsFixedSizeCollection extends AbstractFixedSizeCollection< - ListApiConfigsRequest, - ListApiConfigsResponse, - ApiConfig, - ListApiConfigsPage, + ListApiConfigsRequest, ListApiConfigsResponse, ApiConfig, ListApiConfigsPage, ListApiConfigsFixedSizeCollection> { private ListApiConfigsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java similarity index 94% rename from google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java rename to owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java index babbd4c..22acbfa 100644 --- a/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java @@ -25,11 +25,13 @@ 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.OperationCallSettings; 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.apigateway.v1.stub.ApiGatewayServiceStubSettings; @@ -46,9 +48,9 @@ *

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

    - *
  • The default service address (apigateway.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 (apigateway.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 @@ -234,11 +236,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return ApiGatewayServiceStubSettings.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 ApiGatewayServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ApiGatewayServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return ApiGatewayServiceStubSettings.defaultTransportChannelProvider(); } @@ -248,11 +257,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return ApiGatewayServiceStubSettings.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); @@ -290,6 +305,11 @@ private static Builder createDefault() { return new Builder(ApiGatewayServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(ApiGatewayServiceStubSettings.newHttpJsonBuilder()); + } + public ApiGatewayServiceStubSettings.Builder getStubSettingsBuilder() { return ((ApiGatewayServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/gapic_metadata.json similarity index 100% rename from google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/gapic_metadata.json diff --git a/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/package-info.java b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/package-info.java similarity index 100% rename from google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/package-info.java diff --git a/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStub.java b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStub.java similarity index 98% rename from google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStub.java rename to owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStub.java index 5bad47c..fd58d76 100644 --- a/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStub.java @@ -60,7 +60,11 @@ public abstract class ApiGatewayServiceStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public UnaryCallable listGatewaysPagedCallable() { diff --git a/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java similarity index 95% rename from google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java index 0861394..acc0b42 100644 --- a/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java @@ -30,6 +30,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +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.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -86,9 +89,9 @@ *

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

    - *
  • The default service address (apigateway.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 (apigateway.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 @@ -457,6 +460,11 @@ public ApiGatewayServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcApiGatewayServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonApiGatewayServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -489,18 +497,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(ApiGatewayServiceStubSettings.class)) @@ -508,11 +523,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(ApiGatewayServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiGatewayServiceStubSettings.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); @@ -747,6 +781,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 .listGatewaysSettings() diff --git a/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceCallableFactory.java similarity index 100% rename from google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceCallableFactory.java diff --git a/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceStub.java b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceStub.java similarity index 99% rename from google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceStub.java rename to owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceStub.java index cc5cc1f..3febfdd 100644 --- a/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceStub.java @@ -56,6 +56,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceCallableFactory.java new file mode 100644 index 0000000..455fb7f --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceCallableFactory.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.apigateway.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 ApiGatewayService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonApiGatewayServiceCallableFactory + 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-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceStub.java b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceStub.java new file mode 100644 index 0000000..03e1f58 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceStub.java @@ -0,0 +1,1118 @@ +/* + * 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.apigateway.v1.stub; + +import static com.google.cloud.apigateway.v1.ApiGatewayServiceClient.ListApiConfigsPagedResponse; +import static com.google.cloud.apigateway.v1.ApiGatewayServiceClient.ListApisPagedResponse; +import static com.google.cloud.apigateway.v1.ApiGatewayServiceClient.ListGatewaysPagedResponse; + +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.HttpJsonOperationSnapshot; +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.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.CreateApiConfigRequest; +import com.google.cloud.apigateway.v1.CreateApiRequest; +import com.google.cloud.apigateway.v1.CreateGatewayRequest; +import com.google.cloud.apigateway.v1.DeleteApiConfigRequest; +import com.google.cloud.apigateway.v1.DeleteApiRequest; +import com.google.cloud.apigateway.v1.DeleteGatewayRequest; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.GetApiConfigRequest; +import com.google.cloud.apigateway.v1.GetApiRequest; +import com.google.cloud.apigateway.v1.GetGatewayRequest; +import com.google.cloud.apigateway.v1.ListApiConfigsRequest; +import com.google.cloud.apigateway.v1.ListApiConfigsResponse; +import com.google.cloud.apigateway.v1.ListApisRequest; +import com.google.cloud.apigateway.v1.ListApisResponse; +import com.google.cloud.apigateway.v1.ListGatewaysRequest; +import com.google.cloud.apigateway.v1.ListGatewaysResponse; +import com.google.cloud.apigateway.v1.OperationMetadata; +import com.google.cloud.apigateway.v1.UpdateApiConfigRequest; +import com.google.cloud.apigateway.v1.UpdateApiRequest; +import com.google.cloud.apigateway.v1.UpdateGatewayRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +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 ApiGatewayService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonApiGatewayServiceStub extends ApiGatewayServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(OperationMetadata.getDescriptor()) + .add(Empty.getDescriptor()) + .add(Gateway.getDescriptor()) + .add(ApiConfig.getDescriptor()) + .add(Api.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + listGatewaysMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/ListGateways") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/gateways", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListGatewaysResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getGatewayMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/GetGateway") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/gateways/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Gateway.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createGatewayMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/CreateGateway") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/gateways", + 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, "gatewayId", request.getGatewayId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("gateway", request.getGateway())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateGatewayRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateGatewayMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/UpdateGateway") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{gateway.name=projects/*/locations/*/gateways/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "gateway.name", request.getGateway().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("gateway", request.getGateway())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateGatewayRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteGatewayMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/DeleteGateway") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/gateways/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteGatewayRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listApisMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/ListApis") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/apis", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListApisResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getApiMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/GetApi") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apis/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Api.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor createApiMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/CreateApi") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/apis", + 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, "apiId", request.getApiId()); + return fields; + }) + .setRequestBodyExtractor( + request -> ProtoRestSerializer.create().toBody("api", request.getApi())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateApiRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor updateApiMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/UpdateApi") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{api.name=projects/*/locations/*/apis/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "api.name", request.getApi().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> ProtoRestSerializer.create().toBody("api", request.getApi())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateApiRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor deleteApiMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/DeleteApi") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apis/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteApiRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listApiConfigsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/ListApiConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apis/*}/configs", + 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, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListApiConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getApiConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/GetApiConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apis/*/configs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "view", request.getView()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ApiConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createApiConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/CreateApiConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/apis/*}/configs", + 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, "apiConfigId", request.getApiConfigId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("apiConfig", request.getApiConfig())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateApiConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateApiConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/UpdateApiConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{apiConfig.name=projects/*/locations/*/apis/*/configs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "apiConfig.name", request.getApiConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("apiConfig", request.getApiConfig())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateApiConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteApiConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/DeleteApiConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/apis/*/configs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteApiConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable listGatewaysCallable; + private final UnaryCallable + listGatewaysPagedCallable; + private final UnaryCallable getGatewayCallable; + private final UnaryCallable createGatewayCallable; + private final OperationCallable + createGatewayOperationCallable; + private final UnaryCallable updateGatewayCallable; + private final OperationCallable + updateGatewayOperationCallable; + private final UnaryCallable deleteGatewayCallable; + private final OperationCallable + deleteGatewayOperationCallable; + private final UnaryCallable listApisCallable; + private final UnaryCallable listApisPagedCallable; + private final UnaryCallable getApiCallable; + private final UnaryCallable createApiCallable; + private final OperationCallable + createApiOperationCallable; + private final UnaryCallable updateApiCallable; + private final OperationCallable + updateApiOperationCallable; + private final UnaryCallable deleteApiCallable; + private final OperationCallable + deleteApiOperationCallable; + private final UnaryCallable listApiConfigsCallable; + private final UnaryCallable + listApiConfigsPagedCallable; + private final UnaryCallable getApiConfigCallable; + private final UnaryCallable createApiConfigCallable; + private final OperationCallable + createApiConfigOperationCallable; + private final UnaryCallable updateApiConfigCallable; + private final OperationCallable + updateApiConfigOperationCallable; + private final UnaryCallable deleteApiConfigCallable; + private final OperationCallable + deleteApiConfigOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonApiGatewayServiceStub create(ApiGatewayServiceStubSettings settings) + throws IOException { + return new HttpJsonApiGatewayServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonApiGatewayServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonApiGatewayServiceStub( + ApiGatewayServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonApiGatewayServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonApiGatewayServiceStub( + ApiGatewayServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonApiGatewayServiceStub, 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 HttpJsonApiGatewayServiceStub( + ApiGatewayServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonApiGatewayServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonApiGatewayServiceStub, 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 HttpJsonApiGatewayServiceStub( + ApiGatewayServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings listGatewaysTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listGatewaysMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getGatewayTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getGatewayMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createGatewayTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createGatewayMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateGatewayTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateGatewayMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteGatewayTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteGatewayMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listApisTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listApisMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getApiTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getApiMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createApiTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createApiMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateApiTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateApiMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteApiTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteApiMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listApiConfigsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listApiConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getApiConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getApiConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createApiConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createApiConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateApiConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateApiConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteApiConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteApiConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.listGatewaysCallable = + callableFactory.createUnaryCallable( + listGatewaysTransportSettings, settings.listGatewaysSettings(), clientContext); + this.listGatewaysPagedCallable = + callableFactory.createPagedCallable( + listGatewaysTransportSettings, settings.listGatewaysSettings(), clientContext); + this.getGatewayCallable = + callableFactory.createUnaryCallable( + getGatewayTransportSettings, settings.getGatewaySettings(), clientContext); + this.createGatewayCallable = + callableFactory.createUnaryCallable( + createGatewayTransportSettings, settings.createGatewaySettings(), clientContext); + this.createGatewayOperationCallable = + callableFactory.createOperationCallable( + createGatewayTransportSettings, + settings.createGatewayOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateGatewayCallable = + callableFactory.createUnaryCallable( + updateGatewayTransportSettings, settings.updateGatewaySettings(), clientContext); + this.updateGatewayOperationCallable = + callableFactory.createOperationCallable( + updateGatewayTransportSettings, + settings.updateGatewayOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteGatewayCallable = + callableFactory.createUnaryCallable( + deleteGatewayTransportSettings, settings.deleteGatewaySettings(), clientContext); + this.deleteGatewayOperationCallable = + callableFactory.createOperationCallable( + deleteGatewayTransportSettings, + settings.deleteGatewayOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listApisCallable = + callableFactory.createUnaryCallable( + listApisTransportSettings, settings.listApisSettings(), clientContext); + this.listApisPagedCallable = + callableFactory.createPagedCallable( + listApisTransportSettings, settings.listApisSettings(), clientContext); + this.getApiCallable = + callableFactory.createUnaryCallable( + getApiTransportSettings, settings.getApiSettings(), clientContext); + this.createApiCallable = + callableFactory.createUnaryCallable( + createApiTransportSettings, settings.createApiSettings(), clientContext); + this.createApiOperationCallable = + callableFactory.createOperationCallable( + createApiTransportSettings, + settings.createApiOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateApiCallable = + callableFactory.createUnaryCallable( + updateApiTransportSettings, settings.updateApiSettings(), clientContext); + this.updateApiOperationCallable = + callableFactory.createOperationCallable( + updateApiTransportSettings, + settings.updateApiOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteApiCallable = + callableFactory.createUnaryCallable( + deleteApiTransportSettings, settings.deleteApiSettings(), clientContext); + this.deleteApiOperationCallable = + callableFactory.createOperationCallable( + deleteApiTransportSettings, + settings.deleteApiOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listApiConfigsCallable = + callableFactory.createUnaryCallable( + listApiConfigsTransportSettings, settings.listApiConfigsSettings(), clientContext); + this.listApiConfigsPagedCallable = + callableFactory.createPagedCallable( + listApiConfigsTransportSettings, settings.listApiConfigsSettings(), clientContext); + this.getApiConfigCallable = + callableFactory.createUnaryCallable( + getApiConfigTransportSettings, settings.getApiConfigSettings(), clientContext); + this.createApiConfigCallable = + callableFactory.createUnaryCallable( + createApiConfigTransportSettings, settings.createApiConfigSettings(), clientContext); + this.createApiConfigOperationCallable = + callableFactory.createOperationCallable( + createApiConfigTransportSettings, + settings.createApiConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateApiConfigCallable = + callableFactory.createUnaryCallable( + updateApiConfigTransportSettings, settings.updateApiConfigSettings(), clientContext); + this.updateApiConfigOperationCallable = + callableFactory.createOperationCallable( + updateApiConfigTransportSettings, + settings.updateApiConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteApiConfigCallable = + callableFactory.createUnaryCallable( + deleteApiConfigTransportSettings, settings.deleteApiConfigSettings(), clientContext); + this.deleteApiConfigOperationCallable = + callableFactory.createOperationCallable( + deleteApiConfigTransportSettings, + settings.deleteApiConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listGatewaysMethodDescriptor); + methodDescriptors.add(getGatewayMethodDescriptor); + methodDescriptors.add(createGatewayMethodDescriptor); + methodDescriptors.add(updateGatewayMethodDescriptor); + methodDescriptors.add(deleteGatewayMethodDescriptor); + methodDescriptors.add(listApisMethodDescriptor); + methodDescriptors.add(getApiMethodDescriptor); + methodDescriptors.add(createApiMethodDescriptor); + methodDescriptors.add(updateApiMethodDescriptor); + methodDescriptors.add(deleteApiMethodDescriptor); + methodDescriptors.add(listApiConfigsMethodDescriptor); + methodDescriptors.add(getApiConfigMethodDescriptor); + methodDescriptors.add(createApiConfigMethodDescriptor); + methodDescriptors.add(updateApiConfigMethodDescriptor); + methodDescriptors.add(deleteApiConfigMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable listGatewaysCallable() { + return listGatewaysCallable; + } + + @Override + public UnaryCallable listGatewaysPagedCallable() { + return listGatewaysPagedCallable; + } + + @Override + public UnaryCallable getGatewayCallable() { + return getGatewayCallable; + } + + @Override + public UnaryCallable createGatewayCallable() { + return createGatewayCallable; + } + + @Override + public OperationCallable + createGatewayOperationCallable() { + return createGatewayOperationCallable; + } + + @Override + public UnaryCallable updateGatewayCallable() { + return updateGatewayCallable; + } + + @Override + public OperationCallable + updateGatewayOperationCallable() { + return updateGatewayOperationCallable; + } + + @Override + public UnaryCallable deleteGatewayCallable() { + return deleteGatewayCallable; + } + + @Override + public OperationCallable + deleteGatewayOperationCallable() { + return deleteGatewayOperationCallable; + } + + @Override + public UnaryCallable listApisCallable() { + return listApisCallable; + } + + @Override + public UnaryCallable listApisPagedCallable() { + return listApisPagedCallable; + } + + @Override + public UnaryCallable getApiCallable() { + return getApiCallable; + } + + @Override + public UnaryCallable createApiCallable() { + return createApiCallable; + } + + @Override + public OperationCallable createApiOperationCallable() { + return createApiOperationCallable; + } + + @Override + public UnaryCallable updateApiCallable() { + return updateApiCallable; + } + + @Override + public OperationCallable updateApiOperationCallable() { + return updateApiOperationCallable; + } + + @Override + public UnaryCallable deleteApiCallable() { + return deleteApiCallable; + } + + @Override + public OperationCallable + deleteApiOperationCallable() { + return deleteApiOperationCallable; + } + + @Override + public UnaryCallable listApiConfigsCallable() { + return listApiConfigsCallable; + } + + @Override + public UnaryCallable + listApiConfigsPagedCallable() { + return listApiConfigsPagedCallable; + } + + @Override + public UnaryCallable getApiConfigCallable() { + return getApiConfigCallable; + } + + @Override + public UnaryCallable createApiConfigCallable() { + return createApiConfigCallable; + } + + @Override + public OperationCallable + createApiConfigOperationCallable() { + return createApiConfigOperationCallable; + } + + @Override + public UnaryCallable updateApiConfigCallable() { + return updateApiConfigCallable; + } + + @Override + public OperationCallable + updateApiConfigOperationCallable() { + return updateApiConfigOperationCallable; + } + + @Override + public UnaryCallable deleteApiConfigCallable() { + return deleteApiConfigCallable; + } + + @Override + public OperationCallable + deleteApiConfigOperationCallable() { + return deleteApiConfigOperationCallable; + } + + @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-api-gateway/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientHttpJsonTest.java new file mode 100644 index 0000000..e9c4cc5 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientHttpJsonTest.java @@ -0,0 +1,1552 @@ +/* + * 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.apigateway.v1; + +import static com.google.cloud.apigateway.v1.ApiGatewayServiceClient.ListApiConfigsPagedResponse; +import static com.google.cloud.apigateway.v1.ApiGatewayServiceClient.ListApisPagedResponse; +import static com.google.cloud.apigateway.v1.ApiGatewayServiceClient.ListGatewaysPagedResponse; + +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.apigateway.v1.stub.HttpJsonApiGatewayServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +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 ApiGatewayServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static ApiGatewayServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonApiGatewayServiceStub.getMethodDescriptors(), + ApiGatewayServiceSettings.getDefaultEndpoint()); + ApiGatewayServiceSettings settings = + ApiGatewayServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ApiGatewayServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ApiGatewayServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listGatewaysTest() throws Exception { + Gateway responsesElement = Gateway.newBuilder().build(); + ListGatewaysResponse expectedResponse = + ListGatewaysResponse.newBuilder() + .setNextPageToken("") + .addAllGateways(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListGatewaysPagedResponse pagedListResponse = client.listGateways(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGatewaysList().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 listGatewaysExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listGateways(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listGatewaysTest2() throws Exception { + Gateway responsesElement = Gateway.newBuilder().build(); + ListGatewaysResponse expectedResponse = + ListGatewaysResponse.newBuilder() + .setNextPageToken("") + .addAllGateways(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListGatewaysPagedResponse pagedListResponse = client.listGateways(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGatewaysList().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 listGatewaysExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listGateways(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGatewayTest() throws Exception { + Gateway expectedResponse = + Gateway.newBuilder() + .setName(GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setApiConfig(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .setDefaultHostname("defaultHostname1698284948") + .build(); + mockService.addResponse(expectedResponse); + + GatewayName name = GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]"); + + Gateway actualResponse = client.getGateway(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getGatewayExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GatewayName name = GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]"); + client.getGateway(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGatewayTest2() throws Exception { + Gateway expectedResponse = + Gateway.newBuilder() + .setName(GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setApiConfig(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .setDefaultHostname("defaultHostname1698284948") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4351/locations/location-4351/gateways/gateway-4351"; + + Gateway actualResponse = client.getGateway(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getGatewayExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4351/locations/location-4351/gateways/gateway-4351"; + client.getGateway(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createGatewayTest() throws Exception { + Gateway expectedResponse = + Gateway.newBuilder() + .setName(GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setApiConfig(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .setDefaultHostname("defaultHostname1698284948") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Gateway gateway = Gateway.newBuilder().build(); + String gatewayId = "gatewayId-1354641793"; + + Gateway actualResponse = client.createGatewayAsync(parent, gateway, gatewayId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createGatewayExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Gateway gateway = Gateway.newBuilder().build(); + String gatewayId = "gatewayId-1354641793"; + client.createGatewayAsync(parent, gateway, gatewayId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createGatewayTest2() throws Exception { + Gateway expectedResponse = + Gateway.newBuilder() + .setName(GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setApiConfig(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .setDefaultHostname("defaultHostname1698284948") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Gateway gateway = Gateway.newBuilder().build(); + String gatewayId = "gatewayId-1354641793"; + + Gateway actualResponse = client.createGatewayAsync(parent, gateway, gatewayId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createGatewayExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Gateway gateway = Gateway.newBuilder().build(); + String gatewayId = "gatewayId-1354641793"; + client.createGatewayAsync(parent, gateway, gatewayId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateGatewayTest() throws Exception { + Gateway expectedResponse = + Gateway.newBuilder() + .setName(GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setApiConfig(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .setDefaultHostname("defaultHostname1698284948") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Gateway gateway = + Gateway.newBuilder() + .setName(GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setApiConfig(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .setDefaultHostname("defaultHostname1698284948") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Gateway actualResponse = client.updateGatewayAsync(gateway, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateGatewayExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Gateway gateway = + Gateway.newBuilder() + .setName(GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setApiConfig(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .setDefaultHostname("defaultHostname1698284948") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateGatewayAsync(gateway, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteGatewayTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + GatewayName name = GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]"); + + client.deleteGatewayAsync(name).get(); + + 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 deleteGatewayExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GatewayName name = GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]"); + client.deleteGatewayAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteGatewayTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-4351/locations/location-4351/gateways/gateway-4351"; + + client.deleteGatewayAsync(name).get(); + + 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 deleteGatewayExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4351/locations/location-4351/gateways/gateway-4351"; + client.deleteGatewayAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listApisTest() throws Exception { + Api responsesElement = Api.newBuilder().build(); + ListApisResponse expectedResponse = + ListApisResponse.newBuilder() + .setNextPageToken("") + .addAllApis(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListApisPagedResponse pagedListResponse = client.listApis(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApisList().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 listApisExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listApis(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApisTest2() throws Exception { + Api responsesElement = Api.newBuilder().build(); + ListApisResponse expectedResponse = + ListApisResponse.newBuilder() + .setNextPageToken("") + .addAllApis(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListApisPagedResponse pagedListResponse = client.listApis(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApisList().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 listApisExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listApis(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApiTest() throws Exception { + Api expectedResponse = + Api.newBuilder() + .setName(ApiName.of("[PROJECT]", "[API]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setManagedService("managedService2047823382") + .build(); + mockService.addResponse(expectedResponse); + + ApiName name = ApiName.of("[PROJECT]", "[API]"); + + Api actualResponse = client.getApi(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getApiExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApiName name = ApiName.of("[PROJECT]", "[API]"); + client.getApi(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApiTest2() throws Exception { + Api expectedResponse = + Api.newBuilder() + .setName(ApiName.of("[PROJECT]", "[API]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setManagedService("managedService2047823382") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3607/locations/location-3607/apis/api-3607"; + + Api actualResponse = client.getApi(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getApiExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3607/locations/location-3607/apis/api-3607"; + client.getApi(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createApiTest() throws Exception { + Api expectedResponse = + Api.newBuilder() + .setName(ApiName.of("[PROJECT]", "[API]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setManagedService("managedService2047823382") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createApiTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Api api = Api.newBuilder().build(); + String apiId = "apiId93021397"; + + Api actualResponse = client.createApiAsync(parent, api, apiId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createApiExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Api api = Api.newBuilder().build(); + String apiId = "apiId93021397"; + client.createApiAsync(parent, api, apiId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createApiTest2() throws Exception { + Api expectedResponse = + Api.newBuilder() + .setName(ApiName.of("[PROJECT]", "[API]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setManagedService("managedService2047823382") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createApiTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Api api = Api.newBuilder().build(); + String apiId = "apiId93021397"; + + Api actualResponse = client.createApiAsync(parent, api, apiId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createApiExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Api api = Api.newBuilder().build(); + String apiId = "apiId93021397"; + client.createApiAsync(parent, api, apiId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateApiTest() throws Exception { + Api expectedResponse = + Api.newBuilder() + .setName(ApiName.of("[PROJECT]", "[API]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setManagedService("managedService2047823382") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateApiTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Api api = + Api.newBuilder() + .setName(ApiName.of("[PROJECT]", "[API]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setManagedService("managedService2047823382") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Api actualResponse = client.updateApiAsync(api, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateApiExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Api api = + Api.newBuilder() + .setName(ApiName.of("[PROJECT]", "[API]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setManagedService("managedService2047823382") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateApiAsync(api, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteApiTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteApiTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ApiName name = ApiName.of("[PROJECT]", "[API]"); + + client.deleteApiAsync(name).get(); + + 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 deleteApiExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApiName name = ApiName.of("[PROJECT]", "[API]"); + client.deleteApiAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteApiTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteApiTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-3607/locations/location-3607/apis/api-3607"; + + client.deleteApiAsync(name).get(); + + 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 deleteApiExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3607/locations/location-3607/apis/api-3607"; + client.deleteApiAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listApiConfigsTest() throws Exception { + ApiConfig responsesElement = ApiConfig.newBuilder().build(); + ListApiConfigsResponse expectedResponse = + ListApiConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllApiConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ApiName parent = ApiName.of("[PROJECT]", "[API]"); + + ListApiConfigsPagedResponse pagedListResponse = client.listApiConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApiConfigsList().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 listApiConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApiName parent = ApiName.of("[PROJECT]", "[API]"); + client.listApiConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listApiConfigsTest2() throws Exception { + ApiConfig responsesElement = ApiConfig.newBuilder().build(); + ListApiConfigsResponse expectedResponse = + ListApiConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllApiConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7414/locations/location-7414/apis/api-7414"; + + ListApiConfigsPagedResponse pagedListResponse = client.listApiConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getApiConfigsList().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 listApiConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7414/locations/location-7414/apis/api-7414"; + client.listApiConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApiConfigTest() throws Exception { + ApiConfig expectedResponse = + ApiConfig.newBuilder() + .setName(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setGatewayServiceAccount("gatewayServiceAccount153690396") + .setServiceConfigId("serviceConfigId650537426") + .addAllOpenapiDocuments(new ArrayList()) + .addAllGrpcServices(new ArrayList()) + .addAllManagedServiceConfigs(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + ApiConfigName name = ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]"); + + ApiConfig actualResponse = client.getApiConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getApiConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApiConfigName name = ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]"); + client.getApiConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getApiConfigTest2() throws Exception { + ApiConfig expectedResponse = + ApiConfig.newBuilder() + .setName(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setGatewayServiceAccount("gatewayServiceAccount153690396") + .setServiceConfigId("serviceConfigId650537426") + .addAllOpenapiDocuments(new ArrayList()) + .addAllGrpcServices(new ArrayList()) + .addAllManagedServiceConfigs(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7242/locations/location-7242/apis/api-7242/configs/config-7242"; + + ApiConfig actualResponse = client.getApiConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getApiConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7242/locations/location-7242/apis/api-7242/configs/config-7242"; + client.getApiConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createApiConfigTest() throws Exception { + ApiConfig expectedResponse = + ApiConfig.newBuilder() + .setName(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setGatewayServiceAccount("gatewayServiceAccount153690396") + .setServiceConfigId("serviceConfigId650537426") + .addAllOpenapiDocuments(new ArrayList()) + .addAllGrpcServices(new ArrayList()) + .addAllManagedServiceConfigs(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createApiConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ApiName parent = ApiName.of("[PROJECT]", "[API]"); + ApiConfig apiConfig = ApiConfig.newBuilder().build(); + String apiConfigId = "apiConfigId-64952265"; + + ApiConfig actualResponse = client.createApiConfigAsync(parent, apiConfig, apiConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createApiConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApiName parent = ApiName.of("[PROJECT]", "[API]"); + ApiConfig apiConfig = ApiConfig.newBuilder().build(); + String apiConfigId = "apiConfigId-64952265"; + client.createApiConfigAsync(parent, apiConfig, apiConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createApiConfigTest2() throws Exception { + ApiConfig expectedResponse = + ApiConfig.newBuilder() + .setName(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setGatewayServiceAccount("gatewayServiceAccount153690396") + .setServiceConfigId("serviceConfigId650537426") + .addAllOpenapiDocuments(new ArrayList()) + .addAllGrpcServices(new ArrayList()) + .addAllManagedServiceConfigs(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createApiConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-7414/locations/location-7414/apis/api-7414"; + ApiConfig apiConfig = ApiConfig.newBuilder().build(); + String apiConfigId = "apiConfigId-64952265"; + + ApiConfig actualResponse = client.createApiConfigAsync(parent, apiConfig, apiConfigId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createApiConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7414/locations/location-7414/apis/api-7414"; + ApiConfig apiConfig = ApiConfig.newBuilder().build(); + String apiConfigId = "apiConfigId-64952265"; + client.createApiConfigAsync(parent, apiConfig, apiConfigId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateApiConfigTest() throws Exception { + ApiConfig expectedResponse = + ApiConfig.newBuilder() + .setName(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setGatewayServiceAccount("gatewayServiceAccount153690396") + .setServiceConfigId("serviceConfigId650537426") + .addAllOpenapiDocuments(new ArrayList()) + .addAllGrpcServices(new ArrayList()) + .addAllManagedServiceConfigs(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateApiConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ApiConfig apiConfig = + ApiConfig.newBuilder() + .setName(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setGatewayServiceAccount("gatewayServiceAccount153690396") + .setServiceConfigId("serviceConfigId650537426") + .addAllOpenapiDocuments(new ArrayList()) + .addAllGrpcServices(new ArrayList()) + .addAllManagedServiceConfigs(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ApiConfig actualResponse = client.updateApiConfigAsync(apiConfig, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateApiConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApiConfig apiConfig = + ApiConfig.newBuilder() + .setName(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setGatewayServiceAccount("gatewayServiceAccount153690396") + .setServiceConfigId("serviceConfigId650537426") + .addAllOpenapiDocuments(new ArrayList()) + .addAllGrpcServices(new ArrayList()) + .addAllManagedServiceConfigs(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateApiConfigAsync(apiConfig, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteApiConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteApiConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ApiConfigName name = ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]"); + + client.deleteApiConfigAsync(name).get(); + + 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 deleteApiConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ApiConfigName name = ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]"); + client.deleteApiConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteApiConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteApiConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-7242/locations/location-7242/apis/api-7242/configs/config-7242"; + + client.deleteApiConfigAsync(name).get(); + + 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 deleteApiConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7242/locations/location-7242/apis/api-7242/configs/config-7242"; + client.deleteApiConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientTest.java b/owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientTest.java similarity index 100% rename from google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientTest.java rename to owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientTest.java diff --git a/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayService.java b/owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayService.java similarity index 100% rename from google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayService.java rename to owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayService.java diff --git a/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayServiceImpl.java b/owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayServiceImpl.java similarity index 100% rename from google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayServiceImpl.java rename to owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayServiceImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java new file mode 100644 index 0000000..1b1c954 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java @@ -0,0 +1,1507 @@ +package com.google.cloud.apigateway.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * The API Gateway Service is the interface for managing API Gateways.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/apigateway/v1/apigateway_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ApiGatewayServiceGrpc { + + private ApiGatewayServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.apigateway.v1.ApiGatewayService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListGatewaysMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGateways", + requestType = com.google.cloud.apigateway.v1.ListGatewaysRequest.class, + responseType = com.google.cloud.apigateway.v1.ListGatewaysResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListGatewaysMethod() { + io.grpc.MethodDescriptor getListGatewaysMethod; + if ((getListGatewaysMethod = ApiGatewayServiceGrpc.getListGatewaysMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getListGatewaysMethod = ApiGatewayServiceGrpc.getListGatewaysMethod) == null) { + ApiGatewayServiceGrpc.getListGatewaysMethod = getListGatewaysMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGateways")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.ListGatewaysRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.ListGatewaysResponse.getDefaultInstance())) + .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("ListGateways")) + .build(); + } + } + } + return getListGatewaysMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGateway", + requestType = com.google.cloud.apigateway.v1.GetGatewayRequest.class, + responseType = com.google.cloud.apigateway.v1.Gateway.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetGatewayMethod() { + io.grpc.MethodDescriptor getGetGatewayMethod; + if ((getGetGatewayMethod = ApiGatewayServiceGrpc.getGetGatewayMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getGetGatewayMethod = ApiGatewayServiceGrpc.getGetGatewayMethod) == null) { + ApiGatewayServiceGrpc.getGetGatewayMethod = getGetGatewayMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.GetGatewayRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.Gateway.getDefaultInstance())) + .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("GetGateway")) + .build(); + } + } + } + return getGetGatewayMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGateway", + requestType = com.google.cloud.apigateway.v1.CreateGatewayRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateGatewayMethod() { + io.grpc.MethodDescriptor getCreateGatewayMethod; + if ((getCreateGatewayMethod = ApiGatewayServiceGrpc.getCreateGatewayMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getCreateGatewayMethod = ApiGatewayServiceGrpc.getCreateGatewayMethod) == null) { + ApiGatewayServiceGrpc.getCreateGatewayMethod = getCreateGatewayMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.CreateGatewayRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("CreateGateway")) + .build(); + } + } + } + return getCreateGatewayMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateGateway", + requestType = com.google.cloud.apigateway.v1.UpdateGatewayRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateGatewayMethod() { + io.grpc.MethodDescriptor getUpdateGatewayMethod; + if ((getUpdateGatewayMethod = ApiGatewayServiceGrpc.getUpdateGatewayMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getUpdateGatewayMethod = ApiGatewayServiceGrpc.getUpdateGatewayMethod) == null) { + ApiGatewayServiceGrpc.getUpdateGatewayMethod = getUpdateGatewayMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.UpdateGatewayRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("UpdateGateway")) + .build(); + } + } + } + return getUpdateGatewayMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGateway", + requestType = com.google.cloud.apigateway.v1.DeleteGatewayRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteGatewayMethod() { + io.grpc.MethodDescriptor getDeleteGatewayMethod; + if ((getDeleteGatewayMethod = ApiGatewayServiceGrpc.getDeleteGatewayMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getDeleteGatewayMethod = ApiGatewayServiceGrpc.getDeleteGatewayMethod) == null) { + ApiGatewayServiceGrpc.getDeleteGatewayMethod = getDeleteGatewayMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.DeleteGatewayRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("DeleteGateway")) + .build(); + } + } + } + return getDeleteGatewayMethod; + } + + private static volatile io.grpc.MethodDescriptor getListApisMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListApis", + requestType = com.google.cloud.apigateway.v1.ListApisRequest.class, + responseType = com.google.cloud.apigateway.v1.ListApisResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListApisMethod() { + io.grpc.MethodDescriptor getListApisMethod; + if ((getListApisMethod = ApiGatewayServiceGrpc.getListApisMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getListApisMethod = ApiGatewayServiceGrpc.getListApisMethod) == null) { + ApiGatewayServiceGrpc.getListApisMethod = getListApisMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListApis")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.ListApisRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.ListApisResponse.getDefaultInstance())) + .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("ListApis")) + .build(); + } + } + } + return getListApisMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetApiMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetApi", + requestType = com.google.cloud.apigateway.v1.GetApiRequest.class, + responseType = com.google.cloud.apigateway.v1.Api.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetApiMethod() { + io.grpc.MethodDescriptor getGetApiMethod; + if ((getGetApiMethod = ApiGatewayServiceGrpc.getGetApiMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getGetApiMethod = ApiGatewayServiceGrpc.getGetApiMethod) == null) { + ApiGatewayServiceGrpc.getGetApiMethod = getGetApiMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetApi")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.GetApiRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.Api.getDefaultInstance())) + .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("GetApi")) + .build(); + } + } + } + return getGetApiMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateApiMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateApi", + requestType = com.google.cloud.apigateway.v1.CreateApiRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateApiMethod() { + io.grpc.MethodDescriptor getCreateApiMethod; + if ((getCreateApiMethod = ApiGatewayServiceGrpc.getCreateApiMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getCreateApiMethod = ApiGatewayServiceGrpc.getCreateApiMethod) == null) { + ApiGatewayServiceGrpc.getCreateApiMethod = getCreateApiMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateApi")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.CreateApiRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("CreateApi")) + .build(); + } + } + } + return getCreateApiMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateApiMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateApi", + requestType = com.google.cloud.apigateway.v1.UpdateApiRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateApiMethod() { + io.grpc.MethodDescriptor getUpdateApiMethod; + if ((getUpdateApiMethod = ApiGatewayServiceGrpc.getUpdateApiMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getUpdateApiMethod = ApiGatewayServiceGrpc.getUpdateApiMethod) == null) { + ApiGatewayServiceGrpc.getUpdateApiMethod = getUpdateApiMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateApi")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.UpdateApiRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("UpdateApi")) + .build(); + } + } + } + return getUpdateApiMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteApiMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteApi", + requestType = com.google.cloud.apigateway.v1.DeleteApiRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteApiMethod() { + io.grpc.MethodDescriptor getDeleteApiMethod; + if ((getDeleteApiMethod = ApiGatewayServiceGrpc.getDeleteApiMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getDeleteApiMethod = ApiGatewayServiceGrpc.getDeleteApiMethod) == null) { + ApiGatewayServiceGrpc.getDeleteApiMethod = getDeleteApiMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteApi")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.DeleteApiRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("DeleteApi")) + .build(); + } + } + } + return getDeleteApiMethod; + } + + private static volatile io.grpc.MethodDescriptor getListApiConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListApiConfigs", + requestType = com.google.cloud.apigateway.v1.ListApiConfigsRequest.class, + responseType = com.google.cloud.apigateway.v1.ListApiConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListApiConfigsMethod() { + io.grpc.MethodDescriptor getListApiConfigsMethod; + if ((getListApiConfigsMethod = ApiGatewayServiceGrpc.getListApiConfigsMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getListApiConfigsMethod = ApiGatewayServiceGrpc.getListApiConfigsMethod) == null) { + ApiGatewayServiceGrpc.getListApiConfigsMethod = getListApiConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListApiConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.ListApiConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.ListApiConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("ListApiConfigs")) + .build(); + } + } + } + return getListApiConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetApiConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetApiConfig", + requestType = com.google.cloud.apigateway.v1.GetApiConfigRequest.class, + responseType = com.google.cloud.apigateway.v1.ApiConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetApiConfigMethod() { + io.grpc.MethodDescriptor getGetApiConfigMethod; + if ((getGetApiConfigMethod = ApiGatewayServiceGrpc.getGetApiConfigMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getGetApiConfigMethod = ApiGatewayServiceGrpc.getGetApiConfigMethod) == null) { + ApiGatewayServiceGrpc.getGetApiConfigMethod = getGetApiConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetApiConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.GetApiConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance())) + .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("GetApiConfig")) + .build(); + } + } + } + return getGetApiConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateApiConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateApiConfig", + requestType = com.google.cloud.apigateway.v1.CreateApiConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateApiConfigMethod() { + io.grpc.MethodDescriptor getCreateApiConfigMethod; + if ((getCreateApiConfigMethod = ApiGatewayServiceGrpc.getCreateApiConfigMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getCreateApiConfigMethod = ApiGatewayServiceGrpc.getCreateApiConfigMethod) == null) { + ApiGatewayServiceGrpc.getCreateApiConfigMethod = getCreateApiConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateApiConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.CreateApiConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("CreateApiConfig")) + .build(); + } + } + } + return getCreateApiConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateApiConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateApiConfig", + requestType = com.google.cloud.apigateway.v1.UpdateApiConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateApiConfigMethod() { + io.grpc.MethodDescriptor getUpdateApiConfigMethod; + if ((getUpdateApiConfigMethod = ApiGatewayServiceGrpc.getUpdateApiConfigMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getUpdateApiConfigMethod = ApiGatewayServiceGrpc.getUpdateApiConfigMethod) == null) { + ApiGatewayServiceGrpc.getUpdateApiConfigMethod = getUpdateApiConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateApiConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.UpdateApiConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("UpdateApiConfig")) + .build(); + } + } + } + return getUpdateApiConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteApiConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteApiConfig", + requestType = com.google.cloud.apigateway.v1.DeleteApiConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteApiConfigMethod() { + io.grpc.MethodDescriptor getDeleteApiConfigMethod; + if ((getDeleteApiConfigMethod = ApiGatewayServiceGrpc.getDeleteApiConfigMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getDeleteApiConfigMethod = ApiGatewayServiceGrpc.getDeleteApiConfigMethod) == null) { + ApiGatewayServiceGrpc.getDeleteApiConfigMethod = getDeleteApiConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteApiConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.DeleteApiConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("DeleteApiConfig")) + .build(); + } + } + } + return getDeleteApiConfigMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ApiGatewayServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ApiGatewayServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ApiGatewayServiceStub(channel, callOptions); + } + }; + return ApiGatewayServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ApiGatewayServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ApiGatewayServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ApiGatewayServiceBlockingStub(channel, callOptions); + } + }; + return ApiGatewayServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ApiGatewayServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ApiGatewayServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ApiGatewayServiceFutureStub(channel, callOptions); + } + }; + return ApiGatewayServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * The API Gateway Service is the interface for managing API Gateways.
+   * 
+ */ + public static abstract class ApiGatewayServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists Gateways in a given project and location.
+     * 
+ */ + public void listGateways(com.google.cloud.apigateway.v1.ListGatewaysRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGatewaysMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single Gateway.
+     * 
+ */ + public void getGateway(com.google.cloud.apigateway.v1.GetGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGatewayMethod(), responseObserver); + } + + /** + *
+     * Creates a new Gateway in a given project and location.
+     * 
+ */ + public void createGateway(com.google.cloud.apigateway.v1.CreateGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateGatewayMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a single Gateway.
+     * 
+ */ + public void updateGateway(com.google.cloud.apigateway.v1.UpdateGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateGatewayMethod(), responseObserver); + } + + /** + *
+     * Deletes a single Gateway.
+     * 
+ */ + public void deleteGateway(com.google.cloud.apigateway.v1.DeleteGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGatewayMethod(), responseObserver); + } + + /** + *
+     * Lists Apis in a given project and location.
+     * 
+ */ + public void listApis(com.google.cloud.apigateway.v1.ListApisRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListApisMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single Api.
+     * 
+ */ + public void getApi(com.google.cloud.apigateway.v1.GetApiRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetApiMethod(), responseObserver); + } + + /** + *
+     * Creates a new Api in a given project and location.
+     * 
+ */ + public void createApi(com.google.cloud.apigateway.v1.CreateApiRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateApiMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a single Api.
+     * 
+ */ + public void updateApi(com.google.cloud.apigateway.v1.UpdateApiRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateApiMethod(), responseObserver); + } + + /** + *
+     * Deletes a single Api.
+     * 
+ */ + public void deleteApi(com.google.cloud.apigateway.v1.DeleteApiRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteApiMethod(), responseObserver); + } + + /** + *
+     * Lists ApiConfigs in a given project and location.
+     * 
+ */ + public void listApiConfigs(com.google.cloud.apigateway.v1.ListApiConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListApiConfigsMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single ApiConfig.
+     * 
+ */ + public void getApiConfig(com.google.cloud.apigateway.v1.GetApiConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetApiConfigMethod(), responseObserver); + } + + /** + *
+     * Creates a new ApiConfig in a given project and location.
+     * 
+ */ + public void createApiConfig(com.google.cloud.apigateway.v1.CreateApiConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateApiConfigMethod(), responseObserver); + } + + /** + *
+     * Updates the parameters of a single ApiConfig.
+     * 
+ */ + public void updateApiConfig(com.google.cloud.apigateway.v1.UpdateApiConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateApiConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes a single ApiConfig.
+     * 
+ */ + public void deleteApiConfig(com.google.cloud.apigateway.v1.DeleteApiConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteApiConfigMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListGatewaysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.ListGatewaysRequest, + com.google.cloud.apigateway.v1.ListGatewaysResponse>( + this, METHODID_LIST_GATEWAYS))) + .addMethod( + getGetGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.GetGatewayRequest, + com.google.cloud.apigateway.v1.Gateway>( + this, METHODID_GET_GATEWAY))) + .addMethod( + getCreateGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.CreateGatewayRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_GATEWAY))) + .addMethod( + getUpdateGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.UpdateGatewayRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_GATEWAY))) + .addMethod( + getDeleteGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.DeleteGatewayRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_GATEWAY))) + .addMethod( + getListApisMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.ListApisRequest, + com.google.cloud.apigateway.v1.ListApisResponse>( + this, METHODID_LIST_APIS))) + .addMethod( + getGetApiMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.GetApiRequest, + com.google.cloud.apigateway.v1.Api>( + this, METHODID_GET_API))) + .addMethod( + getCreateApiMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.CreateApiRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_API))) + .addMethod( + getUpdateApiMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.UpdateApiRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_API))) + .addMethod( + getDeleteApiMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.DeleteApiRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_API))) + .addMethod( + getListApiConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.ListApiConfigsRequest, + com.google.cloud.apigateway.v1.ListApiConfigsResponse>( + this, METHODID_LIST_API_CONFIGS))) + .addMethod( + getGetApiConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.GetApiConfigRequest, + com.google.cloud.apigateway.v1.ApiConfig>( + this, METHODID_GET_API_CONFIG))) + .addMethod( + getCreateApiConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.CreateApiConfigRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_API_CONFIG))) + .addMethod( + getUpdateApiConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.UpdateApiConfigRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_API_CONFIG))) + .addMethod( + getDeleteApiConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.DeleteApiConfigRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_API_CONFIG))) + .build(); + } + } + + /** + *
+   * The API Gateway Service is the interface for managing API Gateways.
+   * 
+ */ + public static final class ApiGatewayServiceStub extends io.grpc.stub.AbstractAsyncStub { + private ApiGatewayServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ApiGatewayServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ApiGatewayServiceStub(channel, callOptions); + } + + /** + *
+     * Lists Gateways in a given project and location.
+     * 
+ */ + public void listGateways(com.google.cloud.apigateway.v1.ListGatewaysRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGatewaysMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single Gateway.
+     * 
+ */ + public void getGateway(com.google.cloud.apigateway.v1.GetGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGatewayMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Gateway in a given project and location.
+     * 
+ */ + public void createGateway(com.google.cloud.apigateway.v1.CreateGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGatewayMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a single Gateway.
+     * 
+ */ + public void updateGateway(com.google.cloud.apigateway.v1.UpdateGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateGatewayMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single Gateway.
+     * 
+ */ + public void deleteGateway(com.google.cloud.apigateway.v1.DeleteGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGatewayMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists Apis in a given project and location.
+     * 
+ */ + public void listApis(com.google.cloud.apigateway.v1.ListApisRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListApisMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single Api.
+     * 
+ */ + public void getApi(com.google.cloud.apigateway.v1.GetApiRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetApiMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Api in a given project and location.
+     * 
+ */ + public void createApi(com.google.cloud.apigateway.v1.CreateApiRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateApiMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a single Api.
+     * 
+ */ + public void updateApi(com.google.cloud.apigateway.v1.UpdateApiRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateApiMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single Api.
+     * 
+ */ + public void deleteApi(com.google.cloud.apigateway.v1.DeleteApiRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteApiMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ApiConfigs in a given project and location.
+     * 
+ */ + public void listApiConfigs(com.google.cloud.apigateway.v1.ListApiConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListApiConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single ApiConfig.
+     * 
+ */ + public void getApiConfig(com.google.cloud.apigateway.v1.GetApiConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetApiConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new ApiConfig in a given project and location.
+     * 
+ */ + public void createApiConfig(com.google.cloud.apigateway.v1.CreateApiConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateApiConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the parameters of a single ApiConfig.
+     * 
+ */ + public void updateApiConfig(com.google.cloud.apigateway.v1.UpdateApiConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateApiConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a single ApiConfig.
+     * 
+ */ + public void deleteApiConfig(com.google.cloud.apigateway.v1.DeleteApiConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteApiConfigMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * The API Gateway Service is the interface for managing API Gateways.
+   * 
+ */ + public static final class ApiGatewayServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ApiGatewayServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ApiGatewayServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ApiGatewayServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists Gateways in a given project and location.
+     * 
+ */ + public com.google.cloud.apigateway.v1.ListGatewaysResponse listGateways(com.google.cloud.apigateway.v1.ListGatewaysRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGatewaysMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single Gateway.
+     * 
+ */ + public com.google.cloud.apigateway.v1.Gateway getGateway(com.google.cloud.apigateway.v1.GetGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGatewayMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Gateway in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createGateway(com.google.cloud.apigateway.v1.CreateGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGatewayMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a single Gateway.
+     * 
+ */ + public com.google.longrunning.Operation updateGateway(com.google.cloud.apigateway.v1.UpdateGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateGatewayMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single Gateway.
+     * 
+ */ + public com.google.longrunning.Operation deleteGateway(com.google.cloud.apigateway.v1.DeleteGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGatewayMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists Apis in a given project and location.
+     * 
+ */ + public com.google.cloud.apigateway.v1.ListApisResponse listApis(com.google.cloud.apigateway.v1.ListApisRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListApisMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single Api.
+     * 
+ */ + public com.google.cloud.apigateway.v1.Api getApi(com.google.cloud.apigateway.v1.GetApiRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetApiMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Api in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createApi(com.google.cloud.apigateway.v1.CreateApiRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateApiMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a single Api.
+     * 
+ */ + public com.google.longrunning.Operation updateApi(com.google.cloud.apigateway.v1.UpdateApiRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateApiMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single Api.
+     * 
+ */ + public com.google.longrunning.Operation deleteApi(com.google.cloud.apigateway.v1.DeleteApiRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteApiMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ApiConfigs in a given project and location.
+     * 
+ */ + public com.google.cloud.apigateway.v1.ListApiConfigsResponse listApiConfigs(com.google.cloud.apigateway.v1.ListApiConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListApiConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single ApiConfig.
+     * 
+ */ + public com.google.cloud.apigateway.v1.ApiConfig getApiConfig(com.google.cloud.apigateway.v1.GetApiConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetApiConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new ApiConfig in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createApiConfig(com.google.cloud.apigateway.v1.CreateApiConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateApiConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the parameters of a single ApiConfig.
+     * 
+ */ + public com.google.longrunning.Operation updateApiConfig(com.google.cloud.apigateway.v1.UpdateApiConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateApiConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a single ApiConfig.
+     * 
+ */ + public com.google.longrunning.Operation deleteApiConfig(com.google.cloud.apigateway.v1.DeleteApiConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteApiConfigMethod(), getCallOptions(), request); + } + } + + /** + *
+   * The API Gateway Service is the interface for managing API Gateways.
+   * 
+ */ + public static final class ApiGatewayServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private ApiGatewayServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ApiGatewayServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ApiGatewayServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists Gateways in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listGateways( + com.google.cloud.apigateway.v1.ListGatewaysRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGatewaysMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single Gateway.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getGateway( + com.google.cloud.apigateway.v1.GetGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGatewayMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Gateway in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createGateway( + com.google.cloud.apigateway.v1.CreateGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGatewayMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a single Gateway.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateGateway( + com.google.cloud.apigateway.v1.UpdateGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateGatewayMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single Gateway.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteGateway( + com.google.cloud.apigateway.v1.DeleteGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGatewayMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists Apis in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listApis( + com.google.cloud.apigateway.v1.ListApisRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListApisMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single Api.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getApi( + com.google.cloud.apigateway.v1.GetApiRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetApiMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Api in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createApi( + com.google.cloud.apigateway.v1.CreateApiRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateApiMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a single Api.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateApi( + com.google.cloud.apigateway.v1.UpdateApiRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateApiMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single Api.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteApi( + com.google.cloud.apigateway.v1.DeleteApiRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteApiMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ApiConfigs in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listApiConfigs( + com.google.cloud.apigateway.v1.ListApiConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListApiConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single ApiConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getApiConfig( + com.google.cloud.apigateway.v1.GetApiConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetApiConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new ApiConfig in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createApiConfig( + com.google.cloud.apigateway.v1.CreateApiConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateApiConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the parameters of a single ApiConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateApiConfig( + com.google.cloud.apigateway.v1.UpdateApiConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateApiConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a single ApiConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteApiConfig( + com.google.cloud.apigateway.v1.DeleteApiConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteApiConfigMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_GATEWAYS = 0; + private static final int METHODID_GET_GATEWAY = 1; + private static final int METHODID_CREATE_GATEWAY = 2; + private static final int METHODID_UPDATE_GATEWAY = 3; + private static final int METHODID_DELETE_GATEWAY = 4; + private static final int METHODID_LIST_APIS = 5; + private static final int METHODID_GET_API = 6; + private static final int METHODID_CREATE_API = 7; + private static final int METHODID_UPDATE_API = 8; + private static final int METHODID_DELETE_API = 9; + private static final int METHODID_LIST_API_CONFIGS = 10; + private static final int METHODID_GET_API_CONFIG = 11; + private static final int METHODID_CREATE_API_CONFIG = 12; + private static final int METHODID_UPDATE_API_CONFIG = 13; + private static final int METHODID_DELETE_API_CONFIG = 14; + + 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 ApiGatewayServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ApiGatewayServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_GATEWAYS: + serviceImpl.listGateways((com.google.cloud.apigateway.v1.ListGatewaysRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_GATEWAY: + serviceImpl.getGateway((com.google.cloud.apigateway.v1.GetGatewayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_GATEWAY: + serviceImpl.createGateway((com.google.cloud.apigateway.v1.CreateGatewayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_GATEWAY: + serviceImpl.updateGateway((com.google.cloud.apigateway.v1.UpdateGatewayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_GATEWAY: + serviceImpl.deleteGateway((com.google.cloud.apigateway.v1.DeleteGatewayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_APIS: + serviceImpl.listApis((com.google.cloud.apigateway.v1.ListApisRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_API: + serviceImpl.getApi((com.google.cloud.apigateway.v1.GetApiRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_API: + serviceImpl.createApi((com.google.cloud.apigateway.v1.CreateApiRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_API: + serviceImpl.updateApi((com.google.cloud.apigateway.v1.UpdateApiRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_API: + serviceImpl.deleteApi((com.google.cloud.apigateway.v1.DeleteApiRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_API_CONFIGS: + serviceImpl.listApiConfigs((com.google.cloud.apigateway.v1.ListApiConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_API_CONFIG: + serviceImpl.getApiConfig((com.google.cloud.apigateway.v1.GetApiConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_API_CONFIG: + serviceImpl.createApiConfig((com.google.cloud.apigateway.v1.CreateApiConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_API_CONFIG: + serviceImpl.updateApiConfig((com.google.cloud.apigateway.v1.UpdateApiConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_API_CONFIG: + serviceImpl.deleteApiConfig((com.google.cloud.apigateway.v1.DeleteApiConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class ApiGatewayServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ApiGatewayServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.apigateway.v1.ApigatewayService.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ApiGatewayService"); + } + } + + private static final class ApiGatewayServiceFileDescriptorSupplier + extends ApiGatewayServiceBaseDescriptorSupplier { + ApiGatewayServiceFileDescriptorSupplier() {} + } + + private static final class ApiGatewayServiceMethodDescriptorSupplier + extends ApiGatewayServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ApiGatewayServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ApiGatewayServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ApiGatewayServiceFileDescriptorSupplier()) + .addMethod(getListGatewaysMethod()) + .addMethod(getGetGatewayMethod()) + .addMethod(getCreateGatewayMethod()) + .addMethod(getUpdateGatewayMethod()) + .addMethod(getDeleteGatewayMethod()) + .addMethod(getListApisMethod()) + .addMethod(getGetApiMethod()) + .addMethod(getCreateApiMethod()) + .addMethod(getUpdateApiMethod()) + .addMethod(getDeleteApiMethod()) + .addMethod(getListApiConfigsMethod()) + .addMethod(getGetApiConfigMethod()) + .addMethod(getCreateApiConfigMethod()) + .addMethod(getUpdateApiConfigMethod()) + .addMethod(getDeleteApiConfigMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Api.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Api.java similarity index 65% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Api.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Api.java index d1f5b87..6175d92 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Api.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Api.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * An API that can be served by one or more Gateways.
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.Api} */ -public final class Api extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Api extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.Api) ApiOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Api.newBuilder() to construct. private Api(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Api() { name_ = ""; displayName_ = ""; @@ -46,15 +28,16 @@ private Api() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Api(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Api( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,84 +57,76 @@ private Api( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - managedService_ = s; - break; - } - case 96: - { - int rawValue = input.readEnum(); + displayName_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - state_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + managedService_ = s; + break; + } + case 96: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -159,52 +134,48 @@ private Api( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_Api_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Api_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_Api_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Api_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.Api.class, - com.google.cloud.apigateway.v1.Api.Builder.class); + com.google.cloud.apigateway.v1.Api.class, com.google.cloud.apigateway.v1.Api.Builder.class); } /** - * - * *
    * All the possible API states.
    * 
* * Protobuf enum {@code google.cloud.apigateway.v1.Api.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * API does not have a state yet.
      * 
@@ -213,8 +184,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * API is being created.
      * 
@@ -223,8 +192,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * API is active.
      * 
@@ -233,8 +200,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(2), /** - * - * *
      * API creation failed.
      * 
@@ -243,8 +208,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * API is being deleted.
      * 
@@ -253,8 +216,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(4), /** - * - * *
      * API is being updated.
      * 
@@ -266,8 +227,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * API does not have a state yet.
      * 
@@ -276,8 +235,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * API is being created.
      * 
@@ -286,8 +243,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * API is active.
      * 
@@ -296,8 +251,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 2; /** - * - * *
      * API creation failed.
      * 
@@ -306,8 +259,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * API is being deleted.
      * 
@@ -316,8 +267,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; /** - * - * *
      * API is being updated.
      * 
@@ -326,6 +275,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -350,55 +300,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return ACTIVE; - case 3: - return FAILED; - case 4: - return DELETING; - case 5: - return UPDATING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return ACTIVE; + case 3: return FAILED; + case 4: return DELETING; + case 5: return UPDATING; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.apigateway.v1.Api.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -418,15 +365,12 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. Resource name of the API.
    * Format: projects/{project}/locations/global/apis/{api}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -435,30 +379,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; } } /** - * - * *
    * Output only. Resource name of the API.
    * Format: projects/{project}/locations/global/apis/{api}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -469,15 +413,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -485,15 +425,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -501,14 +437,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -518,15 +451,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -534,15 +463,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -550,14 +475,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -565,23 +487,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -590,8 +513,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -600,22 +521,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -625,12 +546,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -640,16 +560,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -659,11 +579,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -673,14 +594,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int DISPLAY_NAME_FIELD_NUMBER = 5;
   private volatile java.lang.Object displayName_;
   /**
-   *
-   *
    * 
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ @java.lang.Override @@ -689,29 +607,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -722,8 +640,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int MANAGED_SERVICE_FIELD_NUMBER = 7; private volatile java.lang.Object managedService_; /** - * - * *
    * Optional. Immutable. The name of a Google Managed Service (
    * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -731,10 +647,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * project as this API.
    * 
* - * - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The managedService. */ @java.lang.Override @@ -743,15 +656,14 @@ public java.lang.String getManagedService() { 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(); managedService_ = s; return s; } } /** - * - * *
    * Optional. Immutable. The name of a Google Managed Service (
    * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -759,18 +671,17 @@ public java.lang.String getManagedService() {
    * project as this API.
    * 
* - * - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for managedService. */ @java.lang.Override - public com.google.protobuf.ByteString getManagedServiceBytes() { + public com.google.protobuf.ByteString + getManagedServiceBytes() { java.lang.Object ref = managedService_; 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); managedService_ = b; return b; } else { @@ -781,45 +692,31 @@ public com.google.protobuf.ByteString getManagedServiceBytes() { public static final int STATE_FIELD_NUMBER = 12; private int state_; /** - * - * *
    * Output only. State of the API.
    * 
* - * - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. State of the API.
    * 
* - * - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.apigateway.v1.Api.State getState() { + @java.lang.Override public com.google.cloud.apigateway.v1.Api.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.apigateway.v1.Api.State result = - com.google.cloud.apigateway.v1.Api.State.valueOf(state_); + com.google.cloud.apigateway.v1.Api.State result = com.google.cloud.apigateway.v1.Api.State.valueOf(state_); return result == null ? com.google.cloud.apigateway.v1.Api.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -831,7 +728,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_); } @@ -841,8 +739,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -865,20 +767,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); @@ -887,7 +791,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, managedService_); } if (state_ != com.google.cloud.apigateway.v1.Api.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -897,25 +802,31 @@ 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.apigateway.v1.Api)) { return super.equals(obj); } com.google.cloud.apigateway.v1.Api other = (com.google.cloud.apigateway.v1.Api) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getManagedService().equals(other.getManagedService())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getManagedService() + .equals(other.getManagedService())) return false; if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -953,146 +864,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.Api parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.Api parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.Api 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.apigateway.v1.Api parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.apigateway.v1.Api parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.Api 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.apigateway.v1.Api parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.Api 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.apigateway.v1.Api 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.apigateway.v1.Api 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.apigateway.v1.Api 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.apigateway.v1.Api 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.apigateway.v1.Api 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.apigateway.v1.Api 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.apigateway.v1.Api 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; } /** - * - * *
    * An API that can be served by one or more Gateways.
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.Api} */ - 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.apigateway.v1.Api) com.google.cloud.apigateway.v1.ApiOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_Api_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Api_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_Api_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Api_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.Api.class, - com.google.cloud.apigateway.v1.Api.Builder.class); + com.google.cloud.apigateway.v1.Api.class, com.google.cloud.apigateway.v1.Api.Builder.class); } // Construct using com.google.cloud.apigateway.v1.Api.newBuilder() @@ -1100,15 +1005,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(); @@ -1137,9 +1043,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_Api_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Api_descriptor; } @java.lang.Override @@ -1184,39 +1090,38 @@ public com.google.cloud.apigateway.v1.Api 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.apigateway.v1.Api) { - return mergeFrom((com.google.cloud.apigateway.v1.Api) other); + return mergeFrom((com.google.cloud.apigateway.v1.Api)other); } else { super.mergeFrom(other); return this; @@ -1235,7 +1140,8 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.Api other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); @@ -1275,26 +1181,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Resource name of the API.
      * Format: projects/{project}/locations/global/apis/{api}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1303,22 +1206,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Resource name of the API.
      * Format: projects/{project}/locations/global/apis/{api}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1326,64 +1228,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Resource name of the API.
      * Format: projects/{project}/locations/global/apis/{api}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; } /** - * - * *
      * Output only. Resource name of the API.
      * Format: projects/{project}/locations/global/apis/{api}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the API.
      * Format: projects/{project}/locations/global/apis/{api}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1391,58 +1286,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1458,17 +1334,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1479,21 +1352,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1505,15 +1374,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1527,64 +1392,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1592,58 +1441,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1659,17 +1489,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1680,21 +1507,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1706,15 +1529,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1728,84 +1547,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1817,8 +1621,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1827,22 +1629,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1852,12 +1654,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1867,17 +1668,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1887,11 +1687,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1899,12 +1700,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1913,21 +1713,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+    getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1936,20 +1738,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableLabels().getMutableMap().put(key, value);
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1958,27 +1759,28 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private java.lang.Object displayName_ = "";
     /**
-     *
-     *
      * 
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1987,21 +1789,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2009,61 +1810,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2071,8 +1865,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object managedService_ = ""; /** - * - * *
      * Optional. Immutable. The name of a Google Managed Service (
      * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -2080,16 +1872,14 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * project as this API.
      * 
* - * - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The managedService. */ public java.lang.String getManagedService() { java.lang.Object ref = managedService_; 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(); managedService_ = s; return s; @@ -2098,8 +1888,6 @@ public java.lang.String getManagedService() { } } /** - * - * *
      * Optional. Immutable. The name of a Google Managed Service (
      * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -2107,17 +1895,16 @@ public java.lang.String getManagedService() {
      * project as this API.
      * 
* - * - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for managedService. */ - public com.google.protobuf.ByteString getManagedServiceBytes() { + public com.google.protobuf.ByteString + getManagedServiceBytes() { java.lang.Object ref = managedService_; 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); managedService_ = b; return b; } else { @@ -2125,8 +1912,6 @@ public com.google.protobuf.ByteString getManagedServiceBytes() { } } /** - * - * *
      * Optional. Immutable. The name of a Google Managed Service (
      * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -2134,25 +1919,21 @@ public com.google.protobuf.ByteString getManagedServiceBytes() {
      * project as this API.
      * 
* - * - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The managedService to set. * @return This builder for chaining. */ - public Builder setManagedService(java.lang.String value) { + public Builder setManagedService( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + managedService_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Immutable. The name of a Google Managed Service (
      * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -2160,21 +1941,16 @@ public Builder setManagedService(java.lang.String value) {
      * project as this API.
      * 
* - * - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearManagedService() { - + managedService_ = getDefaultInstance().getManagedService(); onChanged(); return this; } /** - * - * *
      * Optional. Immutable. The name of a Google Managed Service (
      * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -2182,19 +1958,17 @@ public Builder clearManagedService() {
      * project as this API.
      * 
* - * - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes for managedService to set. * @return This builder for chaining. */ - public Builder setManagedServiceBytes(com.google.protobuf.ByteString value) { + public Builder setManagedServiceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + managedService_ = value; onChanged(); return this; @@ -2202,73 +1976,51 @@ public Builder setManagedServiceBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. State of the API.
      * 
* - * - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. State of the API.
      * 
* - * - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. State of the API.
      * 
* - * - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.apigateway.v1.Api.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.apigateway.v1.Api.State result = - com.google.cloud.apigateway.v1.Api.State.valueOf(state_); + com.google.cloud.apigateway.v1.Api.State result = com.google.cloud.apigateway.v1.Api.State.valueOf(state_); return result == null ? com.google.cloud.apigateway.v1.Api.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. State of the API.
      * 
* - * - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2276,33 +2028,28 @@ public Builder setState(com.google.cloud.apigateway.v1.Api.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. State of the API.
      * 
* - * - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 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); } @@ -2312,12 +2059,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.Api) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.Api) private static final com.google.cloud.apigateway.v1.Api DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.Api(); } @@ -2326,16 +2073,16 @@ public static com.google.cloud.apigateway.v1.Api getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Api parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Api(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Api parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Api(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2350,4 +2097,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.Api getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfig.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfig.java similarity index 69% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfig.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfig.java index cdf0455..08ce5dc 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfig.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * An API Configuration is a combination of settings for both the Managed
  * Service and Gateways serving this API Config.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.apigateway.v1.ApiConfig}
  */
-public final class ApiConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ApiConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ApiConfig)
     ApiConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ApiConfig.newBuilder() to construct.
   private ApiConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ApiConfig() {
     name_ = "";
     displayName_ = "";
@@ -51,15 +33,16 @@ private ApiConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ApiConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ApiConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -79,131 +62,109 @@ private ApiConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 18:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 34:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
+            break;
+          }
+          case 34: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 64:
-            {
-              int rawValue = input.readEnum();
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              state_ = rawValue;
-              break;
-            }
-          case 74:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                openapiDocuments_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument>();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              openapiDocuments_.add(
-                  input.readMessage(
-                      com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.parser(),
-                      extensionRegistry));
-              break;
+            displayName_ = s;
+            break;
+          }
+          case 64: {
+            int rawValue = input.readEnum();
+
+            state_ = rawValue;
+            break;
+          }
+          case 74: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              openapiDocuments_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 82:
-            {
-              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                grpcServices_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition>();
-                mutable_bitField0_ |= 0x00000004;
-              }
-              grpcServices_.add(
-                  input.readMessage(
-                      com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.parser(),
-                      extensionRegistry));
-              break;
+            openapiDocuments_.add(
+                input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.parser(), extensionRegistry));
+            break;
+          }
+          case 82: {
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              grpcServices_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 90:
-            {
-              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-                managedServiceConfigs_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000008;
-              }
-              managedServiceConfigs_.add(
-                  input.readMessage(
-                      com.google.cloud.apigateway.v1.ApiConfig.File.parser(), extensionRegistry));
-              break;
+            grpcServices_.add(
+                input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.parser(), extensionRegistry));
+            break;
+          }
+          case 90: {
+            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+              managedServiceConfigs_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000008;
             }
-          case 98:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            managedServiceConfigs_.add(
+                input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.File.parser(), extensionRegistry));
+            break;
+          }
+          case 98: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              serviceConfigId_ = s;
-              break;
-            }
-          case 114:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            serviceConfigId_ = s;
+            break;
+          }
+          case 114: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              gatewayServiceAccount_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            gatewayServiceAccount_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -211,7 +172,8 @@ private ApiConfig(
     } 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_ & 0x00000002) != 0)) {
         openapiDocuments_ = java.util.Collections.unmodifiableList(openapiDocuments_);
@@ -226,46 +188,41 @@ private ApiConfig(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.apigateway.v1.Apigateway
-        .internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.apigateway.v1.Apigateway
-        .internal_static_google_cloud_apigateway_v1_ApiConfig_fieldAccessorTable
+    return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.apigateway.v1.ApiConfig.class,
-            com.google.cloud.apigateway.v1.ApiConfig.Builder.class);
+            com.google.cloud.apigateway.v1.ApiConfig.class, com.google.cloud.apigateway.v1.ApiConfig.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * All the possible API Config states.
    * 
* * Protobuf enum {@code google.cloud.apigateway.v1.ApiConfig.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * API Config does not have a state yet.
      * 
@@ -274,8 +231,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * API Config is being created and deployed to the API Controller.
      * 
@@ -284,8 +239,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * API Config is ready for use by Gateways.
      * 
@@ -294,8 +247,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(2), /** - * - * *
      * API Config creation failed.
      * 
@@ -304,8 +255,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * API Config is being deleted.
      * 
@@ -314,8 +263,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(4), /** - * - * *
      * API Config is being updated.
      * 
@@ -324,8 +271,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UPDATING(5), /** - * - * *
      * API Config settings are being activated in downstream systems.
      * API Configs in this state cannot be used by Gateways.
@@ -338,8 +283,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * API Config does not have a state yet.
      * 
@@ -348,8 +291,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * API Config is being created and deployed to the API Controller.
      * 
@@ -358,8 +299,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * API Config is ready for use by Gateways.
      * 
@@ -368,8 +307,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 2; /** - * - * *
      * API Config creation failed.
      * 
@@ -378,8 +315,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * API Config is being deleted.
      * 
@@ -388,8 +323,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; /** - * - * *
      * API Config is being updated.
      * 
@@ -398,8 +331,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 5; /** - * - * *
      * API Config settings are being activated in downstream systems.
      * API Configs in this state cannot be used by Gateways.
@@ -409,6 +340,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ACTIVATING_VALUE = 6;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -433,57 +365,53 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return CREATING;
-        case 2:
-          return ACTIVE;
-        case 3:
-          return FAILED;
-        case 4:
-          return DELETING;
-        case 5:
-          return UPDATING;
-        case 6:
-          return ACTIVATING;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return CREATING;
+        case 2: return ACTIVE;
+        case 3: return FAILED;
+        case 4: return DELETING;
+        case 5: return UPDATING;
+        case 6: return ACTIVATING;
+        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<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.apigateway.v1.ApiConfig.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State 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;
@@ -500,70 +428,58 @@ private State(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.apigateway.v1.ApiConfig.State)
   }
 
-  public interface FileOrBuilder
-      extends
+  public interface FileOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ApiConfig.File)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The file path (full or relative path). This is typically the path of the
      * file when it is uploaded.
      * 
* * string path = 1; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
      * The file path (full or relative path). This is typically the path of the
      * file when it is uploaded.
      * 
* * string path = 1; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); /** - * - * *
      * The bytes that constitute the file.
      * 
* * bytes contents = 2; - * * @return The contents. */ com.google.protobuf.ByteString getContents(); } /** - * - * *
    * A lightweight description of a file.
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ApiConfig.File} */ - public static final class File extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class File extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ApiConfig.File) FileOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use File.newBuilder() to construct. private File(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private File() { path_ = ""; contents_ = com.google.protobuf.ByteString.EMPTY; @@ -571,15 +487,16 @@ private File() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new File(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private File( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -598,25 +515,24 @@ private File( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - path_ = s; - break; - } - case 18: - { - contents_ = input.readBytes(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + path_ = s; + break; + } + case 18: { + + contents_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -624,40 +540,35 @@ private File( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ApiConfig_File_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_File_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ApiConfig.File.class, - com.google.cloud.apigateway.v1.ApiConfig.File.Builder.class); + com.google.cloud.apigateway.v1.ApiConfig.File.class, com.google.cloud.apigateway.v1.ApiConfig.File.Builder.class); } public static final int PATH_FIELD_NUMBER = 1; private volatile java.lang.Object path_; /** - * - * *
      * The file path (full or relative path). This is typically the path of the
      * file when it is uploaded.
      * 
* * string path = 1; - * * @return The path. */ @java.lang.Override @@ -666,30 +577,30 @@ 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; } } /** - * - * *
      * The file path (full or relative path). This is typically the path of the
      * file when it is uploaded.
      * 
* * string path = 1; - * * @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 { @@ -700,14 +611,11 @@ public com.google.protobuf.ByteString getPathBytes() { public static final int CONTENTS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString contents_; /** - * - * *
      * The bytes that constitute the file.
      * 
* * bytes contents = 2; - * * @return The contents. */ @java.lang.Override @@ -716,7 +624,6 @@ public com.google.protobuf.ByteString getContents() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -728,7 +635,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(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -748,7 +656,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } if (!contents_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, contents_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, contents_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -758,16 +667,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.apigateway.v1.ApiConfig.File)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ApiConfig.File other = - (com.google.cloud.apigateway.v1.ApiConfig.File) obj; + com.google.cloud.apigateway.v1.ApiConfig.File other = (com.google.cloud.apigateway.v1.ApiConfig.File) obj; - if (!getPath().equals(other.getPath())) return false; - if (!getContents().equals(other.getContents())) return false; + if (!getPath() + .equals(other.getPath())) return false; + if (!getContents() + .equals(other.getContents())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -788,94 +698,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.ApiConfig.File parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.ApiConfig.File parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ApiConfig.File 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.apigateway.v1.ApiConfig.File parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ApiConfig.File 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.apigateway.v1.ApiConfig.File parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ApiConfig.File 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.apigateway.v1.ApiConfig.File 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.apigateway.v1.ApiConfig.File 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.apigateway.v1.ApiConfig.File parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.ApiConfig.File parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.ApiConfig.File 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.apigateway.v1.ApiConfig.File 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.apigateway.v1.ApiConfig.File 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.apigateway.v1.ApiConfig.File 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 @@ -885,32 +789,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A lightweight description of a file.
      * 
* * Protobuf type {@code google.cloud.apigateway.v1.ApiConfig.File} */ - 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.apigateway.v1.ApiConfig.File) com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ApiConfig_File_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_File_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ApiConfig.File.class, - com.google.cloud.apigateway.v1.ApiConfig.File.Builder.class); + com.google.cloud.apigateway.v1.ApiConfig.File.class, com.google.cloud.apigateway.v1.ApiConfig.File.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ApiConfig.File.newBuilder() @@ -918,15 +817,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(); @@ -938,9 +838,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor; } @java.lang.Override @@ -959,8 +859,7 @@ public com.google.cloud.apigateway.v1.ApiConfig.File build() { @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.File buildPartial() { - com.google.cloud.apigateway.v1.ApiConfig.File result = - new com.google.cloud.apigateway.v1.ApiConfig.File(this); + com.google.cloud.apigateway.v1.ApiConfig.File result = new com.google.cloud.apigateway.v1.ApiConfig.File(this); result.path_ = path_; result.contents_ = contents_; onBuilt(); @@ -971,41 +870,38 @@ public com.google.cloud.apigateway.v1.ApiConfig.File 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) { + 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.apigateway.v1.ApiConfig.File) { - return mergeFrom((com.google.cloud.apigateway.v1.ApiConfig.File) other); + return mergeFrom((com.google.cloud.apigateway.v1.ApiConfig.File)other); } else { super.mergeFrom(other); return this; @@ -1013,8 +909,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.ApiConfig.File other) { - if (other == com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; onChanged(); @@ -1053,21 +948,19 @@ public Builder mergeFrom( private java.lang.Object path_ = ""; /** - * - * *
        * The file path (full or relative path). This is typically the path of the
        * file when it is uploaded.
        * 
* * string path = 1; - * * @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; @@ -1076,22 +969,21 @@ public java.lang.String getPath() { } } /** - * - * *
        * The file path (full or relative path). This is typically the path of the
        * file when it is uploaded.
        * 
* * string path = 1; - * * @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 { @@ -1099,64 +991,57 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
        * The file path (full or relative path). This is typically the path of the
        * file when it is uploaded.
        * 
* * string path = 1; - * * @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; } /** - * - * *
        * The file path (full or relative path). This is typically the path of the
        * file when it is uploaded.
        * 
* * string path = 1; - * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** - * - * *
        * The file path (full or relative path). This is typically the path of the
        * file when it is uploaded.
        * 
* * string path = 1; - * * @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; @@ -1164,14 +1049,11 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString contents_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
        * The bytes that constitute the file.
        * 
* * bytes contents = 2; - * * @return The contents. */ @java.lang.Override @@ -1179,44 +1061,37 @@ public com.google.protobuf.ByteString getContents() { return contents_; } /** - * - * *
        * The bytes that constitute the file.
        * 
* * bytes contents = 2; - * * @param value The contents to set. * @return This builder for chaining. */ public Builder setContents(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contents_ = value; onChanged(); return this; } /** - * - * *
        * The bytes that constitute the file.
        * 
* * bytes contents = 2; - * * @return This builder for chaining. */ public Builder clearContents() { - + contents_ = getDefaultInstance().getContents(); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1229,12 +1104,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ApiConfig.File) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ApiConfig.File) private static final com.google.cloud.apigateway.v1.ApiConfig.File DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ApiConfig.File(); } @@ -1243,16 +1118,16 @@ public static com.google.cloud.apigateway.v1.ApiConfig.File getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public File parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new File(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public File parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new File(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1267,40 +1142,32 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ApiConfig.File getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface OpenApiDocumentOrBuilder - extends + public interface OpenApiDocumentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The OpenAPI Specification document file.
      * 
* * .google.cloud.apigateway.v1.ApiConfig.File document = 1; - * * @return Whether the document field is set. */ boolean hasDocument(); /** - * - * *
      * The OpenAPI Specification document file.
      * 
* * .google.cloud.apigateway.v1.ApiConfig.File document = 1; - * * @return The document. */ com.google.cloud.apigateway.v1.ApiConfig.File getDocument(); /** - * - * *
      * The OpenAPI Specification document file.
      * 
@@ -1310,37 +1177,36 @@ public interface OpenApiDocumentOrBuilder com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getDocumentOrBuilder(); } /** - * - * *
    * An OpenAPI Specification Document describing an API.
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ApiConfig.OpenApiDocument} */ - public static final class OpenApiDocument extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class OpenApiDocument extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) OpenApiDocumentOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OpenApiDocument.newBuilder() to construct. private OpenApiDocument(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OpenApiDocument() {} + private OpenApiDocument() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OpenApiDocument(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OpenApiDocument( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1359,29 +1225,26 @@ private OpenApiDocument( case 0: done = true; break; - case 10: - { - com.google.cloud.apigateway.v1.ApiConfig.File.Builder subBuilder = null; - if (document_ != null) { - subBuilder = document_.toBuilder(); - } - document_ = - input.readMessage( - com.google.cloud.apigateway.v1.ApiConfig.File.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(document_); - document_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.apigateway.v1.ApiConfig.File.Builder subBuilder = null; + if (document_ != null) { + subBuilder = document_.toBuilder(); + } + document_ = input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.File.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(document_); + document_ = 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) { @@ -1389,39 +1252,34 @@ private OpenApiDocument( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.class, - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder.class); + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.class, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder.class); } public static final int DOCUMENT_FIELD_NUMBER = 1; private com.google.cloud.apigateway.v1.ApiConfig.File document_; /** - * - * *
      * The OpenAPI Specification document file.
      * 
* * .google.cloud.apigateway.v1.ApiConfig.File document = 1; - * * @return Whether the document field is set. */ @java.lang.Override @@ -1429,25 +1287,18 @@ public boolean hasDocument() { return document_ != null; } /** - * - * *
      * The OpenAPI Specification document file.
      * 
* * .google.cloud.apigateway.v1.ApiConfig.File document = 1; - * * @return The document. */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.File getDocument() { - return document_ == null - ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() : document_; } /** - * - * *
      * The OpenAPI Specification document file.
      * 
@@ -1460,7 +1311,6 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getDocumentOrBuild } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1472,7 +1322,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 (document_ != null) { output.writeMessage(1, getDocument()); } @@ -1486,7 +1337,8 @@ public int getSerializedSize() { size = 0; if (document_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocument()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDocument()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1496,17 +1348,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.apigateway.v1.ApiConfig.OpenApiDocument)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument other = - (com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) obj; + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument other = (com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) obj; if (hasDocument() != other.hasDocument()) return false; if (hasDocument()) { - if (!getDocument().equals(other.getDocument())) return false; + if (!getDocument() + .equals(other.getDocument())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1529,94 +1381,87 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument 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.apigateway.v1.ApiConfig.OpenApiDocument 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.apigateway.v1.ApiConfig.OpenApiDocument parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument 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.apigateway.v1.ApiConfig.OpenApiDocument parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument 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.apigateway.v1.ApiConfig.OpenApiDocument parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument 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.apigateway.v1.ApiConfig.OpenApiDocument parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument 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.apigateway.v1.ApiConfig.OpenApiDocument 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.apigateway.v1.ApiConfig.OpenApiDocument 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.apigateway.v1.ApiConfig.OpenApiDocument prototype) { + public static Builder newBuilder(com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument 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 @@ -1626,32 +1471,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * An OpenAPI Specification Document describing an API.
      * 
* * Protobuf type {@code google.cloud.apigateway.v1.ApiConfig.OpenApiDocument} */ - 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.apigateway.v1.ApiConfig.OpenApiDocument) com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.class, - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder.class); + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.class, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.newBuilder() @@ -1659,15 +1499,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(); @@ -1681,9 +1522,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor; } @java.lang.Override @@ -1702,8 +1543,7 @@ public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument build() { @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument buildPartial() { - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument result = - new com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument(this); + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument result = new com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument(this); if (documentBuilder_ == null) { result.document_ = document_; } else { @@ -1717,41 +1557,38 @@ public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument 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) { + 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.apigateway.v1.ApiConfig.OpenApiDocument) { - return mergeFrom((com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) other); + return mergeFrom((com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument)other); } else { super.mergeFrom(other); return this; @@ -1759,8 +1596,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument other) { - if (other == com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.getDefaultInstance()) return this; if (other.hasDocument()) { mergeDocument(other.getDocument()); } @@ -1783,8 +1619,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1796,47 +1631,34 @@ public Builder mergeFrom( private com.google.cloud.apigateway.v1.ApiConfig.File document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, - com.google.cloud.apigateway.v1.ApiConfig.File.Builder, - com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> - documentBuilder_; + com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> documentBuilder_; /** - * - * *
        * The OpenAPI Specification document file.
        * 
* * .google.cloud.apigateway.v1.ApiConfig.File document = 1; - * * @return Whether the document field is set. */ public boolean hasDocument() { return documentBuilder_ != null || document_ != null; } /** - * - * *
        * The OpenAPI Specification document file.
        * 
* * .google.cloud.apigateway.v1.ApiConfig.File document = 1; - * * @return The document. */ public com.google.cloud.apigateway.v1.ApiConfig.File getDocument() { if (documentBuilder_ == null) { - return document_ == null - ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() - : document_; + return document_ == null ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() : document_; } else { return documentBuilder_.getMessage(); } } /** - * - * *
        * The OpenAPI Specification document file.
        * 
@@ -1857,8 +1679,6 @@ public Builder setDocument(com.google.cloud.apigateway.v1.ApiConfig.File value) return this; } /** - * - * *
        * The OpenAPI Specification document file.
        * 
@@ -1877,8 +1697,6 @@ public Builder setDocument( return this; } /** - * - * *
        * The OpenAPI Specification document file.
        * 
@@ -1889,9 +1707,7 @@ public Builder mergeDocument(com.google.cloud.apigateway.v1.ApiConfig.File value if (documentBuilder_ == null) { if (document_ != null) { document_ = - com.google.cloud.apigateway.v1.ApiConfig.File.newBuilder(document_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.apigateway.v1.ApiConfig.File.newBuilder(document_).mergeFrom(value).buildPartial(); } else { document_ = value; } @@ -1903,8 +1719,6 @@ public Builder mergeDocument(com.google.cloud.apigateway.v1.ApiConfig.File value return this; } /** - * - * *
        * The OpenAPI Specification document file.
        * 
@@ -1923,8 +1737,6 @@ public Builder clearDocument() { return this; } /** - * - * *
        * The OpenAPI Specification document file.
        * 
@@ -1932,13 +1744,11 @@ public Builder clearDocument() { * .google.cloud.apigateway.v1.ApiConfig.File document = 1; */ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getDocumentBuilder() { - + onChanged(); return getDocumentFieldBuilder().getBuilder(); } /** - * - * *
        * The OpenAPI Specification document file.
        * 
@@ -1949,14 +1759,11 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getDocumentOrBuild if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_ == null - ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() - : document_; + return document_ == null ? + com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() : document_; } } /** - * - * *
        * The OpenAPI Specification document file.
        * 
@@ -1964,22 +1771,18 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getDocumentOrBuild * .google.cloud.apigateway.v1.ApiConfig.File document = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, - com.google.cloud.apigateway.v1.ApiConfig.File.Builder, - com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { - documentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, - com.google.cloud.apigateway.v1.ApiConfig.File.Builder, - com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>( - getDocument(), getParentForChildren(), isClean()); + documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>( + getDocument(), + getParentForChildren(), + isClean()); document_ = null; } return documentBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1992,12 +1795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) private static final com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument(); } @@ -2006,16 +1809,16 @@ public static com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OpenApiDocument parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OpenApiDocument(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenApiDocument parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OpenApiDocument(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2030,16 +1833,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface GrpcServiceDefinitionOrBuilder - extends + public interface GrpcServiceDefinitionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Input only. File descriptor set, generated by protoc.
      * To generate, use protoc with imports and source info included.
@@ -2048,16 +1849,11 @@ public interface GrpcServiceDefinitionOrBuilder
      * $ protoc --include_imports --include_source_info test.proto -o out.pb
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the fileDescriptorSet field is set. */ boolean hasFileDescriptorSet(); /** - * - * *
      * Input only. File descriptor set, generated by protoc.
      * To generate, use protoc with imports and source info included.
@@ -2066,16 +1862,11 @@ public interface GrpcServiceDefinitionOrBuilder
      * $ protoc --include_imports --include_source_info test.proto -o out.pb
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The fileDescriptorSet. */ com.google.cloud.apigateway.v1.ApiConfig.File getFileDescriptorSet(); /** - * - * *
      * Input only. File descriptor set, generated by protoc.
      * To generate, use protoc with imports and source info included.
@@ -2084,15 +1875,11 @@ public interface GrpcServiceDefinitionOrBuilder
      * $ protoc --include_imports --include_source_info test.proto -o out.pb
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; */ com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getFileDescriptorSetOrBuilder(); /** - * - * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -2100,14 +1887,11 @@ public interface GrpcServiceDefinitionOrBuilder
      * file_descriptor_set.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getSourceList(); + java.util.List + getSourceList(); /** - * - * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -2115,14 +1899,10 @@ public interface GrpcServiceDefinitionOrBuilder
      * file_descriptor_set.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.apigateway.v1.ApiConfig.File getSource(int index); /** - * - * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -2130,14 +1910,10 @@ public interface GrpcServiceDefinitionOrBuilder
      * file_descriptor_set.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ int getSourceCount(); /** - * - * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -2145,15 +1921,11 @@ public interface GrpcServiceDefinitionOrBuilder
      * file_descriptor_set.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getSourceOrBuilderList(); /** - * - * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -2161,46 +1933,43 @@ public interface GrpcServiceDefinitionOrBuilder
      * file_descriptor_set.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder(int index); + com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder( + int index); } /** - * - * *
    * A gRPC service definition.
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition} */ - public static final class GrpcServiceDefinition extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GrpcServiceDefinition extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) GrpcServiceDefinitionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GrpcServiceDefinition.newBuilder() to construct. private GrpcServiceDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GrpcServiceDefinition() { source_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GrpcServiceDefinition(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GrpcServiceDefinition( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2220,41 +1989,35 @@ private GrpcServiceDefinition( case 0: done = true; break; - case 10: - { - com.google.cloud.apigateway.v1.ApiConfig.File.Builder subBuilder = null; - if (fileDescriptorSet_ != null) { - subBuilder = fileDescriptorSet_.toBuilder(); - } - fileDescriptorSet_ = - input.readMessage( - com.google.cloud.apigateway.v1.ApiConfig.File.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fileDescriptorSet_); - fileDescriptorSet_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.apigateway.v1.ApiConfig.File.Builder subBuilder = null; + if (fileDescriptorSet_ != null) { + subBuilder = fileDescriptorSet_.toBuilder(); } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - source_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - source_.add( - input.readMessage( - com.google.cloud.apigateway.v1.ApiConfig.File.parser(), extensionRegistry)); - break; + fileDescriptorSet_ = input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.File.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fileDescriptorSet_); + fileDescriptorSet_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + source_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } + source_.add( + input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.File.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2262,7 +2025,8 @@ private GrpcServiceDefinition( } 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)) { source_ = java.util.Collections.unmodifiableList(source_); @@ -2271,27 +2035,22 @@ private GrpcServiceDefinition( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.class, - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder.class); + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.class, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder.class); } public static final int FILE_DESCRIPTOR_SET_FIELD_NUMBER = 1; private com.google.cloud.apigateway.v1.ApiConfig.File fileDescriptorSet_; /** - * - * *
      * Input only. File descriptor set, generated by protoc.
      * To generate, use protoc with imports and source info included.
@@ -2300,10 +2059,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * $ protoc --include_imports --include_source_info test.proto -o out.pb
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the fileDescriptorSet field is set. */ @java.lang.Override @@ -2311,8 +2067,6 @@ public boolean hasFileDescriptorSet() { return fileDescriptorSet_ != null; } /** - * - * *
      * Input only. File descriptor set, generated by protoc.
      * To generate, use protoc with imports and source info included.
@@ -2321,21 +2075,14 @@ public boolean hasFileDescriptorSet() {
      * $ protoc --include_imports --include_source_info test.proto -o out.pb
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The fileDescriptorSet. */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.File getFileDescriptorSet() { - return fileDescriptorSet_ == null - ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() - : fileDescriptorSet_; + return fileDescriptorSet_ == null ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() : fileDescriptorSet_; } /** - * - * *
      * Input only. File descriptor set, generated by protoc.
      * To generate, use protoc with imports and source info included.
@@ -2344,9 +2091,7 @@ public com.google.cloud.apigateway.v1.ApiConfig.File getFileDescriptorSet() {
      * $ protoc --include_imports --include_source_info test.proto -o out.pb
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getFileDescriptorSetOrBuilder() { @@ -2356,8 +2101,6 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getFileDescriptorS public static final int SOURCE_FIELD_NUMBER = 2; private java.util.List source_; /** - * - * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -2365,17 +2108,13 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getFileDescriptorS
      * file_descriptor_set.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getSourceList() { return source_; } /** - * - * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -2383,18 +2122,14 @@ public java.util.List getSourceLi
      * file_descriptor_set.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getSourceOrBuilderList() { return source_; } /** - * - * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -2402,17 +2137,13 @@ public java.util.List getSourceLi
      * file_descriptor_set.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getSourceCount() { return source_.size(); } /** - * - * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -2420,17 +2151,13 @@ public int getSourceCount() {
      * file_descriptor_set.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.File getSource(int index) { return source_.get(index); } /** - * - * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -2438,17 +2165,15 @@ public com.google.cloud.apigateway.v1.ApiConfig.File getSource(int index) {
      * file_descriptor_set.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder(int index) { + public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder( + int index) { return source_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2460,7 +2185,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 (fileDescriptorSet_ != null) { output.writeMessage(1, getFileDescriptorSet()); } @@ -2477,10 +2203,12 @@ public int getSerializedSize() { size = 0; if (fileDescriptorSet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFileDescriptorSet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getFileDescriptorSet()); } for (int i = 0; i < source_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, source_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, source_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2490,19 +2218,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.apigateway.v1.ApiConfig.GrpcServiceDefinition)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition other = - (com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) obj; + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition other = (com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) obj; if (hasFileDescriptorSet() != other.hasFileDescriptorSet()) return false; if (hasFileDescriptorSet()) { - if (!getFileDescriptorSet().equals(other.getFileDescriptorSet())) return false; + if (!getFileDescriptorSet() + .equals(other.getFileDescriptorSet())) return false; } - if (!getSourceList().equals(other.getSourceList())) return false; + if (!getSourceList() + .equals(other.getSourceList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2528,94 +2257,87 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition 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.apigateway.v1.ApiConfig.GrpcServiceDefinition 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.apigateway.v1.ApiConfig.GrpcServiceDefinition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition 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.apigateway.v1.ApiConfig.GrpcServiceDefinition parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition 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.apigateway.v1.ApiConfig.GrpcServiceDefinition parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition 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.apigateway.v1.ApiConfig.GrpcServiceDefinition parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition 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.apigateway.v1.ApiConfig.GrpcServiceDefinition 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.apigateway.v1.ApiConfig.GrpcServiceDefinition 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.apigateway.v1.ApiConfig.GrpcServiceDefinition prototype) { + public static Builder newBuilder(com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition 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 @@ -2625,32 +2347,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A gRPC service definition.
      * 
* * Protobuf type {@code google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition} */ - 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.apigateway.v1.ApiConfig.GrpcServiceDefinition) com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.class, - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder.class); + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.class, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.newBuilder() @@ -2658,17 +2375,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) { getSourceFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2688,14 +2405,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor; } @java.lang.Override - public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition - getDefaultInstanceForType() { + public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getDefaultInstanceForType() { return com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.getDefaultInstance(); } @@ -2710,8 +2426,7 @@ public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition build() { @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition buildPartial() { - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition result = - new com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition(this); + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition result = new com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition(this); int from_bitField0_ = bitField0_; if (fileDescriptorSetBuilder_ == null) { result.fileDescriptorSet_ = fileDescriptorSet_; @@ -2735,52 +2450,46 @@ public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) { - return mergeFrom((com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) other); + return mergeFrom((com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition other) { - if (other - == com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition other) { + if (other == com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.getDefaultInstance()) return this; if (other.hasFileDescriptorSet()) { mergeFileDescriptorSet(other.getFileDescriptorSet()); } @@ -2802,10 +2511,9 @@ public Builder mergeFrom( sourceBuilder_ = null; source_ = other.source_; bitField0_ = (bitField0_ & ~0x00000001); - sourceBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSourceFieldBuilder() - : null; + sourceBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSourceFieldBuilder() : null; } else { sourceBuilder_.addAllMessages(other.source_); } @@ -2830,9 +2538,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2841,18 +2547,12 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.apigateway.v1.ApiConfig.File fileDescriptorSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, - com.google.cloud.apigateway.v1.ApiConfig.File.Builder, - com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> - fileDescriptorSetBuilder_; + com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> fileDescriptorSetBuilder_; /** - * - * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -2861,18 +2561,13 @@ public Builder mergeFrom(
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the fileDescriptorSet field is set. */ public boolean hasFileDescriptorSet() { return fileDescriptorSetBuilder_ != null || fileDescriptorSet_ != null; } /** - * - * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -2881,24 +2576,17 @@ public boolean hasFileDescriptorSet() {
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The fileDescriptorSet. */ public com.google.cloud.apigateway.v1.ApiConfig.File getFileDescriptorSet() { if (fileDescriptorSetBuilder_ == null) { - return fileDescriptorSet_ == null - ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() - : fileDescriptorSet_; + return fileDescriptorSet_ == null ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() : fileDescriptorSet_; } else { return fileDescriptorSetBuilder_.getMessage(); } } /** - * - * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -2907,9 +2595,7 @@ public com.google.cloud.apigateway.v1.ApiConfig.File getFileDescriptorSet() {
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder setFileDescriptorSet(com.google.cloud.apigateway.v1.ApiConfig.File value) { if (fileDescriptorSetBuilder_ == null) { @@ -2925,8 +2611,6 @@ public Builder setFileDescriptorSet(com.google.cloud.apigateway.v1.ApiConfig.Fil return this; } /** - * - * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -2935,9 +2619,7 @@ public Builder setFileDescriptorSet(com.google.cloud.apigateway.v1.ApiConfig.Fil
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder setFileDescriptorSet( com.google.cloud.apigateway.v1.ApiConfig.File.Builder builderForValue) { @@ -2951,8 +2633,6 @@ public Builder setFileDescriptorSet( return this; } /** - * - * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -2961,17 +2641,13 @@ public Builder setFileDescriptorSet(
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder mergeFileDescriptorSet(com.google.cloud.apigateway.v1.ApiConfig.File value) { if (fileDescriptorSetBuilder_ == null) { if (fileDescriptorSet_ != null) { fileDescriptorSet_ = - com.google.cloud.apigateway.v1.ApiConfig.File.newBuilder(fileDescriptorSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.apigateway.v1.ApiConfig.File.newBuilder(fileDescriptorSet_).mergeFrom(value).buildPartial(); } else { fileDescriptorSet_ = value; } @@ -2983,8 +2659,6 @@ public Builder mergeFileDescriptorSet(com.google.cloud.apigateway.v1.ApiConfig.F return this; } /** - * - * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -2993,9 +2667,7 @@ public Builder mergeFileDescriptorSet(com.google.cloud.apigateway.v1.ApiConfig.F
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder clearFileDescriptorSet() { if (fileDescriptorSetBuilder_ == null) { @@ -3009,8 +2681,6 @@ public Builder clearFileDescriptorSet() { return this; } /** - * - * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -3019,18 +2689,14 @@ public Builder clearFileDescriptorSet() {
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; */ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getFileDescriptorSetBuilder() { - + onChanged(); return getFileDescriptorSetFieldBuilder().getBuilder(); } /** - * - * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -3039,23 +2705,17 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getFileDescriptorSe
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder - getFileDescriptorSetOrBuilder() { + public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getFileDescriptorSetOrBuilder() { if (fileDescriptorSetBuilder_ != null) { return fileDescriptorSetBuilder_.getMessageOrBuilder(); } else { - return fileDescriptorSet_ == null - ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() - : fileDescriptorSet_; + return fileDescriptorSet_ == null ? + com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() : fileDescriptorSet_; } } /** - * - * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -3064,46 +2724,35 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getFileDescriptorSe
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, - com.google.cloud.apigateway.v1.ApiConfig.File.Builder, - com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> getFileDescriptorSetFieldBuilder() { if (fileDescriptorSetBuilder_ == null) { - fileDescriptorSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, - com.google.cloud.apigateway.v1.ApiConfig.File.Builder, - com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>( - getFileDescriptorSet(), getParentForChildren(), isClean()); + fileDescriptorSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>( + getFileDescriptorSet(), + getParentForChildren(), + isClean()); fileDescriptorSet_ = null; } return fileDescriptorSetBuilder_; } private java.util.List source_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSourceIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { source_ = new java.util.ArrayList(source_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, - com.google.cloud.apigateway.v1.ApiConfig.File.Builder, - com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> - sourceBuilder_; + com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> sourceBuilder_; /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3111,9 +2760,7 @@ private void ensureSourceIsMutable() {
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getSourceList() { if (sourceBuilder_ == null) { @@ -3123,8 +2770,6 @@ public java.util.List getSourceLi } } /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3132,9 +2777,7 @@ public java.util.List getSourceLi
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public int getSourceCount() { if (sourceBuilder_ == null) { @@ -3144,8 +2787,6 @@ public int getSourceCount() { } } /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3153,9 +2794,7 @@ public int getSourceCount() {
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.apigateway.v1.ApiConfig.File getSource(int index) { if (sourceBuilder_ == null) { @@ -3165,8 +2804,6 @@ public com.google.cloud.apigateway.v1.ApiConfig.File getSource(int index) { } } /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3174,11 +2811,10 @@ public com.google.cloud.apigateway.v1.ApiConfig.File getSource(int index) {
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSource(int index, com.google.cloud.apigateway.v1.ApiConfig.File value) { + public Builder setSource( + int index, com.google.cloud.apigateway.v1.ApiConfig.File value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3192,8 +2828,6 @@ public Builder setSource(int index, com.google.cloud.apigateway.v1.ApiConfig.Fil return this; } /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3201,9 +2835,7 @@ public Builder setSource(int index, com.google.cloud.apigateway.v1.ApiConfig.Fil
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSource( int index, com.google.cloud.apigateway.v1.ApiConfig.File.Builder builderForValue) { @@ -3217,8 +2849,6 @@ public Builder setSource( return this; } /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3226,9 +2856,7 @@ public Builder setSource(
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addSource(com.google.cloud.apigateway.v1.ApiConfig.File value) { if (sourceBuilder_ == null) { @@ -3244,8 +2872,6 @@ public Builder addSource(com.google.cloud.apigateway.v1.ApiConfig.File value) { return this; } /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3253,11 +2879,10 @@ public Builder addSource(com.google.cloud.apigateway.v1.ApiConfig.File value) {
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addSource(int index, com.google.cloud.apigateway.v1.ApiConfig.File value) { + public Builder addSource( + int index, com.google.cloud.apigateway.v1.ApiConfig.File value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3271,8 +2896,6 @@ public Builder addSource(int index, com.google.cloud.apigateway.v1.ApiConfig.Fil return this; } /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3280,9 +2903,7 @@ public Builder addSource(int index, com.google.cloud.apigateway.v1.ApiConfig.Fil
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addSource( com.google.cloud.apigateway.v1.ApiConfig.File.Builder builderForValue) { @@ -3296,8 +2917,6 @@ public Builder addSource( return this; } /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3305,9 +2924,7 @@ public Builder addSource(
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addSource( int index, com.google.cloud.apigateway.v1.ApiConfig.File.Builder builderForValue) { @@ -3321,8 +2938,6 @@ public Builder addSource( return this; } /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3330,15 +2945,14 @@ public Builder addSource(
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllSource( java.lang.Iterable values) { if (sourceBuilder_ == null) { ensureSourceIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, source_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, source_); onChanged(); } else { sourceBuilder_.addAllMessages(values); @@ -3346,8 +2960,6 @@ public Builder addAllSource( return this; } /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3355,9 +2967,7 @@ public Builder addAllSource(
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -3370,8 +2980,6 @@ public Builder clearSource() { return this; } /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3379,9 +2987,7 @@ public Builder clearSource() {
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeSource(int index) { if (sourceBuilder_ == null) { @@ -3393,9 +2999,7 @@ public Builder removeSource(int index) { } return this; } - /** - * - * + /** *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3403,16 +3007,13 @@ public Builder removeSource(int index) {
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getSourceBuilder(int index) { + public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getSourceBuilder( + int index) { return getSourceFieldBuilder().getBuilder(index); } /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3420,20 +3021,16 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getSourceBuilder(in
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder(int index) { + public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder( + int index) { if (sourceBuilder_ == null) { - return source_.get(index); - } else { + return source_.get(index); } else { return sourceBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3441,12 +3038,10 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getSourceOrBuilderList() { + public java.util.List + getSourceOrBuilderList() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilderList(); } else { @@ -3454,8 +3049,6 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder } } /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3463,17 +3056,13 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addSourceBuilder() { - return getSourceFieldBuilder() - .addBuilder(com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()); + return getSourceFieldBuilder().addBuilder( + com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()); } /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3481,17 +3070,14 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addSourceBuilder()
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addSourceBuilder(int index) { - return getSourceFieldBuilder() - .addBuilder(index, com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()); + public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addSourceBuilder( + int index) { + return getSourceFieldBuilder().addBuilder( + index, com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()); } /** - * - * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3499,32 +3085,26 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addSourceBuilder(in
        * file_descriptor_set.
        * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getSourceBuilderList() { + public java.util.List + getSourceBuilderList() { return getSourceFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, - com.google.cloud.apigateway.v1.ApiConfig.File.Builder, - com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, - com.google.cloud.apigateway.v1.ApiConfig.File.Builder, - com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>( - source_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + sourceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>( + source_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); source_ = null; } return sourceBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3537,32 +3117,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) - private static final com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition - DEFAULT_INSTANCE; - + private static final com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition(); } - public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition - getDefaultInstance() { + public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GrpcServiceDefinition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GrpcServiceDefinition(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GrpcServiceDefinition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GrpcServiceDefinition(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3574,24 +3152,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition - getDefaultInstanceForType() { + public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. Resource name of the API Config.
    * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -3600,30 +3175,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; } } /** - * - * *
    * Output only. Resource name of the API Config.
    * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -3634,15 +3209,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -3650,15 +3221,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -3666,14 +3233,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -3683,15 +3247,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -3699,15 +3259,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -3715,14 +3271,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -3730,23 +3283,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -3755,8 +3309,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -3765,22 +3317,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -3790,12 +3342,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -3805,16 +3356,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -3824,11 +3375,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -3838,14 +3390,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int DISPLAY_NAME_FIELD_NUMBER = 5;
   private volatile java.lang.Object displayName_;
   /**
-   *
-   *
    * 
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ @java.lang.Override @@ -3854,29 +3403,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -3887,8 +3436,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int GATEWAY_SERVICE_ACCOUNT_FIELD_NUMBER = 14; private volatile java.lang.Object gatewayServiceAccount_; /** - * - * *
    * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
    * should use to authenticate to other services. This may either be the
@@ -3899,10 +3446,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * IAP-secured service.
    * 
* - * - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The gatewayServiceAccount. */ @java.lang.Override @@ -3911,15 +3455,14 @@ public java.lang.String getGatewayServiceAccount() { 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(); gatewayServiceAccount_ = s; return s; } } /** - * - * *
    * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
    * should use to authenticate to other services. This may either be the
@@ -3930,18 +3473,17 @@ public java.lang.String getGatewayServiceAccount() {
    * IAP-secured service.
    * 
* - * - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for gatewayServiceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getGatewayServiceAccountBytes() { + public com.google.protobuf.ByteString + getGatewayServiceAccountBytes() { java.lang.Object ref = gatewayServiceAccount_; 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); gatewayServiceAccount_ = b; return b; } else { @@ -3952,17 +3494,12 @@ public com.google.protobuf.ByteString getGatewayServiceAccountBytes() { public static final int SERVICE_CONFIG_ID_FIELD_NUMBER = 12; private volatile java.lang.Object serviceConfigId_; /** - * - * *
    * Output only. The ID of the associated Service Config (
    * https://cloud.google.com/service-infrastructure/docs/glossary#config).
    * 
* - * - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The serviceConfigId. */ @java.lang.Override @@ -3971,32 +3508,30 @@ public java.lang.String getServiceConfigId() { 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(); serviceConfigId_ = s; return s; } } /** - * - * *
    * Output only. The ID of the associated Service Config (
    * https://cloud.google.com/service-infrastructure/docs/glossary#config).
    * 
* - * - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for serviceConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceConfigIdBytes() { + public com.google.protobuf.ByteString + getServiceConfigIdBytes() { java.lang.Object ref = serviceConfigId_; 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); serviceConfigId_ = b; return b; } else { @@ -4007,223 +3542,163 @@ public com.google.protobuf.ByteString getServiceConfigIdBytes() { public static final int STATE_FIELD_NUMBER = 8; private int state_; /** - * - * *
    * Output only. State of the API Config.
    * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. State of the API Config.
    * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.apigateway.v1.ApiConfig.State getState() { + @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.apigateway.v1.ApiConfig.State result = - com.google.cloud.apigateway.v1.ApiConfig.State.valueOf(state_); + com.google.cloud.apigateway.v1.ApiConfig.State result = com.google.cloud.apigateway.v1.ApiConfig.State.valueOf(state_); return result == null ? com.google.cloud.apigateway.v1.ApiConfig.State.UNRECOGNIZED : result; } public static final int OPENAPI_DOCUMENTS_FIELD_NUMBER = 9; - private java.util.List - openapiDocuments_; + private java.util.List openapiDocuments_; /** - * - * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getOpenapiDocumentsList() { + public java.util.List getOpenapiDocumentsList() { return openapiDocuments_; } /** - * - * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getOpenapiDocumentsOrBuilderList() { return openapiDocuments_; } /** - * - * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getOpenapiDocumentsCount() { return openapiDocuments_.size(); } /** - * - * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument getOpenapiDocuments(int index) { return openapiDocuments_.get(index); } /** - * - * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder - getOpenapiDocumentsOrBuilder(int index) { + public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder getOpenapiDocumentsOrBuilder( + int index) { return openapiDocuments_.get(index); } public static final int GRPC_SERVICES_FIELD_NUMBER = 10; - private java.util.List - grpcServices_; + private java.util.List grpcServices_; /** - * - * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getGrpcServicesList() { + public java.util.List getGrpcServicesList() { return grpcServices_; } /** - * - * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder> + public java.util.List getGrpcServicesOrBuilderList() { return grpcServices_; } /** - * - * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getGrpcServicesCount() { return grpcServices_.size(); } /** - * - * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getGrpcServices(int index) { return grpcServices_.get(index); } /** - * - * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder - getGrpcServicesOrBuilder(int index) { + public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder getGrpcServicesOrBuilder( + int index) { return grpcServices_.get(index); } public static final int MANAGED_SERVICE_CONFIGS_FIELD_NUMBER = 11; private java.util.List managedServiceConfigs_; /** - * - * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -4238,18 +3713,13 @@ public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getGrpcSer
    * fields.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getManagedServiceConfigsList() { + public java.util.List getManagedServiceConfigsList() { return managedServiceConfigs_; } /** - * - * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -4264,18 +3734,14 @@ public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getGrpcSer
    * fields.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getManagedServiceConfigsOrBuilderList() { return managedServiceConfigs_; } /** - * - * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -4290,17 +3756,13 @@ public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getGrpcSer
    * fields.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getManagedServiceConfigsCount() { return managedServiceConfigs_.size(); } /** - * - * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -4315,17 +3777,13 @@ public int getManagedServiceConfigsCount() {
    * fields.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.File getManagedServiceConfigs(int index) { return managedServiceConfigs_.get(index); } /** - * - * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -4340,9 +3798,7 @@ public com.google.cloud.apigateway.v1.ApiConfig.File getManagedServiceConfigs(in
    * fields.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getManagedServiceConfigsOrBuilder( @@ -4351,7 +3807,6 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getManagedServiceC } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4363,7 +3818,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_); } @@ -4373,8 +3829,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -4409,37 +3869,41 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (state_ != com.google.cloud.apigateway.v1.ApiConfig.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, state_); } for (int i = 0; i < openapiDocuments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, openapiDocuments_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, openapiDocuments_.get(i)); } for (int i = 0; i < grpcServices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, grpcServices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, grpcServices_.get(i)); } for (int i = 0; i < managedServiceConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, managedServiceConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, managedServiceConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceConfigId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, serviceConfigId_); @@ -4455,30 +3919,40 @@ 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.apigateway.v1.ApiConfig)) { return super.equals(obj); } com.google.cloud.apigateway.v1.ApiConfig other = (com.google.cloud.apigateway.v1.ApiConfig) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getGatewayServiceAccount().equals(other.getGatewayServiceAccount())) return false; - if (!getServiceConfigId().equals(other.getServiceConfigId())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getGatewayServiceAccount() + .equals(other.getGatewayServiceAccount())) return false; + if (!getServiceConfigId() + .equals(other.getServiceConfigId())) return false; if (state_ != other.state_) return false; - if (!getOpenapiDocumentsList().equals(other.getOpenapiDocumentsList())) return false; - if (!getGrpcServicesList().equals(other.getGrpcServicesList())) return false; - if (!getManagedServiceConfigsList().equals(other.getManagedServiceConfigsList())) return false; + if (!getOpenapiDocumentsList() + .equals(other.getOpenapiDocumentsList())) return false; + if (!getGrpcServicesList() + .equals(other.getGrpcServicesList())) return false; + if (!getManagedServiceConfigsList() + .equals(other.getManagedServiceConfigsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4529,104 +4003,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.ApiConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.ApiConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.ApiConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig 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; } /** - * - * *
    * An API Configuration is a combination of settings for both the Managed
    * Service and Gateways serving this API Config.
@@ -4634,43 +4101,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.apigateway.v1.ApiConfig}
    */
-  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.apigateway.v1.ApiConfig)
       com.google.cloud.apigateway.v1.ApiConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.apigateway.v1.Apigateway
-          .internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.apigateway.v1.Apigateway
-          .internal_static_google_cloud_apigateway_v1_ApiConfig_fieldAccessorTable
+      return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.apigateway.v1.ApiConfig.class,
-              com.google.cloud.apigateway.v1.ApiConfig.Builder.class);
+              com.google.cloud.apigateway.v1.ApiConfig.class, com.google.cloud.apigateway.v1.ApiConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.apigateway.v1.ApiConfig.newBuilder()
@@ -4678,19 +4145,19 @@ 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) {
         getOpenapiDocumentsFieldBuilder();
         getGrpcServicesFieldBuilder();
         getManagedServiceConfigsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -4739,9 +4206,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.apigateway.v1.Apigateway
-          .internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor;
     }
 
     @java.lang.Override
@@ -4760,8 +4227,7 @@ public com.google.cloud.apigateway.v1.ApiConfig build() {
 
     @java.lang.Override
     public com.google.cloud.apigateway.v1.ApiConfig buildPartial() {
-      com.google.cloud.apigateway.v1.ApiConfig result =
-          new com.google.cloud.apigateway.v1.ApiConfig(this);
+      com.google.cloud.apigateway.v1.ApiConfig result = new com.google.cloud.apigateway.v1.ApiConfig(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (createTimeBuilder_ == null) {
@@ -4815,39 +4281,38 @@ public com.google.cloud.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig) {
-        return mergeFrom((com.google.cloud.apigateway.v1.ApiConfig) other);
+        return mergeFrom((com.google.cloud.apigateway.v1.ApiConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -4866,7 +4331,8 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.ApiConfig other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
         onChanged();
@@ -4900,10 +4366,9 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.ApiConfig other) {
             openapiDocumentsBuilder_ = null;
             openapiDocuments_ = other.openapiDocuments_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            openapiDocumentsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getOpenapiDocumentsFieldBuilder()
-                    : null;
+            openapiDocumentsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getOpenapiDocumentsFieldBuilder() : null;
           } else {
             openapiDocumentsBuilder_.addAllMessages(other.openapiDocuments_);
           }
@@ -4927,10 +4392,9 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.ApiConfig other) {
             grpcServicesBuilder_ = null;
             grpcServices_ = other.grpcServices_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            grpcServicesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getGrpcServicesFieldBuilder()
-                    : null;
+            grpcServicesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getGrpcServicesFieldBuilder() : null;
           } else {
             grpcServicesBuilder_.addAllMessages(other.grpcServices_);
           }
@@ -4954,10 +4418,9 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.ApiConfig other) {
             managedServiceConfigsBuilder_ = null;
             managedServiceConfigs_ = other.managedServiceConfigs_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            managedServiceConfigsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getManagedServiceConfigsFieldBuilder()
-                    : null;
+            managedServiceConfigsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getManagedServiceConfigsFieldBuilder() : null;
           } else {
             managedServiceConfigsBuilder_.addAllMessages(other.managedServiceConfigs_);
           }
@@ -4991,26 +4454,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. Resource name of the API Config.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -5019,22 +4479,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Resource name of the API Config.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -5042,64 +4501,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Resource name of the API Config.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; } /** - * - * *
      * Output only. Resource name of the API Config.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the API Config.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -5107,58 +4559,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -5174,17 +4607,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -5195,21 +4625,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -5221,15 +4647,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -5243,64 +4665,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -5308,58 +4714,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -5375,17 +4762,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -5396,21 +4780,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -5422,15 +4802,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -5444,84 +4820,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -5533,8 +4894,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -5543,22 +4902,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -5568,12 +4927,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -5583,17 +4941,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -5603,11 +4960,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -5615,12 +4973,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -5629,21 +4986,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+    getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -5652,20 +5011,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableLabels().getMutableMap().put(key, value);
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -5674,27 +5032,28 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private java.lang.Object displayName_ = "";
     /**
-     *
-     *
      * 
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -5703,21 +5062,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -5725,61 +5083,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -5787,8 +5138,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object gatewayServiceAccount_ = ""; /** - * - * *
      * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
      * should use to authenticate to other services. This may either be the
@@ -5799,16 +5148,14 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * IAP-secured service.
      * 
* - * - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The gatewayServiceAccount. */ public java.lang.String getGatewayServiceAccount() { java.lang.Object ref = gatewayServiceAccount_; 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(); gatewayServiceAccount_ = s; return s; @@ -5817,8 +5164,6 @@ public java.lang.String getGatewayServiceAccount() { } } /** - * - * *
      * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
      * should use to authenticate to other services. This may either be the
@@ -5829,17 +5174,16 @@ public java.lang.String getGatewayServiceAccount() {
      * IAP-secured service.
      * 
* - * - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for gatewayServiceAccount. */ - public com.google.protobuf.ByteString getGatewayServiceAccountBytes() { + public com.google.protobuf.ByteString + getGatewayServiceAccountBytes() { java.lang.Object ref = gatewayServiceAccount_; 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); gatewayServiceAccount_ = b; return b; } else { @@ -5847,8 +5191,6 @@ public com.google.protobuf.ByteString getGatewayServiceAccountBytes() { } } /** - * - * *
      * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
      * should use to authenticate to other services. This may either be the
@@ -5859,25 +5201,21 @@ public com.google.protobuf.ByteString getGatewayServiceAccountBytes() {
      * IAP-secured service.
      * 
* - * - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The gatewayServiceAccount to set. * @return This builder for chaining. */ - public Builder setGatewayServiceAccount(java.lang.String value) { + public Builder setGatewayServiceAccount( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gatewayServiceAccount_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
      * should use to authenticate to other services. This may either be the
@@ -5888,21 +5226,16 @@ public Builder setGatewayServiceAccount(java.lang.String value) {
      * IAP-secured service.
      * 
* - * - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearGatewayServiceAccount() { - + gatewayServiceAccount_ = getDefaultInstance().getGatewayServiceAccount(); onChanged(); return this; } /** - * - * *
      * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
      * should use to authenticate to other services. This may either be the
@@ -5913,19 +5246,17 @@ public Builder clearGatewayServiceAccount() {
      * IAP-secured service.
      * 
* - * - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for gatewayServiceAccount to set. * @return This builder for chaining. */ - public Builder setGatewayServiceAccountBytes(com.google.protobuf.ByteString value) { + public Builder setGatewayServiceAccountBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gatewayServiceAccount_ = value; onChanged(); return this; @@ -5933,23 +5264,19 @@ public Builder setGatewayServiceAccountBytes(com.google.protobuf.ByteString valu private java.lang.Object serviceConfigId_ = ""; /** - * - * *
      * Output only. The ID of the associated Service Config (
      * https://cloud.google.com/service-infrastructure/docs/glossary#config).
      * 
* - * - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The serviceConfigId. */ public java.lang.String getServiceConfigId() { java.lang.Object ref = serviceConfigId_; 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(); serviceConfigId_ = s; return s; @@ -5958,24 +5285,21 @@ public java.lang.String getServiceConfigId() { } } /** - * - * *
      * Output only. The ID of the associated Service Config (
      * https://cloud.google.com/service-infrastructure/docs/glossary#config).
      * 
* - * - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for serviceConfigId. */ - public com.google.protobuf.ByteString getServiceConfigIdBytes() { + public com.google.protobuf.ByteString + getServiceConfigIdBytes() { java.lang.Object ref = serviceConfigId_; 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); serviceConfigId_ = b; return b; } else { @@ -5983,70 +5307,57 @@ public com.google.protobuf.ByteString getServiceConfigIdBytes() { } } /** - * - * *
      * Output only. The ID of the associated Service Config (
      * https://cloud.google.com/service-infrastructure/docs/glossary#config).
      * 
* - * - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The serviceConfigId to set. * @return This builder for chaining. */ - public Builder setServiceConfigId(java.lang.String value) { + public Builder setServiceConfigId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceConfigId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The ID of the associated Service Config (
      * https://cloud.google.com/service-infrastructure/docs/glossary#config).
      * 
* - * - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearServiceConfigId() { - + serviceConfigId_ = getDefaultInstance().getServiceConfigId(); onChanged(); return this; } /** - * - * *
      * Output only. The ID of the associated Service Config (
      * https://cloud.google.com/service-infrastructure/docs/glossary#config).
      * 
* - * - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for serviceConfigId to set. * @return This builder for chaining. */ - public Builder setServiceConfigIdBytes(com.google.protobuf.ByteString value) { + public Builder setServiceConfigIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceConfigId_ = value; onChanged(); return this; @@ -6054,73 +5365,51 @@ public Builder setServiceConfigIdBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. State of the API Config.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. State of the API Config.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. State of the API Config.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.apigateway.v1.ApiConfig.State result = - com.google.cloud.apigateway.v1.ApiConfig.State.valueOf(state_); + com.google.cloud.apigateway.v1.ApiConfig.State result = com.google.cloud.apigateway.v1.ApiConfig.State.valueOf(state_); return result == null ? com.google.cloud.apigateway.v1.ApiConfig.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. State of the API Config.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -6128,63 +5417,47 @@ public Builder setState(com.google.cloud.apigateway.v1.ApiConfig.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. State of the API Config.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private java.util.List - openapiDocuments_ = java.util.Collections.emptyList(); - + private java.util.List openapiDocuments_ = + java.util.Collections.emptyList(); private void ensureOpenapiDocumentsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - openapiDocuments_ = - new java.util.ArrayList( - openapiDocuments_); + openapiDocuments_ = new java.util.ArrayList(openapiDocuments_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument, - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder, - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder> - openapiDocumentsBuilder_; + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder> openapiDocumentsBuilder_; /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getOpenapiDocumentsList() { + public java.util.List getOpenapiDocumentsList() { if (openapiDocumentsBuilder_ == null) { return java.util.Collections.unmodifiableList(openapiDocuments_); } else { @@ -6192,16 +5465,12 @@ private void ensureOpenapiDocumentsIsMutable() { } } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public int getOpenapiDocumentsCount() { if (openapiDocumentsBuilder_ == null) { @@ -6211,16 +5480,12 @@ public int getOpenapiDocumentsCount() { } } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument getOpenapiDocuments(int index) { if (openapiDocumentsBuilder_ == null) { @@ -6230,16 +5495,12 @@ public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument getOpenapiDocume } } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOpenapiDocuments( int index, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument value) { @@ -6256,20 +5517,15 @@ public Builder setOpenapiDocuments( return this; } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOpenapiDocuments( - int index, - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder builderForValue) { + int index, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder builderForValue) { if (openapiDocumentsBuilder_ == null) { ensureOpenapiDocumentsIsMutable(); openapiDocuments_.set(index, builderForValue.build()); @@ -6280,19 +5536,14 @@ public Builder setOpenapiDocuments( return this; } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addOpenapiDocuments( - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument value) { + public Builder addOpenapiDocuments(com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument value) { if (openapiDocumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6306,16 +5557,12 @@ public Builder addOpenapiDocuments( return this; } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addOpenapiDocuments( int index, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument value) { @@ -6332,16 +5579,12 @@ public Builder addOpenapiDocuments( return this; } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addOpenapiDocuments( com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder builderForValue) { @@ -6355,20 +5598,15 @@ public Builder addOpenapiDocuments( return this; } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addOpenapiDocuments( - int index, - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder builderForValue) { + int index, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder builderForValue) { if (openapiDocumentsBuilder_ == null) { ensureOpenapiDocumentsIsMutable(); openapiDocuments_.add(index, builderForValue.build()); @@ -6379,23 +5617,19 @@ public Builder addOpenapiDocuments( return this; } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllOpenapiDocuments( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (openapiDocumentsBuilder_ == null) { ensureOpenapiDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, openapiDocuments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, openapiDocuments_); onChanged(); } else { openapiDocumentsBuilder_.addAllMessages(values); @@ -6403,16 +5637,12 @@ public Builder addAllOpenapiDocuments( return this; } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearOpenapiDocuments() { if (openapiDocumentsBuilder_ == null) { @@ -6425,16 +5655,12 @@ public Builder clearOpenapiDocuments() { return this; } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeOpenapiDocuments(int index) { if (openapiDocumentsBuilder_ == null) { @@ -6447,56 +5673,42 @@ public Builder removeOpenapiDocuments(int index) { return this; } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder - getOpenapiDocumentsBuilder(int index) { + public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder getOpenapiDocumentsBuilder( + int index) { return getOpenapiDocumentsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder - getOpenapiDocumentsOrBuilder(int index) { + public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder getOpenapiDocumentsOrBuilder( + int index) { if (openapiDocumentsBuilder_ == null) { - return openapiDocuments_.get(index); - } else { + return openapiDocuments_.get(index); } else { return openapiDocumentsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder> - getOpenapiDocumentsOrBuilderList() { + public java.util.List + getOpenapiDocumentsOrBuilderList() { if (openapiDocumentsBuilder_ != null) { return openapiDocumentsBuilder_.getMessageOrBuilderList(); } else { @@ -6504,69 +5716,48 @@ public Builder removeOpenapiDocuments(int index) { } } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder - addOpenapiDocumentsBuilder() { - return getOpenapiDocumentsFieldBuilder() - .addBuilder( - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.getDefaultInstance()); + public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder addOpenapiDocumentsBuilder() { + return getOpenapiDocumentsFieldBuilder().addBuilder( + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.getDefaultInstance()); } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder - addOpenapiDocumentsBuilder(int index) { - return getOpenapiDocumentsFieldBuilder() - .addBuilder( - index, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.getDefaultInstance()); + public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder addOpenapiDocumentsBuilder( + int index) { + return getOpenapiDocumentsFieldBuilder().addBuilder( + index, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.getDefaultInstance()); } /** - * - * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getOpenapiDocumentsBuilderList() { + public java.util.List + getOpenapiDocumentsBuilderList() { return getOpenapiDocumentsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument, - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder, - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder> getOpenapiDocumentsFieldBuilder() { if (openapiDocumentsBuilder_ == null) { - openapiDocumentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument, - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder, - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder>( + openapiDocumentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder>( openapiDocuments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -6576,38 +5767,27 @@ public Builder removeOpenapiDocuments(int index) { return openapiDocumentsBuilder_; } - private java.util.List - grpcServices_ = java.util.Collections.emptyList(); - + private java.util.List grpcServices_ = + java.util.Collections.emptyList(); private void ensureGrpcServicesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - grpcServices_ = - new java.util.ArrayList( - grpcServices_); + grpcServices_ = new java.util.ArrayList(grpcServices_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition, - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder, - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder> - grpcServicesBuilder_; + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder> grpcServicesBuilder_; /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getGrpcServicesList() { + public java.util.List getGrpcServicesList() { if (grpcServicesBuilder_ == null) { return java.util.Collections.unmodifiableList(grpcServices_); } else { @@ -6615,16 +5795,12 @@ private void ensureGrpcServicesIsMutable() { } } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public int getGrpcServicesCount() { if (grpcServicesBuilder_ == null) { @@ -6634,19 +5810,14 @@ public int getGrpcServicesCount() { } } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getGrpcServices( - int index) { + public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getGrpcServices(int index) { if (grpcServicesBuilder_ == null) { return grpcServices_.get(index); } else { @@ -6654,16 +5825,12 @@ public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getGrpcSer } } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGrpcServices( int index, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition value) { @@ -6680,20 +5847,15 @@ public Builder setGrpcServices( return this; } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGrpcServices( - int index, - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder builderForValue) { + int index, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder builderForValue) { if (grpcServicesBuilder_ == null) { ensureGrpcServicesIsMutable(); grpcServices_.set(index, builderForValue.build()); @@ -6704,19 +5866,14 @@ public Builder setGrpcServices( return this; } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addGrpcServices( - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition value) { + public Builder addGrpcServices(com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition value) { if (grpcServicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6730,16 +5887,12 @@ public Builder addGrpcServices( return this; } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addGrpcServices( int index, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition value) { @@ -6756,16 +5909,12 @@ public Builder addGrpcServices( return this; } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addGrpcServices( com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder builderForValue) { @@ -6779,20 +5928,15 @@ public Builder addGrpcServices( return this; } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addGrpcServices( - int index, - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder builderForValue) { + int index, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder builderForValue) { if (grpcServicesBuilder_ == null) { ensureGrpcServicesIsMutable(); grpcServices_.add(index, builderForValue.build()); @@ -6803,23 +5947,19 @@ public Builder addGrpcServices( return this; } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllGrpcServices( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (grpcServicesBuilder_ == null) { ensureGrpcServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, grpcServices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, grpcServices_); onChanged(); } else { grpcServicesBuilder_.addAllMessages(values); @@ -6827,16 +5967,12 @@ public Builder addAllGrpcServices( return this; } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGrpcServices() { if (grpcServicesBuilder_ == null) { @@ -6849,16 +5985,12 @@ public Builder clearGrpcServices() { return this; } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeGrpcServices(int index) { if (grpcServicesBuilder_ == null) { @@ -6871,56 +6003,42 @@ public Builder removeGrpcServices(int index) { return this; } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder - getGrpcServicesBuilder(int index) { + public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder getGrpcServicesBuilder( + int index) { return getGrpcServicesFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder - getGrpcServicesOrBuilder(int index) { + public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder getGrpcServicesOrBuilder( + int index) { if (grpcServicesBuilder_ == null) { - return grpcServices_.get(index); - } else { + return grpcServices_.get(index); } else { return grpcServicesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder> - getGrpcServicesOrBuilderList() { + public java.util.List + getGrpcServicesOrBuilderList() { if (grpcServicesBuilder_ != null) { return grpcServicesBuilder_.getMessageOrBuilderList(); } else { @@ -6928,97 +6046,70 @@ public Builder removeGrpcServices(int index) { } } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder - addGrpcServicesBuilder() { - return getGrpcServicesFieldBuilder() - .addBuilder( - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.getDefaultInstance()); + public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder addGrpcServicesBuilder() { + return getGrpcServicesFieldBuilder().addBuilder( + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.getDefaultInstance()); } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder - addGrpcServicesBuilder(int index) { - return getGrpcServicesFieldBuilder() - .addBuilder( - index, - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.getDefaultInstance()); + public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder addGrpcServicesBuilder( + int index) { + return getGrpcServicesFieldBuilder().addBuilder( + index, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.getDefaultInstance()); } /** - * - * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getGrpcServicesBuilderList() { + public java.util.List + getGrpcServicesBuilderList() { return getGrpcServicesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition, - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder, - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder> getGrpcServicesFieldBuilder() { if (grpcServicesBuilder_ == null) { - grpcServicesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition, - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder, - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder>( - grpcServices_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + grpcServicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder>( + grpcServices_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); grpcServices_ = null; } return grpcServicesBuilder_; } private java.util.List managedServiceConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureManagedServiceConfigsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - managedServiceConfigs_ = - new java.util.ArrayList( - managedServiceConfigs_); + managedServiceConfigs_ = new java.util.ArrayList(managedServiceConfigs_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, - com.google.cloud.apigateway.v1.ApiConfig.File.Builder, - com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> - managedServiceConfigsBuilder_; + com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> managedServiceConfigsBuilder_; /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7033,12 +6124,9 @@ private void ensureManagedServiceConfigsIsMutable() {
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getManagedServiceConfigsList() { + public java.util.List getManagedServiceConfigsList() { if (managedServiceConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(managedServiceConfigs_); } else { @@ -7046,8 +6134,6 @@ private void ensureManagedServiceConfigsIsMutable() { } } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7062,9 +6148,7 @@ private void ensureManagedServiceConfigsIsMutable() {
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public int getManagedServiceConfigsCount() { if (managedServiceConfigsBuilder_ == null) { @@ -7074,8 +6158,6 @@ public int getManagedServiceConfigsCount() { } } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7090,9 +6172,7 @@ public int getManagedServiceConfigsCount() {
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.apigateway.v1.ApiConfig.File getManagedServiceConfigs(int index) { if (managedServiceConfigsBuilder_ == null) { @@ -7102,8 +6182,6 @@ public com.google.cloud.apigateway.v1.ApiConfig.File getManagedServiceConfigs(in } } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7118,9 +6196,7 @@ public com.google.cloud.apigateway.v1.ApiConfig.File getManagedServiceConfigs(in
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setManagedServiceConfigs( int index, com.google.cloud.apigateway.v1.ApiConfig.File value) { @@ -7137,8 +6213,6 @@ public Builder setManagedServiceConfigs( return this; } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7153,9 +6227,7 @@ public Builder setManagedServiceConfigs(
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setManagedServiceConfigs( int index, com.google.cloud.apigateway.v1.ApiConfig.File.Builder builderForValue) { @@ -7169,8 +6241,6 @@ public Builder setManagedServiceConfigs( return this; } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7185,9 +6255,7 @@ public Builder setManagedServiceConfigs(
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addManagedServiceConfigs(com.google.cloud.apigateway.v1.ApiConfig.File value) { if (managedServiceConfigsBuilder_ == null) { @@ -7203,8 +6271,6 @@ public Builder addManagedServiceConfigs(com.google.cloud.apigateway.v1.ApiConfig return this; } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7219,9 +6285,7 @@ public Builder addManagedServiceConfigs(com.google.cloud.apigateway.v1.ApiConfig
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addManagedServiceConfigs( int index, com.google.cloud.apigateway.v1.ApiConfig.File value) { @@ -7238,8 +6302,6 @@ public Builder addManagedServiceConfigs( return this; } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7254,9 +6316,7 @@ public Builder addManagedServiceConfigs(
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addManagedServiceConfigs( com.google.cloud.apigateway.v1.ApiConfig.File.Builder builderForValue) { @@ -7270,8 +6330,6 @@ public Builder addManagedServiceConfigs( return this; } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7286,9 +6344,7 @@ public Builder addManagedServiceConfigs(
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addManagedServiceConfigs( int index, com.google.cloud.apigateway.v1.ApiConfig.File.Builder builderForValue) { @@ -7302,8 +6358,6 @@ public Builder addManagedServiceConfigs( return this; } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7318,15 +6372,14 @@ public Builder addManagedServiceConfigs(
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllManagedServiceConfigs( java.lang.Iterable values) { if (managedServiceConfigsBuilder_ == null) { ensureManagedServiceConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, managedServiceConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, managedServiceConfigs_); onChanged(); } else { managedServiceConfigsBuilder_.addAllMessages(values); @@ -7334,8 +6387,6 @@ public Builder addAllManagedServiceConfigs( return this; } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7350,9 +6401,7 @@ public Builder addAllManagedServiceConfigs(
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearManagedServiceConfigs() { if (managedServiceConfigsBuilder_ == null) { @@ -7365,8 +6414,6 @@ public Builder clearManagedServiceConfigs() { return this; } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7381,9 +6428,7 @@ public Builder clearManagedServiceConfigs() {
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeManagedServiceConfigs(int index) { if (managedServiceConfigsBuilder_ == null) { @@ -7396,8 +6441,6 @@ public Builder removeManagedServiceConfigs(int index) { return this; } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7412,17 +6455,13 @@ public Builder removeManagedServiceConfigs(int index) {
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getManagedServiceConfigsBuilder( int index) { return getManagedServiceConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7437,21 +6476,16 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getManagedServiceCo
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getManagedServiceConfigsOrBuilder( int index) { if (managedServiceConfigsBuilder_ == null) { - return managedServiceConfigs_.get(index); - } else { + return managedServiceConfigs_.get(index); } else { return managedServiceConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7466,12 +6500,10 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getManagedServiceC
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getManagedServiceConfigsOrBuilderList() { + public java.util.List + getManagedServiceConfigsOrBuilderList() { if (managedServiceConfigsBuilder_ != null) { return managedServiceConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -7479,8 +6511,6 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getManagedServiceC } } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7495,17 +6525,13 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getManagedServiceC
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addManagedServiceConfigsBuilder() { - return getManagedServiceConfigsFieldBuilder() - .addBuilder(com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()); + return getManagedServiceConfigsFieldBuilder().addBuilder( + com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()); } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7520,18 +6546,14 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addManagedServiceCo
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addManagedServiceConfigsBuilder( int index) { - return getManagedServiceConfigsFieldBuilder() - .addBuilder(index, com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()); + return getManagedServiceConfigsFieldBuilder().addBuilder( + index, com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()); } /** - * - * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -7546,26 +6568,18 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addManagedServiceCo
      * fields.
      * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getManagedServiceConfigsBuilderList() { + public java.util.List + getManagedServiceConfigsBuilderList() { return getManagedServiceConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, - com.google.cloud.apigateway.v1.ApiConfig.File.Builder, - com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> getManagedServiceConfigsFieldBuilder() { if (managedServiceConfigsBuilder_ == null) { - managedServiceConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, - com.google.cloud.apigateway.v1.ApiConfig.File.Builder, - com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>( + managedServiceConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>( managedServiceConfigs_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -7574,9 +6588,9 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addManagedServiceCo } return managedServiceConfigsBuilder_; } - @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); } @@ -7586,12 +6600,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ApiConfig) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ApiConfig) private static final com.google.cloud.apigateway.v1.ApiConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ApiConfig(); } @@ -7600,16 +6614,16 @@ public static com.google.cloud.apigateway.v1.ApiConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApiConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApiConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApiConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7624,4 +6638,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ApiConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigName.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigName.java similarity index 100% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigName.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigName.java diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigOrBuilder.java similarity index 69% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigOrBuilder.java index 5537bb3..5394b91 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigOrBuilder.java @@ -1,134 +1,89 @@ -/* - * 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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface ApiConfigOrBuilder - extends +public interface ApiConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ApiConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Resource name of the API Config.
    * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Resource name of the API Config.
    * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -139,8 +94,6 @@ public interface ApiConfigOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -149,13 +102,15 @@ public interface ApiConfigOrBuilder
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -164,10 +119,9 @@ public interface ApiConfigOrBuilder
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -178,13 +132,11 @@ public interface ApiConfigOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -193,36 +145,31 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
    * should use to authenticate to other services. This may either be the
@@ -233,16 +180,11 @@ java.lang.String getLabelsOrDefault(
    * IAP-secured service.
    * 
* - * - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The gatewayServiceAccount. */ java.lang.String getGatewayServiceAccount(); /** - * - * *
    * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
    * should use to authenticate to other services. This may either be the
@@ -253,215 +195,152 @@ java.lang.String getLabelsOrDefault(
    * IAP-secured service.
    * 
* - * - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for gatewayServiceAccount. */ - com.google.protobuf.ByteString getGatewayServiceAccountBytes(); + com.google.protobuf.ByteString + getGatewayServiceAccountBytes(); /** - * - * *
    * Output only. The ID of the associated Service Config (
    * https://cloud.google.com/service-infrastructure/docs/glossary#config).
    * 
* - * - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The serviceConfigId. */ java.lang.String getServiceConfigId(); /** - * - * *
    * Output only. The ID of the associated Service Config (
    * https://cloud.google.com/service-infrastructure/docs/glossary#config).
    * 
* - * - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for serviceConfigId. */ - com.google.protobuf.ByteString getServiceConfigIdBytes(); + com.google.protobuf.ByteString + getServiceConfigIdBytes(); /** - * - * *
    * Output only. State of the API Config.
    * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. State of the API Config.
    * 
* - * - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.apigateway.v1.ApiConfig.State getState(); /** - * - * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getOpenapiDocumentsList(); /** - * - * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument getOpenapiDocuments(int index); /** - * - * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ int getOpenapiDocumentsCount(); /** - * - * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getOpenapiDocumentsOrBuilderList(); /** - * - * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder getOpenapiDocumentsOrBuilder( int index); /** - * - * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getGrpcServicesList(); /** - * - * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getGrpcServices(int index); /** - * - * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ int getGrpcServicesCount(); /** - * - * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getGrpcServicesOrBuilderList(); /** - * - * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder getGrpcServicesOrBuilder( int index); /** - * - * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -476,14 +355,11 @@ com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder getGrpcS
    * fields.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getManagedServiceConfigsList(); + java.util.List + getManagedServiceConfigsList(); /** - * - * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -498,14 +374,10 @@ com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder getGrpcS
    * fields.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.apigateway.v1.ApiConfig.File getManagedServiceConfigs(int index); /** - * - * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -520,14 +392,10 @@ com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder getGrpcS
    * fields.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ int getManagedServiceConfigsCount(); /** - * - * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -542,15 +410,11 @@ com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder getGrpcS
    * fields.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getManagedServiceConfigsOrBuilderList(); /** - * - * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -565,9 +429,7 @@ com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder getGrpcS
    * fields.
    * 
* - * - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getManagedServiceConfigsOrBuilder( int index); diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiName.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiName.java similarity index 100% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiName.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiName.java diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiOrBuilder.java similarity index 69% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiOrBuilder.java index 9b9fcd2..e9a00b1 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiOrBuilder.java @@ -1,134 +1,89 @@ -/* - * 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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface ApiOrBuilder - extends +public interface ApiOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.Api) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Resource name of the API.
    * Format: projects/{project}/locations/global/apis/{api}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Resource name of the API.
    * Format: projects/{project}/locations/global/apis/{api}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -139,8 +94,6 @@ public interface ApiOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -149,13 +102,15 @@ public interface ApiOrBuilder
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -164,10 +119,9 @@ public interface ApiOrBuilder
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -178,13 +132,11 @@ public interface ApiOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -193,36 +145,31 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Optional. Immutable. The name of a Google Managed Service (
    * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -230,16 +177,11 @@ java.lang.String getLabelsOrDefault(
    * project as this API.
    * 
* - * - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The managedService. */ java.lang.String getManagedService(); /** - * - * *
    * Optional. Immutable. The name of a Google Managed Service (
    * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -247,39 +189,27 @@ java.lang.String getLabelsOrDefault(
    * project as this API.
    * 
* - * - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for managedService. */ - com.google.protobuf.ByteString getManagedServiceBytes(); + com.google.protobuf.ByteString + getManagedServiceBytes(); /** - * - * *
    * Output only. State of the API.
    * 
* - * - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. State of the API.
    * 
* - * - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.apigateway.v1.Api.State getState(); diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Apigateway.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Apigateway.java new file mode 100644 index 0000000..703fe24 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Apigateway.java @@ -0,0 +1,520 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/apigateway/v1/apigateway.proto + +package com.google.cloud.apigateway.v1; + +public final class Apigateway { + private Apigateway() {} + 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_apigateway_v1_Api_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_Api_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ApiConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ApiConfig_File_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_Gateway_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_Gateway_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_GetGatewayRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ListApisRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ListApisResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_GetApiRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_CreateApiRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_UpdateApiRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_DeleteApiRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_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/apigateway/v1/apigateway." + + "proto\022\032google.cloud.apigateway.v1\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/r" + + "esource.proto\032 google/protobuf/field_mas" + + "k.proto\032\037google/protobuf/timestamp.proto" + + "\032\034google/api/annotations.proto\"\326\004\n\003Api\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022@\n\006labels\030\004 \003(\0132+.google.cloud.api" + + "gateway.v1.Api.LabelsEntryB\003\340A\001\022\031\n\014displ" + + "ay_name\030\005 \001(\tB\003\340A\001\022S\n\017managed_service\030\007 " + + "\001(\tB:\340A\005\340A\001\372A1\n/servicemanagement.google" + + "apis.com/ManagedService\0229\n\005state\030\014 \001(\0162%" + + ".google.cloud.apigateway.v1.Api.StateB\003\340" + + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"`\n\005State\022\025\n\021STATE_UNSPECIFIED\020" + + "\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED\020\003\022" + + "\014\n\010DELETING\020\004\022\014\n\010UPDATING\020\005:R\352AO\n\035apigat" + + "eway.googleapis.com/Api\022.projects/{proje" + + "ct}/locations/global/apis/{api}\"\373\t\n\tApiC" + + "onfig\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030" + + "\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + + "\n\013update_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022F\n\006labels\030\004 \003(\01321.google.cl" + + "oud.apigateway.v1.ApiConfig.LabelsEntryB" + + "\003\340A\001\022\031\n\014display_name\030\005 \001(\tB\003\340A\001\022J\n\027gatew" + + "ay_service_account\030\016 \001(\tB)\340A\005\372A#\n!iam.go" + + "ogleapis.com/ServiceAccount\022K\n\021service_c" + + "onfig_id\030\014 \001(\tB0\340A\003\372A*\n(servicemanagemen" + + "t.googleapis.com/Service\022?\n\005state\030\010 \001(\0162" + + "+.google.cloud.apigateway.v1.ApiConfig.S" + + "tateB\003\340A\003\022U\n\021openapi_documents\030\t \003(\01325.g" + + "oogle.cloud.apigateway.v1.ApiConfig.Open" + + "ApiDocumentB\003\340A\001\022W\n\rgrpc_services\030\n \003(\0132" + + ";.google.cloud.apigateway.v1.ApiConfig.G" + + "rpcServiceDefinitionB\003\340A\001\022P\n\027managed_ser" + + "vice_configs\030\013 \003(\0132*.google.cloud.apigat" + + "eway.v1.ApiConfig.FileB\003\340A\001\032&\n\004File\022\014\n\004p" + + "ath\030\001 \001(\t\022\020\n\010contents\030\002 \001(\014\032O\n\017OpenApiDo" + + "cument\022<\n\010document\030\001 \001(\0132*.google.cloud." + + "apigateway.v1.ApiConfig.File\032\246\001\n\025GrpcSer" + + "viceDefinition\022L\n\023file_descriptor_set\030\001 " + + "\001(\0132*.google.cloud.apigateway.v1.ApiConf" + + "ig.FileB\003\340A\004\022?\n\006source\030\002 \003(\0132*.google.cl" + + "oud.apigateway.v1.ApiConfig.FileB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"p\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010" + + "CREATING\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED\020\003\022\014\n\010DE" + + "LETING\020\004\022\014\n\010UPDATING\020\005\022\016\n\nACTIVATING\020\006:m" + + "\352Aj\n#apigateway.googleapis.com/ApiConfig" + + "\022Cprojects/{project}/locations/global/ap" + + "is/{api}/configs/{api_config}\"\375\004\n\007Gatewa" + + "y\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022D\n\006labels\030\004 \003(\0132/.google.cloud." + + "apigateway.v1.Gateway.LabelsEntryB\003\340A\001\022\031" + + "\n\014display_name\030\005 \001(\tB\003\340A\001\022?\n\napi_config\030" + + "\006 \001(\tB+\340A\002\372A%\n#apigateway.googleapis.com" + + "/ApiConfig\022=\n\005state\030\007 \001(\0162).google.cloud" + + ".apigateway.v1.Gateway.StateB\003\340A\003\022\035\n\020def" + + "ault_hostname\030\t \001(\tB\003\340A\003\032-\n\013LabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022\014\n\010U" + + "PDATING\020\005:b\352A_\n!apigateway.googleapis.co" + + "m/Gateway\022:projects/{project}/locations/" + + "{location}/gateways/{gateway}\"\231\001\n\023ListGa" + + "tewaysRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!l" + + "ocations.googleapis.com/Location\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filte" + + "r\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\205\001\n\024ListGatewa" + + "ysResponse\0225\n\010gateways\030\001 \003(\0132#.google.cl" + + "oud.apigateway.v1.Gateway\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\022\035\n\025unreachable_locations\030\003 \003(" + + "\t\"L\n\021GetGatewayRequest\0227\n\004name\030\001 \001(\tB)\340A" + + "\002\372A#\n!apigateway.googleapis.com/Gateway\"" + + "\245\001\n\024CreateGatewayRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022\027\n\ngateway_id\030\002 \001(\tB\003\340A\002\0229\n\007gateway\030" + + "\003 \001(\0132#.google.cloud.apigateway.v1.Gatew" + + "ayB\003\340A\002\"\202\001\n\024UpdateGatewayRequest\022/\n\013upda" + + "te_mask\030\001 \001(\0132\032.google.protobuf.FieldMas" + + "k\0229\n\007gateway\030\002 \001(\0132#.google.cloud.apigat" + + "eway.v1.GatewayB\003\340A\002\"O\n\024DeleteGatewayReq" + + "uest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!apigateway.g" + + "oogleapis.com/Gateway\"\225\001\n\017ListApisReques" + + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" + + "gleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010o" + + "rder_by\030\005 \001(\t\"y\n\020ListApisResponse\022-\n\004api" + + "s\030\001 \003(\0132\037.google.cloud.apigateway.v1.Api" + + "\022\027\n\017next_page_token\030\002 \001(\t\022\035\n\025unreachable" + + "_locations\030\003 \003(\t\"D\n\rGetApiRequest\0223\n\004nam" + + "e\030\001 \001(\tB%\340A\002\372A\037\n\035apigateway.googleapis.c" + + "om/Api\"\225\001\n\020CreateApiRequest\0229\n\006parent\030\001 " + + "\001(\tB)\340A\002\372A#\n!locations.googleapis.com/Lo" + + "cation\022\023\n\006api_id\030\002 \001(\tB\003\340A\002\0221\n\003api\030\003 \001(\013" + + "2\037.google.cloud.apigateway.v1.ApiB\003\340A\002\"v" + + "\n\020UpdateApiRequest\022/\n\013update_mask\030\001 \001(\0132" + + "\032.google.protobuf.FieldMask\0221\n\003api\030\002 \001(\013" + + "2\037.google.cloud.apigateway.v1.ApiB\003\340A\002\"G" + + "\n\020DeleteApiRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037" + + "\n\035apigateway.googleapis.com/Api\"\227\001\n\025List" + + "ApiConfigsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A" + + "\037\n\035apigateway.googleapis.com/Api\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filte" + + "r\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\214\001\n\026ListApiCon" + + "figsResponse\022:\n\013api_configs\030\001 \003(\0132%.goog" + + "le.cloud.apigateway.v1.ApiConfig\022\027\n\017next" + + "_page_token\030\002 \001(\t\022\035\n\025unreachable_locatio" + + "ns\030\003 \003(\t\"\332\001\n\023GetApiConfigRequest\0229\n\004name" + + "\030\001 \001(\tB+\340A\002\372A%\n#apigateway.googleapis.co" + + "m/ApiConfig\022H\n\004view\030\003 \001(\0162:.google.cloud" + + ".apigateway.v1.GetApiConfigRequest.Confi" + + "gView\">\n\nConfigView\022\033\n\027CONFIG_VIEW_UNSPE" + + "CIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002\"\253\001\n\026Create" + + "ApiConfigRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037" + + "\n\035apigateway.googleapis.com/Api\022\032\n\rapi_c" + + "onfig_id\030\002 \001(\tB\003\340A\002\022>\n\napi_config\030\003 \001(\0132" + + "%.google.cloud.apigateway.v1.ApiConfigB\003" + + "\340A\002\"\211\001\n\026UpdateApiConfigRequest\022/\n\013update" + + "_mask\030\001 \001(\0132\032.google.protobuf.FieldMask\022" + + ">\n\napi_config\030\002 \001(\0132%.google.cloud.apiga" + + "teway.v1.ApiConfigB\003\340A\002\"S\n\026DeleteApiConf" + + "igRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#apigate" + + "way.googleapis.com/ApiConfig\"\205\003\n\021Operati" + + "onMetadata\0224\n\013create_time\030\001 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006t" + + "arget\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016s" + + "tatus_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_ca" + + "ncellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001" + + "(\tB\003\340A\003\022R\n\013diagnostics\030\010 \003(\01328.google.cl" + + "oud.apigateway.v1.OperationMetadata.Diag" + + "nosticB\003\340A\003\032/\n\nDiagnostic\022\020\n\010location\030\001 " + + "\001(\t\022\017\n\007message\030\002 \001(\tB\270\003\n\036com.google.clou" + + "d.apigateway.v1P\001ZDgoogle.golang.org/gen" + + "proto/googleapis/cloud/apigateway/v1;api" + + "gateway\252\002\032Google.Cloud.ApiGateway.V1\312\002\032G" + + "oogle\\Cloud\\ApiGateway\\V1\352\002\035Google::Clou" + + "d::ApiGateway::V1\352AY\n!iam.googleapis.com" + + "/ServiceAccount\0224projects/{project}/serv" + + "iceAccounts/{service_account}\352AE\n/servic" + + "emanagement.googleapis.com/ManagedServic" + + "e\022\022services/{service}\352AO\n(servicemanagem" + + "ent.googleapis.com/Service\022#services/{se" + + "rvice}/configs/{config}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_apigateway_v1_Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_apigateway_v1_Api_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_Api_descriptor, + new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "ManagedService", "State", }); + internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_descriptor = + internal_static_google_cloud_apigateway_v1_Api_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_apigateway_v1_ApiConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor, + new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "GatewayServiceAccount", "ServiceConfigId", "State", "OpenapiDocuments", "GrpcServices", "ManagedServiceConfigs", }); + internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor = + internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_apigateway_v1_ApiConfig_File_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor, + new java.lang.String[] { "Path", "Contents", }); + internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor = + internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor, + new java.lang.String[] { "Document", }); + internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor = + internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor, + new java.lang.String[] { "FileDescriptorSet", "Source", }); + internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_descriptor = + internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_apigateway_v1_Gateway_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_apigateway_v1_Gateway_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_Gateway_descriptor, + new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "ApiConfig", "State", "DefaultHostname", }); + internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_descriptor = + internal_static_google_cloud_apigateway_v1_Gateway_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor, + new java.lang.String[] { "Gateways", "NextPageToken", "UnreachableLocations", }); + internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_apigateway_v1_GetGatewayRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor, + new java.lang.String[] { "Parent", "GatewayId", "Gateway", }); + internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor, + new java.lang.String[] { "UpdateMask", "Gateway", }); + internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_apigateway_v1_ListApisRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_apigateway_v1_ListApisResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor, + new java.lang.String[] { "Apis", "NextPageToken", "UnreachableLocations", }); + internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_apigateway_v1_GetApiRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_apigateway_v1_CreateApiRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor, + new java.lang.String[] { "Parent", "ApiId", "Api", }); + internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_apigateway_v1_UpdateApiRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor, + new java.lang.String[] { "UpdateMask", "Api", }); + internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_apigateway_v1_DeleteApiRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor, + new java.lang.String[] { "ApiConfigs", "NextPageToken", "UnreachableLocations", }); + internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor, + new java.lang.String[] { "Name", "View", }); + internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor, + new java.lang.String[] { "Parent", "ApiConfigId", "ApiConfig", }); + internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor, + new java.lang.String[] { "UpdateMask", "ApiConfig", }); + internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_apigateway_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", "Diagnostics", }); + internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor = + internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor, + new java.lang.String[] { "Location", "Message", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApigatewayService.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApigatewayService.java new file mode 100644 index 0000000..d5d6b40 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApigatewayService.java @@ -0,0 +1,138 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/apigateway/v1/apigateway_service.proto + +package com.google.cloud.apigateway.v1; + +public final class ApigatewayService { + private ApigatewayService() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/apigateway/v1/apigateway_" + + "service.proto\022\032google.cloud.apigateway.v" + + "1\032\034google/api/annotations.proto\032\027google/" + + "api/client.proto\032+google/cloud/apigatewa" + + "y/v1/apigateway.proto\032#google/longrunnin" + + "g/operations.proto2\340\027\n\021ApiGatewayService" + + "\022\260\001\n\014ListGateways\022/.google.cloud.apigate" + + "way.v1.ListGatewaysRequest\0320.google.clou" + + "d.apigateway.v1.ListGatewaysResponse\"=\202\323" + + "\344\223\002.\022,/v1/{parent=projects/*/locations/*" + + "}/gateways\332A\006parent\022\235\001\n\nGetGateway\022-.goo" + + "gle.cloud.apigateway.v1.GetGatewayReques" + + "t\032#.google.cloud.apigateway.v1.Gateway\";" + + "\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*" + + "/gateways/*}\332A\004name\022\332\001\n\rCreateGateway\0220." + + "google.cloud.apigateway.v1.CreateGateway" + + "Request\032\035.google.longrunning.Operation\"x" + + "\202\323\344\223\0027\",/v1/{parent=projects/*/locations" + + "/*}/gateways:\007gateway\332A\031parent,gateway,g" + + "ateway_id\312A\034\n\007Gateway\022\021OperationMetadata" + + "\022\334\001\n\rUpdateGateway\0220.google.cloud.apigat" + + "eway.v1.UpdateGatewayRequest\032\035.google.lo" + + "ngrunning.Operation\"z\202\323\344\223\002?24/v1/{gatewa" + + "y.name=projects/*/locations/*/gateways/*" + + "}:\007gateway\332A\023gateway,update_mask\312A\034\n\007Gat" + + "eway\022\021OperationMetadata\022\312\001\n\rDeleteGatewa" + + "y\0220.google.cloud.apigateway.v1.DeleteGat" + + "ewayRequest\032\035.google.longrunning.Operati" + + "on\"h\202\323\344\223\002.*,/v1/{name=projects/*/locatio" + + "ns/*/gateways/*}\332A\004name\312A*\n\025google.proto" + + "buf.Empty\022\021OperationMetadata\022\240\001\n\010ListApi" + + "s\022+.google.cloud.apigateway.v1.ListApisR" + + "equest\032,.google.cloud.apigateway.v1.List" + + "ApisResponse\"9\202\323\344\223\002*\022(/v1/{parent=projec" + + "ts/*/locations/*}/apis\332A\006parent\022\215\001\n\006GetA" + + "pi\022).google.cloud.apigateway.v1.GetApiRe" + + "quest\032\037.google.cloud.apigateway.v1.Api\"7" + + "\202\323\344\223\002*\022(/v1/{name=projects/*/locations/*" + + "/apis/*}\332A\004name\022\276\001\n\tCreateApi\022,.google.c" + + "loud.apigateway.v1.CreateApiRequest\032\035.go" + + "ogle.longrunning.Operation\"d\202\323\344\223\002/\"(/v1/" + + "{parent=projects/*/locations/*}/apis:\003ap" + + "i\332A\021parent,api,api_id\312A\030\n\003Api\022\021Operation" + + "Metadata\022\300\001\n\tUpdateApi\022,.google.cloud.ap" + + "igateway.v1.UpdateApiRequest\032\035.google.lo" + + "ngrunning.Operation\"f\202\323\344\223\00232,/v1/{api.na" + + "me=projects/*/locations/*/apis/*}:\003api\332A" + + "\017api,update_mask\312A\030\n\003Api\022\021OperationMetad" + + "ata\022\276\001\n\tDeleteApi\022,.google.cloud.apigate" + + "way.v1.DeleteApiRequest\032\035.google.longrun" + + "ning.Operation\"d\202\323\344\223\002**(/v1/{name=projec" + + "ts/*/locations/*/apis/*}\332A\004name\312A*\n\025goog" + + "le.protobuf.Empty\022\021OperationMetadata\022\274\001\n" + + "\016ListApiConfigs\0221.google.cloud.apigatewa" + + "y.v1.ListApiConfigsRequest\0322.google.clou" + + "d.apigateway.v1.ListApiConfigsResponse\"C" + + "\202\323\344\223\0024\0222/v1/{parent=projects/*/locations" + + "/*/apis/*}/configs\332A\006parent\022\251\001\n\014GetApiCo" + + "nfig\022/.google.cloud.apigateway.v1.GetApi" + + "ConfigRequest\032%.google.cloud.apigateway." + + "v1.ApiConfig\"A\202\323\344\223\0024\0222/v1/{name=projects" + + "/*/locations/*/apis/*/configs/*}\332A\004name\022" + + "\360\001\n\017CreateApiConfig\0222.google.cloud.apiga" + + "teway.v1.CreateApiConfigRequest\032\035.google" + + ".longrunning.Operation\"\211\001\202\323\344\223\002@\"2/v1/{pa" + + "rent=projects/*/locations/*/apis/*}/conf" + + "igs:\napi_config\332A\037parent,api_config,api_" + + "config_id\312A\036\n\tApiConfig\022\021OperationMetada" + + "ta\022\362\001\n\017UpdateApiConfig\0222.google.cloud.ap" + + "igateway.v1.UpdateApiConfigRequest\032\035.goo" + + "gle.longrunning.Operation\"\213\001\202\323\344\223\002K2=/v1/" + + "{api_config.name=projects/*/locations/*/" + + "apis/*/configs/*}:\napi_config\332A\026api_conf" + + "ig,update_mask\312A\036\n\tApiConfig\022\021OperationM" + + "etadata\022\324\001\n\017DeleteApiConfig\0222.google.clo" + + "ud.apigateway.v1.DeleteApiConfigRequest\032" + + "\035.google.longrunning.Operation\"n\202\323\344\223\0024*2" + + "/v1/{name=projects/*/locations/*/apis/*/" + + "configs/*}\332A\004name\312A*\n\025google.protobuf.Em" + + "pty\022\021OperationMetadata\032M\312A\031apigateway.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\302\001\n\036com.google.clo" + + "ud.apigateway.v1P\001ZDgoogle.golang.org/ge" + + "nproto/googleapis/cloud/apigateway/v1;ap" + + "igateway\252\002\032Google.Cloud.ApiGateway.V1\312\002\032" + + "Google\\Cloud\\ApiGateway\\V1\352\002\035Google::Clo" + + "ud::ApiGateway::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.cloud.apigateway.v1.Apigateway.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.apigateway.v1.Apigateway.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequest.java similarity index 64% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequest.java index 14b1d03..d059d81 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Request message for ApiGatewayService.CreateApiConfig
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.CreateApiConfigRequest} */ -public final class CreateApiConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateApiConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.CreateApiConfigRequest) CreateApiConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateApiConfigRequest.newBuilder() to construct. private CreateApiConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateApiConfigRequest() { parent_ = ""; apiConfigId_ = ""; @@ -44,15 +26,16 @@ private CreateApiConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateApiConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateApiConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateApiConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - apiConfigId_ = s; - break; + apiConfigId_ = s; + break; + } + case 26: { + com.google.cloud.apigateway.v1.ApiConfig.Builder subBuilder = null; + if (apiConfig_ != null) { + subBuilder = apiConfig_.toBuilder(); } - case 26: - { - com.google.cloud.apigateway.v1.ApiConfig.Builder subBuilder = null; - if (apiConfig_ != null) { - subBuilder = apiConfig_.toBuilder(); - } - apiConfig_ = - input.readMessage( - com.google.cloud.apigateway.v1.ApiConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(apiConfig_); - apiConfig_ = subBuilder.buildPartial(); - } - - break; + apiConfig_ = input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(apiConfig_); + apiConfig_ = 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) { @@ -115,42 +93,35 @@ private CreateApiConfigRequest( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.CreateApiConfigRequest.class, - com.google.cloud.apigateway.v1.CreateApiConfigRequest.Builder.class); + com.google.cloud.apigateway.v1.CreateApiConfigRequest.class, com.google.cloud.apigateway.v1.CreateApiConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent resource of the API Config, of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * - * 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 @@ -159,32 +130,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 resource of the API Config, of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * - * 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 { @@ -195,15 +164,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int API_CONFIG_ID_FIELD_NUMBER = 2; private volatile java.lang.Object apiConfigId_; /** - * - * *
    * Required. Identifier to assign to the API Config. Must be unique within scope of
    * the parent resource.
    * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The apiConfigId. */ @java.lang.Override @@ -212,30 +178,30 @@ public java.lang.String getApiConfigId() { 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(); apiConfigId_ = s; return s; } } /** - * - * *
    * Required. Identifier to assign to the API Config. Must be unique within scope of
    * the parent resource.
    * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for apiConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString getApiConfigIdBytes() { + public com.google.protobuf.ByteString + getApiConfigIdBytes() { java.lang.Object ref = apiConfigId_; 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); apiConfigId_ = b; return b; } else { @@ -246,16 +212,11 @@ public com.google.protobuf.ByteString getApiConfigIdBytes() { public static final int API_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.apigateway.v1.ApiConfig apiConfig_; /** - * - * *
    * Required. API resource.
    * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the apiConfig field is set. */ @java.lang.Override @@ -263,34 +224,23 @@ public boolean hasApiConfig() { return apiConfig_ != null; } /** - * - * *
    * Required. API resource.
    * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The apiConfig. */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig getApiConfig() { - return apiConfig_ == null - ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() - : apiConfig_; + return apiConfig_ == null ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() : apiConfig_; } /** - * - * *
    * Required. API resource.
    * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigOrBuilder() { @@ -298,7 +248,6 @@ public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,7 +259,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -336,7 +286,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, apiConfigId_); } if (apiConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getApiConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getApiConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -346,19 +297,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigateway.v1.CreateApiConfigRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.CreateApiConfigRequest other = - (com.google.cloud.apigateway.v1.CreateApiConfigRequest) obj; + com.google.cloud.apigateway.v1.CreateApiConfigRequest other = (com.google.cloud.apigateway.v1.CreateApiConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getApiConfigId().equals(other.getApiConfigId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getApiConfigId() + .equals(other.getApiConfigId())) return false; if (hasApiConfig() != other.hasApiConfig()) return false; if (hasApiConfig()) { - if (!getApiConfig().equals(other.getApiConfig())) return false; + if (!getApiConfig() + .equals(other.getApiConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -385,127 +338,117 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.CreateApiConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.CreateApiConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.apigateway.v1.CreateApiConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ApiGatewayService.CreateApiConfig
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.CreateApiConfigRequest} */ - 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.apigateway.v1.CreateApiConfigRequest) com.google.cloud.apigateway.v1.CreateApiConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.CreateApiConfigRequest.class, - com.google.cloud.apigateway.v1.CreateApiConfigRequest.Builder.class); + com.google.cloud.apigateway.v1.CreateApiConfigRequest.class, com.google.cloud.apigateway.v1.CreateApiConfigRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.CreateApiConfigRequest.newBuilder() @@ -513,15 +456,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(); @@ -539,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor; } @java.lang.Override @@ -560,8 +504,7 @@ public com.google.cloud.apigateway.v1.CreateApiConfigRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.CreateApiConfigRequest buildPartial() { - com.google.cloud.apigateway.v1.CreateApiConfigRequest result = - new com.google.cloud.apigateway.v1.CreateApiConfigRequest(this); + com.google.cloud.apigateway.v1.CreateApiConfigRequest result = new com.google.cloud.apigateway.v1.CreateApiConfigRequest(this); result.parent_ = parent_; result.apiConfigId_ = apiConfigId_; if (apiConfigBuilder_ == null) { @@ -577,39 +520,38 @@ public com.google.cloud.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.CreateApiConfigRequest) other); + return mergeFrom((com.google.cloud.apigateway.v1.CreateApiConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -617,8 +559,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.CreateApiConfigRequest other) { - if (other == com.google.cloud.apigateway.v1.CreateApiConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.CreateApiConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -649,8 +590,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.apigateway.v1.CreateApiConfigRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.apigateway.v1.CreateApiConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -662,23 +602,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * 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; @@ -687,24 +623,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * 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 { @@ -712,70 +645,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * 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 resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * 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 resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * 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; @@ -783,21 +703,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object apiConfigId_ = ""; /** - * - * *
      * Required. Identifier to assign to the API Config. Must be unique within scope of
      * the parent resource.
      * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The apiConfigId. */ public java.lang.String getApiConfigId() { java.lang.Object ref = apiConfigId_; 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(); apiConfigId_ = s; return s; @@ -806,22 +724,21 @@ public java.lang.String getApiConfigId() { } } /** - * - * *
      * Required. Identifier to assign to the API Config. Must be unique within scope of
      * the parent resource.
      * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for apiConfigId. */ - public com.google.protobuf.ByteString getApiConfigIdBytes() { + public com.google.protobuf.ByteString + getApiConfigIdBytes() { java.lang.Object ref = apiConfigId_; 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); apiConfigId_ = b; return b; } else { @@ -829,64 +746,57 @@ public com.google.protobuf.ByteString getApiConfigIdBytes() { } } /** - * - * *
      * Required. Identifier to assign to the API Config. Must be unique within scope of
      * the parent resource.
      * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The apiConfigId to set. * @return This builder for chaining. */ - public Builder setApiConfigId(java.lang.String value) { + public Builder setApiConfigId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiConfigId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Identifier to assign to the API Config. Must be unique within scope of
      * the parent resource.
      * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearApiConfigId() { - + apiConfigId_ = getDefaultInstance().getApiConfigId(); onChanged(); return this; } /** - * - * *
      * Required. Identifier to assign to the API Config. Must be unique within scope of
      * the parent resource.
      * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for apiConfigId to set. * @return This builder for chaining. */ - public Builder setApiConfigIdBytes(com.google.protobuf.ByteString value) { + public Builder setApiConfigIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiConfigId_ = value; onChanged(); return this; @@ -894,58 +804,39 @@ public Builder setApiConfigIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.apigateway.v1.ApiConfig apiConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig, - com.google.cloud.apigateway.v1.ApiConfig.Builder, - com.google.cloud.apigateway.v1.ApiConfigOrBuilder> - apiConfigBuilder_; + com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder> apiConfigBuilder_; /** - * - * *
      * Required. API resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the apiConfig field is set. */ public boolean hasApiConfig() { return apiConfigBuilder_ != null || apiConfig_ != null; } /** - * - * *
      * Required. API resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The apiConfig. */ public com.google.cloud.apigateway.v1.ApiConfig getApiConfig() { if (apiConfigBuilder_ == null) { - return apiConfig_ == null - ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() - : apiConfig_; + return apiConfig_ == null ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() : apiConfig_; } else { return apiConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. API resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setApiConfig(com.google.cloud.apigateway.v1.ApiConfig value) { if (apiConfigBuilder_ == null) { @@ -961,17 +852,14 @@ public Builder setApiConfig(com.google.cloud.apigateway.v1.ApiConfig value) { return this; } /** - * - * *
      * Required. API resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setApiConfig(com.google.cloud.apigateway.v1.ApiConfig.Builder builderForValue) { + public Builder setApiConfig( + com.google.cloud.apigateway.v1.ApiConfig.Builder builderForValue) { if (apiConfigBuilder_ == null) { apiConfig_ = builderForValue.build(); onChanged(); @@ -982,23 +870,17 @@ public Builder setApiConfig(com.google.cloud.apigateway.v1.ApiConfig.Builder bui return this; } /** - * - * *
      * Required. API resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeApiConfig(com.google.cloud.apigateway.v1.ApiConfig value) { if (apiConfigBuilder_ == null) { if (apiConfig_ != null) { apiConfig_ = - com.google.cloud.apigateway.v1.ApiConfig.newBuilder(apiConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.apigateway.v1.ApiConfig.newBuilder(apiConfig_).mergeFrom(value).buildPartial(); } else { apiConfig_ = value; } @@ -1010,15 +892,11 @@ public Builder mergeApiConfig(com.google.cloud.apigateway.v1.ApiConfig value) { return this; } /** - * - * *
      * Required. API resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearApiConfig() { if (apiConfigBuilder_ == null) { @@ -1032,71 +910,55 @@ public Builder clearApiConfig() { return this; } /** - * - * *
      * Required. API resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.apigateway.v1.ApiConfig.Builder getApiConfigBuilder() { - + onChanged(); return getApiConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. API resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigOrBuilder() { if (apiConfigBuilder_ != null) { return apiConfigBuilder_.getMessageOrBuilder(); } else { - return apiConfig_ == null - ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() - : apiConfig_; + return apiConfig_ == null ? + com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() : apiConfig_; } } /** - * - * *
      * Required. API resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig, - com.google.cloud.apigateway.v1.ApiConfig.Builder, - com.google.cloud.apigateway.v1.ApiConfigOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder> getApiConfigFieldBuilder() { if (apiConfigBuilder_ == null) { - apiConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig, - com.google.cloud.apigateway.v1.ApiConfig.Builder, - com.google.cloud.apigateway.v1.ApiConfigOrBuilder>( - getApiConfig(), getParentForChildren(), isClean()); + apiConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder>( + getApiConfig(), + getParentForChildren(), + isClean()); apiConfig_ = null; } return apiConfigBuilder_; } - @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); } @@ -1106,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.CreateApiConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.CreateApiConfigRequest) private static final com.google.cloud.apigateway.v1.CreateApiConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.CreateApiConfigRequest(); } @@ -1120,16 +982,16 @@ public static com.google.cloud.apigateway.v1.CreateApiConfigRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateApiConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateApiConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateApiConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateApiConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.CreateApiConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequestOrBuilder.java similarity index 53% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequestOrBuilder.java index 0fde76a..af2e519 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequestOrBuilder.java @@ -1,124 +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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface CreateApiConfigRequestOrBuilder - extends +public interface CreateApiConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.CreateApiConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource of the API Config, of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * - * 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 resource of the API Config, of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Identifier to assign to the API Config. Must be unique within scope of
    * the parent resource.
    * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The apiConfigId. */ java.lang.String getApiConfigId(); /** - * - * *
    * Required. Identifier to assign to the API Config. Must be unique within scope of
    * the parent resource.
    * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for apiConfigId. */ - com.google.protobuf.ByteString getApiConfigIdBytes(); + com.google.protobuf.ByteString + getApiConfigIdBytes(); /** - * - * *
    * Required. API resource.
    * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the apiConfig field is set. */ boolean hasApiConfig(); /** - * - * *
    * Required. API resource.
    * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The apiConfig. */ com.google.cloud.apigateway.v1.ApiConfig getApiConfig(); /** - * - * *
    * Required. API resource.
    * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigOrBuilder(); } diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequest.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequest.java similarity index 68% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequest.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequest.java index f3b3e2b..79eafbd 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Request message for ApiGatewayService.CreateApi
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.CreateApiRequest} */ -public final class CreateApiRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateApiRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.CreateApiRequest) CreateApiRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateApiRequest.newBuilder() to construct. private CreateApiRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateApiRequest() { parent_ = ""; apiId_ = ""; @@ -44,15 +26,16 @@ private CreateApiRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateApiRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateApiRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,42 +54,38 @@ private CreateApiRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - apiId_ = s; - break; + apiId_ = s; + break; + } + case 26: { + com.google.cloud.apigateway.v1.Api.Builder subBuilder = null; + if (api_ != null) { + subBuilder = api_.toBuilder(); } - case 26: - { - com.google.cloud.apigateway.v1.Api.Builder subBuilder = null; - if (api_ != null) { - subBuilder = api_.toBuilder(); - } - api_ = - input.readMessage(com.google.cloud.apigateway.v1.Api.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(api_); - api_ = subBuilder.buildPartial(); - } - - break; + api_ = input.readMessage(com.google.cloud.apigateway.v1.Api.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(api_); + api_ = 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) { @@ -114,42 +93,35 @@ private CreateApiRequest( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_CreateApiRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.CreateApiRequest.class, - com.google.cloud.apigateway.v1.CreateApiRequest.Builder.class); + com.google.cloud.apigateway.v1.CreateApiRequest.class, com.google.cloud.apigateway.v1.CreateApiRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent resource of the API, of the form:
    * `projects/*/locations/global`
    * 
* - * - * 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 @@ -158,32 +130,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 resource of the API, of the form:
    * `projects/*/locations/global`
    * 
* - * - * 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 { @@ -194,15 +164,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int API_ID_FIELD_NUMBER = 2; private volatile java.lang.Object apiId_; /** - * - * *
    * Required. Identifier to assign to the API. Must be unique within scope of
    * the parent resource.
    * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The apiId. */ @java.lang.Override @@ -211,30 +178,30 @@ public java.lang.String getApiId() { 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(); apiId_ = s; return s; } } /** - * - * *
    * Required. Identifier to assign to the API. Must be unique within scope of
    * the parent resource.
    * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for apiId. */ @java.lang.Override - public com.google.protobuf.ByteString getApiIdBytes() { + public com.google.protobuf.ByteString + getApiIdBytes() { java.lang.Object ref = apiId_; 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); apiId_ = b; return b; } else { @@ -245,14 +212,11 @@ public com.google.protobuf.ByteString getApiIdBytes() { public static final int API_FIELD_NUMBER = 3; private com.google.cloud.apigateway.v1.Api api_; /** - * - * *
    * Required. API resource.
    * 
* * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the api field is set. */ @java.lang.Override @@ -260,14 +224,11 @@ public boolean hasApi() { return api_ != null; } /** - * - * *
    * Required. API resource.
    * 
* * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The api. */ @java.lang.Override @@ -275,8 +236,6 @@ public com.google.cloud.apigateway.v1.Api getApi() { return api_ == null ? com.google.cloud.apigateway.v1.Api.getDefaultInstance() : api_; } /** - * - * *
    * Required. API resource.
    * 
@@ -289,7 +248,6 @@ public com.google.cloud.apigateway.v1.ApiOrBuilder getApiOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -301,7 +259,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -327,7 +286,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, apiId_); } if (api_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getApi()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getApi()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -337,19 +297,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigateway.v1.CreateApiRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.CreateApiRequest other = - (com.google.cloud.apigateway.v1.CreateApiRequest) obj; + com.google.cloud.apigateway.v1.CreateApiRequest other = (com.google.cloud.apigateway.v1.CreateApiRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getApiId().equals(other.getApiId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getApiId() + .equals(other.getApiId())) return false; if (hasApi() != other.hasApi()) return false; if (hasApi()) { - if (!getApi().equals(other.getApi())) return false; + if (!getApi() + .equals(other.getApi())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -375,127 +337,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.CreateApiRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.CreateApiRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.CreateApiRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ApiGatewayService.CreateApi
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.CreateApiRequest} */ - 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.apigateway.v1.CreateApiRequest) com.google.cloud.apigateway.v1.CreateApiRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_CreateApiRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.CreateApiRequest.class, - com.google.cloud.apigateway.v1.CreateApiRequest.Builder.class); + com.google.cloud.apigateway.v1.CreateApiRequest.class, com.google.cloud.apigateway.v1.CreateApiRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.CreateApiRequest.newBuilder() @@ -503,15 +456,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(); @@ -529,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor; } @java.lang.Override @@ -550,8 +504,7 @@ public com.google.cloud.apigateway.v1.CreateApiRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.CreateApiRequest buildPartial() { - com.google.cloud.apigateway.v1.CreateApiRequest result = - new com.google.cloud.apigateway.v1.CreateApiRequest(this); + com.google.cloud.apigateway.v1.CreateApiRequest result = new com.google.cloud.apigateway.v1.CreateApiRequest(this); result.parent_ = parent_; result.apiId_ = apiId_; if (apiBuilder_ == null) { @@ -567,39 +520,38 @@ public com.google.cloud.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.CreateApiRequest) other); + return mergeFrom((com.google.cloud.apigateway.v1.CreateApiRequest)other); } else { super.mergeFrom(other); return this; @@ -607,8 +559,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.CreateApiRequest other) { - if (other == com.google.cloud.apigateway.v1.CreateApiRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.CreateApiRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -651,23 +602,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * - * 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; @@ -676,24 +623,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * - * 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 { @@ -701,70 +645,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * - * 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 resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * - * 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 resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * - * 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; @@ -772,21 +703,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object apiId_ = ""; /** - * - * *
      * Required. Identifier to assign to the API. Must be unique within scope of
      * the parent resource.
      * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The apiId. */ public java.lang.String getApiId() { java.lang.Object ref = apiId_; 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(); apiId_ = s; return s; @@ -795,22 +724,21 @@ public java.lang.String getApiId() { } } /** - * - * *
      * Required. Identifier to assign to the API. Must be unique within scope of
      * the parent resource.
      * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for apiId. */ - public com.google.protobuf.ByteString getApiIdBytes() { + public com.google.protobuf.ByteString + getApiIdBytes() { java.lang.Object ref = apiId_; 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); apiId_ = b; return b; } else { @@ -818,64 +746,57 @@ public com.google.protobuf.ByteString getApiIdBytes() { } } /** - * - * *
      * Required. Identifier to assign to the API. Must be unique within scope of
      * the parent resource.
      * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The apiId to set. * @return This builder for chaining. */ - public Builder setApiId(java.lang.String value) { + public Builder setApiId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Identifier to assign to the API. Must be unique within scope of
      * the parent resource.
      * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearApiId() { - + apiId_ = getDefaultInstance().getApiId(); onChanged(); return this; } /** - * - * *
      * Required. Identifier to assign to the API. Must be unique within scope of
      * the parent resource.
      * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for apiId to set. * @return This builder for chaining. */ - public Builder setApiIdBytes(com.google.protobuf.ByteString value) { + public Builder setApiIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiId_ = value; onChanged(); return this; @@ -883,35 +804,24 @@ public Builder setApiIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.apigateway.v1.Api api_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Api, - com.google.cloud.apigateway.v1.Api.Builder, - com.google.cloud.apigateway.v1.ApiOrBuilder> - apiBuilder_; + com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder> apiBuilder_; /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the api field is set. */ public boolean hasApi() { return apiBuilder_ != null || api_ != null; } /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The api. */ public com.google.cloud.apigateway.v1.Api getApi() { @@ -922,14 +832,11 @@ public com.google.cloud.apigateway.v1.Api getApi() { } } /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setApi(com.google.cloud.apigateway.v1.Api value) { if (apiBuilder_ == null) { @@ -945,16 +852,14 @@ public Builder setApi(com.google.cloud.apigateway.v1.Api value) { return this; } /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setApi(com.google.cloud.apigateway.v1.Api.Builder builderForValue) { + public Builder setApi( + com.google.cloud.apigateway.v1.Api.Builder builderForValue) { if (apiBuilder_ == null) { api_ = builderForValue.build(); onChanged(); @@ -965,20 +870,17 @@ public Builder setApi(com.google.cloud.apigateway.v1.Api.Builder builderForValue return this; } /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeApi(com.google.cloud.apigateway.v1.Api value) { if (apiBuilder_ == null) { if (api_ != null) { api_ = - com.google.cloud.apigateway.v1.Api.newBuilder(api_).mergeFrom(value).buildPartial(); + com.google.cloud.apigateway.v1.Api.newBuilder(api_).mergeFrom(value).buildPartial(); } else { api_ = value; } @@ -990,14 +892,11 @@ public Builder mergeApi(com.google.cloud.apigateway.v1.Api value) { return this; } /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearApi() { if (apiBuilder_ == null) { @@ -1011,66 +910,55 @@ public Builder clearApi() { return this; } /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.apigateway.v1.Api.Builder getApiBuilder() { - + onChanged(); return getApiFieldBuilder().getBuilder(); } /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.apigateway.v1.ApiOrBuilder getApiOrBuilder() { if (apiBuilder_ != null) { return apiBuilder_.getMessageOrBuilder(); } else { - return api_ == null ? com.google.cloud.apigateway.v1.Api.getDefaultInstance() : api_; + return api_ == null ? + com.google.cloud.apigateway.v1.Api.getDefaultInstance() : api_; } } /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Api, - com.google.cloud.apigateway.v1.Api.Builder, - com.google.cloud.apigateway.v1.ApiOrBuilder> + com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder> getApiFieldBuilder() { if (apiBuilder_ == null) { - apiBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Api, - com.google.cloud.apigateway.v1.Api.Builder, - com.google.cloud.apigateway.v1.ApiOrBuilder>( - getApi(), getParentForChildren(), isClean()); + apiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder>( + getApi(), + getParentForChildren(), + isClean()); api_ = null; } return apiBuilder_; } - @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); } @@ -1080,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.CreateApiRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.CreateApiRequest) private static final com.google.cloud.apigateway.v1.CreateApiRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.CreateApiRequest(); } @@ -1094,16 +982,16 @@ public static com.google.cloud.apigateway.v1.CreateApiRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateApiRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateApiRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateApiRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateApiRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1118,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.CreateApiRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequestOrBuilder.java index 0176ef5..60c511d 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequestOrBuilder.java @@ -1,113 +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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface CreateApiRequestOrBuilder - extends +public interface CreateApiRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.CreateApiRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource of the API, of the form:
    * `projects/*/locations/global`
    * 
* - * - * 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 resource of the API, of the form:
    * `projects/*/locations/global`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Identifier to assign to the API. Must be unique within scope of
    * the parent resource.
    * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The apiId. */ java.lang.String getApiId(); /** - * - * *
    * Required. Identifier to assign to the API. Must be unique within scope of
    * the parent resource.
    * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for apiId. */ - com.google.protobuf.ByteString getApiIdBytes(); + com.google.protobuf.ByteString + getApiIdBytes(); /** - * - * *
    * Required. API resource.
    * 
* * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the api field is set. */ boolean hasApi(); /** - * - * *
    * Required. API resource.
    * 
* * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The api. */ com.google.cloud.apigateway.v1.Api getApi(); /** - * - * *
    * Required. API resource.
    * 
diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequest.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequest.java similarity index 64% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequest.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequest.java index c33e6d4..25261c9 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Request message for ApiGatewayService.CreateGateway
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.CreateGatewayRequest} */ -public final class CreateGatewayRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateGatewayRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.CreateGatewayRequest) CreateGatewayRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateGatewayRequest.newBuilder() to construct. private CreateGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateGatewayRequest() { parent_ = ""; gatewayId_ = ""; @@ -44,15 +26,16 @@ private CreateGatewayRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateGatewayRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateGatewayRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateGatewayRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - gatewayId_ = s; - break; + gatewayId_ = s; + break; + } + case 26: { + com.google.cloud.apigateway.v1.Gateway.Builder subBuilder = null; + if (gateway_ != null) { + subBuilder = gateway_.toBuilder(); } - case 26: - { - com.google.cloud.apigateway.v1.Gateway.Builder subBuilder = null; - if (gateway_ != null) { - subBuilder = gateway_.toBuilder(); - } - gateway_ = - input.readMessage( - com.google.cloud.apigateway.v1.Gateway.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gateway_); - gateway_ = subBuilder.buildPartial(); - } - - break; + gateway_ = input.readMessage(com.google.cloud.apigateway.v1.Gateway.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gateway_); + gateway_ = 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) { @@ -115,42 +93,35 @@ private CreateGatewayRequest( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.CreateGatewayRequest.class, - com.google.cloud.apigateway.v1.CreateGatewayRequest.Builder.class); + com.google.cloud.apigateway.v1.CreateGatewayRequest.class, com.google.cloud.apigateway.v1.CreateGatewayRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent resource of the Gateway, of the form:
    * `projects/*/locations/*`
    * 
* - * - * 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 @@ -159,32 +130,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 resource of the Gateway, of the form:
    * `projects/*/locations/*`
    * 
* - * - * 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 { @@ -195,15 +164,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int GATEWAY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object gatewayId_; /** - * - * *
    * Required. Identifier to assign to the Gateway. Must be unique within scope of
    * the parent resource.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The gatewayId. */ @java.lang.Override @@ -212,30 +178,30 @@ public java.lang.String getGatewayId() { 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(); gatewayId_ = s; return s; } } /** - * - * *
    * Required. Identifier to assign to the Gateway. Must be unique within scope of
    * the parent resource.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for gatewayId. */ @java.lang.Override - public com.google.protobuf.ByteString getGatewayIdBytes() { + public com.google.protobuf.ByteString + getGatewayIdBytes() { java.lang.Object ref = gatewayId_; 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); gatewayId_ = b; return b; } else { @@ -246,16 +212,11 @@ public com.google.protobuf.ByteString getGatewayIdBytes() { public static final int GATEWAY_FIELD_NUMBER = 3; private com.google.cloud.apigateway.v1.Gateway gateway_; /** - * - * *
    * Required. Gateway resource.
    * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gateway field is set. */ @java.lang.Override @@ -263,34 +224,23 @@ public boolean hasGateway() { return gateway_ != null; } /** - * - * *
    * Required. Gateway resource.
    * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The gateway. */ @java.lang.Override public com.google.cloud.apigateway.v1.Gateway getGateway() { - return gateway_ == null - ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() - : gateway_; + return gateway_ == null ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() : gateway_; } /** - * - * *
    * Required. Gateway resource.
    * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewayOrBuilder() { @@ -298,7 +248,6 @@ public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewayOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,7 +259,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -336,7 +286,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gatewayId_); } if (gateway_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGateway()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getGateway()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -346,19 +297,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigateway.v1.CreateGatewayRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.CreateGatewayRequest other = - (com.google.cloud.apigateway.v1.CreateGatewayRequest) obj; + com.google.cloud.apigateway.v1.CreateGatewayRequest other = (com.google.cloud.apigateway.v1.CreateGatewayRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getGatewayId().equals(other.getGatewayId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getGatewayId() + .equals(other.getGatewayId())) return false; if (hasGateway() != other.hasGateway()) return false; if (hasGateway()) { - if (!getGateway().equals(other.getGateway())) return false; + if (!getGateway() + .equals(other.getGateway())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -385,126 +338,117 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.CreateGatewayRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.CreateGatewayRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ApiGatewayService.CreateGateway
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.CreateGatewayRequest} */ - 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.apigateway.v1.CreateGatewayRequest) com.google.cloud.apigateway.v1.CreateGatewayRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.CreateGatewayRequest.class, - com.google.cloud.apigateway.v1.CreateGatewayRequest.Builder.class); + com.google.cloud.apigateway.v1.CreateGatewayRequest.class, com.google.cloud.apigateway.v1.CreateGatewayRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.CreateGatewayRequest.newBuilder() @@ -512,15 +456,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(); @@ -538,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor; } @java.lang.Override @@ -559,8 +504,7 @@ public com.google.cloud.apigateway.v1.CreateGatewayRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.CreateGatewayRequest buildPartial() { - com.google.cloud.apigateway.v1.CreateGatewayRequest result = - new com.google.cloud.apigateway.v1.CreateGatewayRequest(this); + com.google.cloud.apigateway.v1.CreateGatewayRequest result = new com.google.cloud.apigateway.v1.CreateGatewayRequest(this); result.parent_ = parent_; result.gatewayId_ = gatewayId_; if (gatewayBuilder_ == null) { @@ -576,39 +520,38 @@ public com.google.cloud.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.CreateGatewayRequest) other); + return mergeFrom((com.google.cloud.apigateway.v1.CreateGatewayRequest)other); } else { super.mergeFrom(other); return this; @@ -616,8 +559,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.CreateGatewayRequest other) { - if (other == com.google.cloud.apigateway.v1.CreateGatewayRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.CreateGatewayRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -648,8 +590,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.apigateway.v1.CreateGatewayRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.apigateway.v1.CreateGatewayRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -661,23 +602,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * - * 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; @@ -686,24 +623,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * - * 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 { @@ -711,70 +645,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * - * 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 resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * - * 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 resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * - * 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; @@ -782,21 +703,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object gatewayId_ = ""; /** - * - * *
      * Required. Identifier to assign to the Gateway. Must be unique within scope of
      * the parent resource.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The gatewayId. */ public java.lang.String getGatewayId() { java.lang.Object ref = gatewayId_; 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(); gatewayId_ = s; return s; @@ -805,22 +724,21 @@ public java.lang.String getGatewayId() { } } /** - * - * *
      * Required. Identifier to assign to the Gateway. Must be unique within scope of
      * the parent resource.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for gatewayId. */ - public com.google.protobuf.ByteString getGatewayIdBytes() { + public com.google.protobuf.ByteString + getGatewayIdBytes() { java.lang.Object ref = gatewayId_; 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); gatewayId_ = b; return b; } else { @@ -828,64 +746,57 @@ public com.google.protobuf.ByteString getGatewayIdBytes() { } } /** - * - * *
      * Required. Identifier to assign to the Gateway. Must be unique within scope of
      * the parent resource.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The gatewayId to set. * @return This builder for chaining. */ - public Builder setGatewayId(java.lang.String value) { + public Builder setGatewayId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gatewayId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Identifier to assign to the Gateway. Must be unique within scope of
      * the parent resource.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGatewayId() { - + gatewayId_ = getDefaultInstance().getGatewayId(); onChanged(); return this; } /** - * - * *
      * Required. Identifier to assign to the Gateway. Must be unique within scope of
      * the parent resource.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for gatewayId to set. * @return This builder for chaining. */ - public Builder setGatewayIdBytes(com.google.protobuf.ByteString value) { + public Builder setGatewayIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gatewayId_ = value; onChanged(); return this; @@ -893,58 +804,39 @@ public Builder setGatewayIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.apigateway.v1.Gateway gateway_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Gateway, - com.google.cloud.apigateway.v1.Gateway.Builder, - com.google.cloud.apigateway.v1.GatewayOrBuilder> - gatewayBuilder_; + com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder> gatewayBuilder_; /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gateway field is set. */ public boolean hasGateway() { return gatewayBuilder_ != null || gateway_ != null; } /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The gateway. */ public com.google.cloud.apigateway.v1.Gateway getGateway() { if (gatewayBuilder_ == null) { - return gateway_ == null - ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() - : gateway_; + return gateway_ == null ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() : gateway_; } else { return gatewayBuilder_.getMessage(); } } /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGateway(com.google.cloud.apigateway.v1.Gateway value) { if (gatewayBuilder_ == null) { @@ -960,17 +852,14 @@ public Builder setGateway(com.google.cloud.apigateway.v1.Gateway value) { return this; } /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setGateway(com.google.cloud.apigateway.v1.Gateway.Builder builderForValue) { + public Builder setGateway( + com.google.cloud.apigateway.v1.Gateway.Builder builderForValue) { if (gatewayBuilder_ == null) { gateway_ = builderForValue.build(); onChanged(); @@ -981,23 +870,17 @@ public Builder setGateway(com.google.cloud.apigateway.v1.Gateway.Builder builder return this; } /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeGateway(com.google.cloud.apigateway.v1.Gateway value) { if (gatewayBuilder_ == null) { if (gateway_ != null) { gateway_ = - com.google.cloud.apigateway.v1.Gateway.newBuilder(gateway_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.apigateway.v1.Gateway.newBuilder(gateway_).mergeFrom(value).buildPartial(); } else { gateway_ = value; } @@ -1009,15 +892,11 @@ public Builder mergeGateway(com.google.cloud.apigateway.v1.Gateway value) { return this; } /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearGateway() { if (gatewayBuilder_ == null) { @@ -1031,71 +910,55 @@ public Builder clearGateway() { return this; } /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.apigateway.v1.Gateway.Builder getGatewayBuilder() { - + onChanged(); return getGatewayFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewayOrBuilder() { if (gatewayBuilder_ != null) { return gatewayBuilder_.getMessageOrBuilder(); } else { - return gateway_ == null - ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() - : gateway_; + return gateway_ == null ? + com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() : gateway_; } } /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Gateway, - com.google.cloud.apigateway.v1.Gateway.Builder, - com.google.cloud.apigateway.v1.GatewayOrBuilder> + com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder> getGatewayFieldBuilder() { if (gatewayBuilder_ == null) { - gatewayBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Gateway, - com.google.cloud.apigateway.v1.Gateway.Builder, - com.google.cloud.apigateway.v1.GatewayOrBuilder>( - getGateway(), getParentForChildren(), isClean()); + gatewayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder>( + getGateway(), + getParentForChildren(), + isClean()); gateway_ = null; } return gatewayBuilder_; } - @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); } @@ -1105,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.CreateGatewayRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.CreateGatewayRequest) private static final com.google.cloud.apigateway.v1.CreateGatewayRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.CreateGatewayRequest(); } @@ -1119,16 +982,16 @@ public static com.google.cloud.apigateway.v1.CreateGatewayRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGatewayRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateGatewayRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateGatewayRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1143,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.CreateGatewayRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequestOrBuilder.java similarity index 53% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequestOrBuilder.java index 66a8c04..c9f26dc 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequestOrBuilder.java @@ -1,124 +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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface CreateGatewayRequestOrBuilder - extends +public interface CreateGatewayRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.CreateGatewayRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource of the Gateway, of the form:
    * `projects/*/locations/*`
    * 
* - * - * 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 resource of the Gateway, of the form:
    * `projects/*/locations/*`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Identifier to assign to the Gateway. Must be unique within scope of
    * the parent resource.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The gatewayId. */ java.lang.String getGatewayId(); /** - * - * *
    * Required. Identifier to assign to the Gateway. Must be unique within scope of
    * the parent resource.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for gatewayId. */ - com.google.protobuf.ByteString getGatewayIdBytes(); + com.google.protobuf.ByteString + getGatewayIdBytes(); /** - * - * *
    * Required. Gateway resource.
    * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gateway field is set. */ boolean hasGateway(); /** - * - * *
    * Required. Gateway resource.
    * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The gateway. */ com.google.cloud.apigateway.v1.Gateway getGateway(); /** - * - * *
    * Required. Gateway resource.
    * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewayOrBuilder(); } diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequest.java similarity index 65% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequest.java index 5a5b29c..b6620b9 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Request message for ApiGatewayService.DeleteApiConfig
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.DeleteApiConfigRequest} */ -public final class DeleteApiConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteApiConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.DeleteApiConfigRequest) DeleteApiConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteApiConfigRequest.newBuilder() to construct. private DeleteApiConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteApiConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteApiConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteApiConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteApiConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteApiConfigRequest( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.DeleteApiConfigRequest.class, - com.google.cloud.apigateway.v1.DeleteApiConfigRequest.Builder.class); + com.google.cloud.apigateway.v1.DeleteApiConfigRequest.class, com.google.cloud.apigateway.v1.DeleteApiConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*/configs/*`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,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; } } /** - * - * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*/configs/*`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,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_); } @@ -205,15 +178,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.apigateway.v1.DeleteApiConfigRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.DeleteApiConfigRequest other = - (com.google.cloud.apigateway.v1.DeleteApiConfigRequest) obj; + com.google.cloud.apigateway.v1.DeleteApiConfigRequest other = (com.google.cloud.apigateway.v1.DeleteApiConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.DeleteApiConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.DeleteApiConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.apigateway.v1.DeleteApiConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ApiGatewayService.DeleteApiConfig
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.DeleteApiConfigRequest} */ - 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.apigateway.v1.DeleteApiConfigRequest) com.google.cloud.apigateway.v1.DeleteApiConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.DeleteApiConfigRequest.class, - com.google.cloud.apigateway.v1.DeleteApiConfigRequest.Builder.class); + com.google.cloud.apigateway.v1.DeleteApiConfigRequest.class, com.google.cloud.apigateway.v1.DeleteApiConfigRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.DeleteApiConfigRequest.newBuilder() @@ -361,15 +324,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(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.apigateway.v1.DeleteApiConfigRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.DeleteApiConfigRequest buildPartial() { - com.google.cloud.apigateway.v1.DeleteApiConfigRequest result = - new com.google.cloud.apigateway.v1.DeleteApiConfigRequest(this); + com.google.cloud.apigateway.v1.DeleteApiConfigRequest result = new com.google.cloud.apigateway.v1.DeleteApiConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.DeleteApiConfigRequest) other); + return mergeFrom((com.google.cloud.apigateway.v1.DeleteApiConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.DeleteApiConfigRequest other) { - if (other == com.google.cloud.apigateway.v1.DeleteApiConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.DeleteApiConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.apigateway.v1.DeleteApiConfigRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.apigateway.v1.DeleteApiConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -514,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -539,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -619,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.DeleteApiConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.DeleteApiConfigRequest) private static final com.google.cloud.apigateway.v1.DeleteApiConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.DeleteApiConfigRequest(); } @@ -633,16 +573,16 @@ public static com.google.cloud.apigateway.v1.DeleteApiConfigRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteApiConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteApiConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteApiConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteApiConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.DeleteApiConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequestOrBuilder.java new file mode 100644 index 0000000..5870e48 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/apigateway/v1/apigateway.proto + +package com.google.cloud.apigateway.v1; + +public interface DeleteApiConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.DeleteApiConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/global/apis/*/configs/*`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/global/apis/*/configs/*`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequest.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequest.java similarity index 65% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequest.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequest.java index 6f29232..7112baf 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Request message for ApiGatewayService.DeleteApi
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.DeleteApiRequest} */ -public final class DeleteApiRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteApiRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.DeleteApiRequest) DeleteApiRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteApiRequest.newBuilder() to construct. private DeleteApiRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteApiRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteApiRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteApiRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteApiRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteApiRequest( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_DeleteApiRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.DeleteApiRequest.class, - com.google.cloud.apigateway.v1.DeleteApiRequest.Builder.class); + com.google.cloud.apigateway.v1.DeleteApiRequest.class, com.google.cloud.apigateway.v1.DeleteApiRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,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; } } /** - * - * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,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_); } @@ -205,15 +178,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.apigateway.v1.DeleteApiRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.DeleteApiRequest other = - (com.google.cloud.apigateway.v1.DeleteApiRequest) obj; + com.google.cloud.apigateway.v1.DeleteApiRequest other = (com.google.cloud.apigateway.v1.DeleteApiRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.DeleteApiRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.DeleteApiRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.DeleteApiRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ApiGatewayService.DeleteApi
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.DeleteApiRequest} */ - 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.apigateway.v1.DeleteApiRequest) com.google.cloud.apigateway.v1.DeleteApiRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_DeleteApiRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.DeleteApiRequest.class, - com.google.cloud.apigateway.v1.DeleteApiRequest.Builder.class); + com.google.cloud.apigateway.v1.DeleteApiRequest.class, com.google.cloud.apigateway.v1.DeleteApiRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.DeleteApiRequest.newBuilder() @@ -360,15 +324,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(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.apigateway.v1.DeleteApiRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.DeleteApiRequest buildPartial() { - com.google.cloud.apigateway.v1.DeleteApiRequest result = - new com.google.cloud.apigateway.v1.DeleteApiRequest(this); + com.google.cloud.apigateway.v1.DeleteApiRequest result = new com.google.cloud.apigateway.v1.DeleteApiRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.DeleteApiRequest) other); + return mergeFrom((com.google.cloud.apigateway.v1.DeleteApiRequest)other); } else { super.mergeFrom(other); return this; @@ -450,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.DeleteApiRequest other) { - if (other == com.google.cloud.apigateway.v1.DeleteApiRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.DeleteApiRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -487,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -512,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -537,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -617,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.DeleteApiRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.DeleteApiRequest) private static final com.google.cloud.apigateway.v1.DeleteApiRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.DeleteApiRequest(); } @@ -631,16 +573,16 @@ public static com.google.cloud.apigateway.v1.DeleteApiRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteApiRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteApiRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteApiRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteApiRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.DeleteApiRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequestOrBuilder.java new file mode 100644 index 0000000..045b673 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/apigateway/v1/apigateway.proto + +package com.google.cloud.apigateway.v1; + +public interface DeleteApiRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.DeleteApiRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/global/apis/*`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/global/apis/*`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequest.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequest.java similarity index 65% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequest.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequest.java index 78c451e..3a10c10 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Request message for ApiGatewayService.DeleteGateway
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.DeleteGatewayRequest} */ -public final class DeleteGatewayRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteGatewayRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.DeleteGatewayRequest) DeleteGatewayRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteGatewayRequest.newBuilder() to construct. private DeleteGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteGatewayRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteGatewayRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteGatewayRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteGatewayRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteGatewayRequest( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.DeleteGatewayRequest.class, - com.google.cloud.apigateway.v1.DeleteGatewayRequest.Builder.class); + com.google.cloud.apigateway.v1.DeleteGatewayRequest.class, com.google.cloud.apigateway.v1.DeleteGatewayRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the form:
    * `projects/*/locations/*/gateways/*`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,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; } } /** - * - * *
    * Required. Resource name of the form:
    * `projects/*/locations/*/gateways/*`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,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_); } @@ -205,15 +178,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.apigateway.v1.DeleteGatewayRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.DeleteGatewayRequest other = - (com.google.cloud.apigateway.v1.DeleteGatewayRequest) obj; + com.google.cloud.apigateway.v1.DeleteGatewayRequest other = (com.google.cloud.apigateway.v1.DeleteGatewayRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,126 +206,117 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.DeleteGatewayRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.DeleteGatewayRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ApiGatewayService.DeleteGateway
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.DeleteGatewayRequest} */ - 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.apigateway.v1.DeleteGatewayRequest) com.google.cloud.apigateway.v1.DeleteGatewayRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.DeleteGatewayRequest.class, - com.google.cloud.apigateway.v1.DeleteGatewayRequest.Builder.class); + com.google.cloud.apigateway.v1.DeleteGatewayRequest.class, com.google.cloud.apigateway.v1.DeleteGatewayRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.DeleteGatewayRequest.newBuilder() @@ -360,15 +324,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(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.apigateway.v1.DeleteGatewayRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.DeleteGatewayRequest buildPartial() { - com.google.cloud.apigateway.v1.DeleteGatewayRequest result = - new com.google.cloud.apigateway.v1.DeleteGatewayRequest(this); + com.google.cloud.apigateway.v1.DeleteGatewayRequest result = new com.google.cloud.apigateway.v1.DeleteGatewayRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.DeleteGatewayRequest) other); + return mergeFrom((com.google.cloud.apigateway.v1.DeleteGatewayRequest)other); } else { super.mergeFrom(other); return this; @@ -450,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.DeleteGatewayRequest other) { - if (other == com.google.cloud.apigateway.v1.DeleteGatewayRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.DeleteGatewayRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -475,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.apigateway.v1.DeleteGatewayRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.apigateway.v1.DeleteGatewayRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -513,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -538,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -618,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.DeleteGatewayRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.DeleteGatewayRequest) private static final com.google.cloud.apigateway.v1.DeleteGatewayRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.DeleteGatewayRequest(); } @@ -632,16 +573,16 @@ public static com.google.cloud.apigateway.v1.DeleteGatewayRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGatewayRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteGatewayRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteGatewayRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -656,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.DeleteGatewayRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequestOrBuilder.java new file mode 100644 index 0000000..0951fff --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/apigateway/v1/apigateway.proto + +package com.google.cloud.apigateway.v1; + +public interface DeleteGatewayRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.DeleteGatewayRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/*/gateways/*`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/*/gateways/*`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Gateway.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Gateway.java similarity index 66% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Gateway.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Gateway.java index 849befa..fe62e1b 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Gateway.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Gateway.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * A Gateway is an API-aware HTTP proxy. It performs API-Method and/or
  * API-Consumer specific actions based on an API Config such as authentication,
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.apigateway.v1.Gateway}
  */
-public final class Gateway extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Gateway extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.Gateway)
     GatewayOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Gateway.newBuilder() to construct.
   private Gateway(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Gateway() {
     name_ = "";
     displayName_ = "";
@@ -49,15 +31,16 @@ private Gateway() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Gateway();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Gateway(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,91 +60,82 @@ private Gateway(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 18:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 34:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labels_ =
-                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labels__ =
-                  input.readMessage(
-                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
+            break;
+          }
+          case 34: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            com.google.protobuf.MapEntry
+            labels__ = input.readMessage(
+                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labels_.getMutableMap().put(
+                labels__.getKey(), labels__.getValue());
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              apiConfig_ = s;
-              break;
-            }
-          case 56:
-            {
-              int rawValue = input.readEnum();
+            displayName_ = s;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              state_ = rawValue;
-              break;
-            }
-          case 74:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            apiConfig_ = s;
+            break;
+          }
+          case 56: {
+            int rawValue = input.readEnum();
 
-              defaultHostname_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            state_ = rawValue;
+            break;
+          }
+          case 74: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            defaultHostname_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -169,52 +143,48 @@ private Gateway(
     } 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.apigateway.v1.Apigateway
-        .internal_static_google_cloud_apigateway_v1_Gateway_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Gateway_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.apigateway.v1.Apigateway
-        .internal_static_google_cloud_apigateway_v1_Gateway_fieldAccessorTable
+    return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Gateway_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.apigateway.v1.Gateway.class,
-            com.google.cloud.apigateway.v1.Gateway.Builder.class);
+            com.google.cloud.apigateway.v1.Gateway.class, com.google.cloud.apigateway.v1.Gateway.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * All the possible Gateway states.
    * 
* * Protobuf enum {@code google.cloud.apigateway.v1.Gateway.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Gateway does not have a state yet.
      * 
@@ -223,8 +193,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Gateway is being created.
      * 
@@ -233,8 +201,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * Gateway is running and ready for requests.
      * 
@@ -243,8 +209,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(2), /** - * - * *
      * Gateway creation failed.
      * 
@@ -253,8 +217,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * Gateway is being deleted.
      * 
@@ -263,8 +225,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(4), /** - * - * *
      * Gateway is being updated.
      * 
@@ -276,8 +236,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Gateway does not have a state yet.
      * 
@@ -286,8 +244,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Gateway is being created.
      * 
@@ -296,8 +252,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * Gateway is running and ready for requests.
      * 
@@ -306,8 +260,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 2; /** - * - * *
      * Gateway creation failed.
      * 
@@ -316,8 +268,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * Gateway is being deleted.
      * 
@@ -326,8 +276,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; /** - * - * *
      * Gateway is being updated.
      * 
@@ -336,6 +284,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -360,55 +309,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return ACTIVE; - case 3: - return FAILED; - case 4: - return DELETING; - case 5: - return UPDATING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return ACTIVE; + case 3: return FAILED; + case 4: return DELETING; + case 5: return UPDATING; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.apigateway.v1.Gateway.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -428,15 +374,12 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. Resource name of the Gateway.
    * Format: projects/{project}/locations/{location}/gateways/{gateway}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -445,30 +388,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; } } /** - * - * *
    * Output only. Resource name of the Gateway.
    * Format: projects/{project}/locations/{location}/gateways/{gateway}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -479,15 +422,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -495,15 +434,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -511,14 +446,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -528,15 +460,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -544,15 +472,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -560,14 +484,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -575,23 +496,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -600,8 +522,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -610,22 +530,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
+
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -635,12 +555,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -650,16 +569,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -669,11 +588,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -683,14 +603,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int DISPLAY_NAME_FIELD_NUMBER = 5;
   private volatile java.lang.Object displayName_;
   /**
-   *
-   *
    * 
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ @java.lang.Override @@ -699,29 +616,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -732,17 +649,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int API_CONFIG_FIELD_NUMBER = 6; private volatile java.lang.Object apiConfig_; /** - * - * *
    * Required. Resource name of the API Config for this Gateway.
    * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
    * 
* - * - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The apiConfig. */ @java.lang.Override @@ -751,32 +663,30 @@ public java.lang.String getApiConfig() { 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(); apiConfig_ = s; return s; } } /** - * - * *
    * Required. Resource name of the API Config for this Gateway.
    * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
    * 
* - * - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for apiConfig. */ @java.lang.Override - public com.google.protobuf.ByteString getApiConfigBytes() { + public com.google.protobuf.ByteString + getApiConfigBytes() { java.lang.Object ref = apiConfig_; 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); apiConfig_ = b; return b; } else { @@ -787,55 +697,39 @@ public com.google.protobuf.ByteString getApiConfigBytes() { public static final int STATE_FIELD_NUMBER = 7; private int state_; /** - * - * *
    * Output only. The current state of the Gateway.
    * 
* - * - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The current state of the Gateway.
    * 
* - * - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.apigateway.v1.Gateway.State getState() { + @java.lang.Override public com.google.cloud.apigateway.v1.Gateway.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.apigateway.v1.Gateway.State result = - com.google.cloud.apigateway.v1.Gateway.State.valueOf(state_); + com.google.cloud.apigateway.v1.Gateway.State result = com.google.cloud.apigateway.v1.Gateway.State.valueOf(state_); return result == null ? com.google.cloud.apigateway.v1.Gateway.State.UNRECOGNIZED : result; } public static final int DEFAULT_HOSTNAME_FIELD_NUMBER = 9; private volatile java.lang.Object defaultHostname_; /** - * - * *
    * Output only. The default API Gateway host name of the form
    * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
    * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The defaultHostname. */ @java.lang.Override @@ -844,30 +738,30 @@ public java.lang.String getDefaultHostname() { 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(); defaultHostname_ = s; return s; } } /** - * - * *
    * Output only. The default API Gateway host name of the form
    * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
    * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for defaultHostname. */ @java.lang.Override - public com.google.protobuf.ByteString getDefaultHostnameBytes() { + public com.google.protobuf.ByteString + getDefaultHostnameBytes() { java.lang.Object ref = defaultHostname_; 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); defaultHostname_ = b; return b; } else { @@ -876,7 +770,6 @@ public com.google.protobuf.ByteString getDefaultHostnameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -888,7 +781,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_); } @@ -898,8 +792,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -925,20 +823,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); @@ -947,7 +847,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, apiConfig_); } if (state_ != com.google.cloud.apigateway.v1.Gateway.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultHostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, defaultHostname_); @@ -960,27 +861,34 @@ 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.apigateway.v1.Gateway)) { return super.equals(obj); } com.google.cloud.apigateway.v1.Gateway other = (com.google.cloud.apigateway.v1.Gateway) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getApiConfig().equals(other.getApiConfig())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getApiConfig() + .equals(other.getApiConfig())) return false; if (state_ != other.state_) return false; - if (!getDefaultHostname().equals(other.getDefaultHostname())) return false; + if (!getDefaultHostname() + .equals(other.getDefaultHostname())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1019,104 +927,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.Gateway parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.Gateway parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.Gateway 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.apigateway.v1.Gateway parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.Gateway 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.apigateway.v1.Gateway parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.Gateway 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.apigateway.v1.Gateway 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.apigateway.v1.Gateway 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.apigateway.v1.Gateway 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.apigateway.v1.Gateway 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.apigateway.v1.Gateway 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.apigateway.v1.Gateway 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.apigateway.v1.Gateway prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Gateway is an API-aware HTTP proxy. It performs API-Method and/or
    * API-Consumer specific actions based on an API Config such as authentication,
@@ -1125,43 +1026,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.apigateway.v1.Gateway}
    */
-  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.apigateway.v1.Gateway)
       com.google.cloud.apigateway.v1.GatewayOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.apigateway.v1.Apigateway
-          .internal_static_google_cloud_apigateway_v1_Gateway_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Gateway_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.apigateway.v1.Apigateway
-          .internal_static_google_cloud_apigateway_v1_Gateway_fieldAccessorTable
+      return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Gateway_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.apigateway.v1.Gateway.class,
-              com.google.cloud.apigateway.v1.Gateway.Builder.class);
+              com.google.cloud.apigateway.v1.Gateway.class, com.google.cloud.apigateway.v1.Gateway.Builder.class);
     }
 
     // Construct using com.google.cloud.apigateway.v1.Gateway.newBuilder()
@@ -1169,15 +1070,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();
@@ -1208,9 +1110,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.apigateway.v1.Apigateway
-          .internal_static_google_cloud_apigateway_v1_Gateway_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Gateway_descriptor;
     }
 
     @java.lang.Override
@@ -1229,8 +1131,7 @@ public com.google.cloud.apigateway.v1.Gateway build() {
 
     @java.lang.Override
     public com.google.cloud.apigateway.v1.Gateway buildPartial() {
-      com.google.cloud.apigateway.v1.Gateway result =
-          new com.google.cloud.apigateway.v1.Gateway(this);
+      com.google.cloud.apigateway.v1.Gateway result = new com.google.cloud.apigateway.v1.Gateway(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (createTimeBuilder_ == null) {
@@ -1257,39 +1158,38 @@ public com.google.cloud.apigateway.v1.Gateway 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.apigateway.v1.Gateway) {
-        return mergeFrom((com.google.cloud.apigateway.v1.Gateway) other);
+        return mergeFrom((com.google.cloud.apigateway.v1.Gateway)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1308,7 +1208,8 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.Gateway other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
         onChanged();
@@ -1352,26 +1253,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. Resource name of the Gateway.
      * Format: projects/{project}/locations/{location}/gateways/{gateway}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1380,22 +1278,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Resource name of the Gateway.
      * Format: projects/{project}/locations/{location}/gateways/{gateway}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1403,64 +1300,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Resource name of the Gateway.
      * Format: projects/{project}/locations/{location}/gateways/{gateway}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; } /** - * - * *
      * Output only. Resource name of the Gateway.
      * Format: projects/{project}/locations/{location}/gateways/{gateway}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Resource name of the Gateway.
      * Format: projects/{project}/locations/{location}/gateways/{gateway}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1468,58 +1358,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1535,17 +1406,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1556,21 +1424,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1582,15 +1446,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1604,64 +1464,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Created time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1669,58 +1513,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1736,17 +1561,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1757,21 +1579,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1783,15 +1601,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1805,84 +1619,69 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Updated time.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1894,8 +1693,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1904,22 +1701,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
+
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1929,12 +1726,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1944,17 +1740,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1964,11 +1759,12 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1976,12 +1772,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1990,21 +1785,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+    getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -2013,20 +1810,19 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableLabels().getMutableMap().put(key, value);
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -2035,27 +1831,28 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       return this;
     }
 
     private java.lang.Object displayName_ = "";
     /**
-     *
-     *
      * 
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2064,21 +1861,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2086,61 +1882,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -2148,23 +1937,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object apiConfig_ = ""; /** - * - * *
      * Required. Resource name of the API Config for this Gateway.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
      * 
* - * - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The apiConfig. */ public java.lang.String getApiConfig() { java.lang.Object ref = apiConfig_; 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(); apiConfig_ = s; return s; @@ -2173,24 +1958,21 @@ public java.lang.String getApiConfig() { } } /** - * - * *
      * Required. Resource name of the API Config for this Gateway.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
      * 
* - * - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for apiConfig. */ - public com.google.protobuf.ByteString getApiConfigBytes() { + public com.google.protobuf.ByteString + getApiConfigBytes() { java.lang.Object ref = apiConfig_; 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); apiConfig_ = b; return b; } else { @@ -2198,70 +1980,57 @@ public com.google.protobuf.ByteString getApiConfigBytes() { } } /** - * - * *
      * Required. Resource name of the API Config for this Gateway.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
      * 
* - * - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The apiConfig to set. * @return This builder for chaining. */ - public Builder setApiConfig(java.lang.String value) { + public Builder setApiConfig( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiConfig_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the API Config for this Gateway.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
      * 
* - * - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearApiConfig() { - + apiConfig_ = getDefaultInstance().getApiConfig(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the API Config for this Gateway.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
      * 
* - * - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for apiConfig to set. * @return This builder for chaining. */ - public Builder setApiConfigBytes(com.google.protobuf.ByteString value) { + public Builder setApiConfigBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiConfig_ = value; onChanged(); return this; @@ -2269,73 +2038,51 @@ public Builder setApiConfigBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The current state of the Gateway.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The current state of the Gateway.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The current state of the Gateway.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.apigateway.v1.Gateway.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.apigateway.v1.Gateway.State result = - com.google.cloud.apigateway.v1.Gateway.State.valueOf(state_); + com.google.cloud.apigateway.v1.Gateway.State result = com.google.cloud.apigateway.v1.Gateway.State.valueOf(state_); return result == null ? com.google.cloud.apigateway.v1.Gateway.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current state of the Gateway.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2343,26 +2090,21 @@ public Builder setState(com.google.cloud.apigateway.v1.Gateway.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The current state of the Gateway.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2370,21 +2112,19 @@ public Builder clearState() { private java.lang.Object defaultHostname_ = ""; /** - * - * *
      * Output only. The default API Gateway host name of the form
      * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
      * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The defaultHostname. */ public java.lang.String getDefaultHostname() { java.lang.Object ref = defaultHostname_; 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(); defaultHostname_ = s; return s; @@ -2393,22 +2133,21 @@ public java.lang.String getDefaultHostname() { } } /** - * - * *
      * Output only. The default API Gateway host name of the form
      * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
      * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for defaultHostname. */ - public com.google.protobuf.ByteString getDefaultHostnameBytes() { + public com.google.protobuf.ByteString + getDefaultHostnameBytes() { java.lang.Object ref = defaultHostname_; 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); defaultHostname_ = b; return b; } else { @@ -2416,71 +2155,64 @@ public com.google.protobuf.ByteString getDefaultHostnameBytes() { } } /** - * - * *
      * Output only. The default API Gateway host name of the form
      * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
      * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The defaultHostname to set. * @return This builder for chaining. */ - public Builder setDefaultHostname(java.lang.String value) { + public Builder setDefaultHostname( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + defaultHostname_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The default API Gateway host name of the form
      * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
      * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDefaultHostname() { - + defaultHostname_ = getDefaultInstance().getDefaultHostname(); onChanged(); return this; } /** - * - * *
      * Output only. The default API Gateway host name of the form
      * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
      * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for defaultHostname to set. * @return This builder for chaining. */ - public Builder setDefaultHostnameBytes(com.google.protobuf.ByteString value) { + public Builder setDefaultHostnameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultHostname_ = 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); } @@ -2490,12 +2222,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.Gateway) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.Gateway) private static final com.google.cloud.apigateway.v1.Gateway DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.Gateway(); } @@ -2504,16 +2236,16 @@ public static com.google.cloud.apigateway.v1.Gateway getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Gateway parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Gateway(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Gateway parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Gateway(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2528,4 +2260,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.Gateway getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayName.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayName.java similarity index 100% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayName.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayName.java diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayOrBuilder.java similarity index 71% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayOrBuilder.java index 9a8efa0..44e6dd1 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayOrBuilder.java @@ -1,134 +1,89 @@ -/* - * 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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface GatewayOrBuilder - extends +public interface GatewayOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.Gateway) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Resource name of the Gateway.
    * Format: projects/{project}/locations/{location}/gateways/{gateway}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Resource name of the Gateway.
    * Format: projects/{project}/locations/{location}/gateways/{gateway}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -139,8 +94,6 @@ public interface GatewayOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -149,13 +102,15 @@ public interface GatewayOrBuilder
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -164,10 +119,9 @@ public interface GatewayOrBuilder
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -178,13 +132,11 @@ public interface GatewayOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -193,117 +145,90 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Required. Resource name of the API Config for this Gateway.
    * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
    * 
* - * - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The apiConfig. */ java.lang.String getApiConfig(); /** - * - * *
    * Required. Resource name of the API Config for this Gateway.
    * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
    * 
* - * - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for apiConfig. */ - com.google.protobuf.ByteString getApiConfigBytes(); + com.google.protobuf.ByteString + getApiConfigBytes(); /** - * - * *
    * Output only. The current state of the Gateway.
    * 
* - * - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The current state of the Gateway.
    * 
* - * - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.apigateway.v1.Gateway.State getState(); /** - * - * *
    * Output only. The default API Gateway host name of the form
    * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
    * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The defaultHostname. */ java.lang.String getDefaultHostname(); /** - * - * *
    * Output only. The default API Gateway host name of the form
    * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
    * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for defaultHostname. */ - com.google.protobuf.ByteString getDefaultHostnameBytes(); + com.google.protobuf.ByteString + getDefaultHostnameBytes(); } diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequest.java similarity index 67% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequest.java index 29cb6b6..cb897f2 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Request message for ApiGatewayService.GetApiConfig
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.GetApiConfigRequest} */ -public final class GetApiConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetApiConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.GetApiConfigRequest) GetApiConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetApiConfigRequest.newBuilder() to construct. private GetApiConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetApiConfigRequest() { name_ = ""; view_ = 0; @@ -44,15 +26,16 @@ private GetApiConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetApiConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetApiConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private GetApiConfigRequest( 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 24: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - view_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + view_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,43 +80,40 @@ private GetApiConfigRequest( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.GetApiConfigRequest.class, - com.google.cloud.apigateway.v1.GetApiConfigRequest.Builder.class); + com.google.cloud.apigateway.v1.GetApiConfigRequest.class, com.google.cloud.apigateway.v1.GetApiConfigRequest.Builder.class); } /** - * - * *
    * Enum to control which fields should be included in the response.
    * 
* * Protobuf enum {@code google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView} */ - public enum ConfigView implements com.google.protobuf.ProtocolMessageEnum { - /** CONFIG_VIEW_UNSPECIFIED = 0; */ + public enum ConfigView + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CONFIG_VIEW_UNSPECIFIED = 0; + */ CONFIG_VIEW_UNSPECIFIED(0), /** - * - * *
      * Do not include configuration source files.
      * 
@@ -144,8 +122,6 @@ public enum ConfigView implements com.google.protobuf.ProtocolMessageEnum { */ BASIC(1), /** - * - * *
      * Include configuration source files.
      * 
@@ -156,11 +132,11 @@ public enum ConfigView implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** CONFIG_VIEW_UNSPECIFIED = 0; */ + /** + * CONFIG_VIEW_UNSPECIFIED = 0; + */ public static final int CONFIG_VIEW_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Do not include configuration source files.
      * 
@@ -169,8 +145,6 @@ public enum ConfigView implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BASIC_VALUE = 1; /** - * - * *
      * Include configuration source files.
      * 
@@ -179,6 +153,7 @@ public enum ConfigView implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FULL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -203,51 +178,49 @@ public static ConfigView valueOf(int value) { */ public static ConfigView forNumber(int value) { switch (value) { - case 0: - return CONFIG_VIEW_UNSPECIFIED; - case 1: - return BASIC; - case 2: - return FULL; - default: - return null; + case 0: return CONFIG_VIEW_UNSPECIFIED; + case 1: return BASIC; + case 2: return FULL; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ConfigView> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConfigView findValueByNumber(int number) { + return ConfigView.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ConfigView findValueByNumber(int number) { - return ConfigView.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.apigateway.v1.GetApiConfigRequest.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.GetApiConfigRequest.getDescriptor().getEnumTypes().get(0); } private static final ConfigView[] VALUES = values(); - public static ConfigView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ConfigView 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; @@ -267,17 +240,12 @@ private ConfigView(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*/configs/*`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -286,32 +254,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; } } /** - * - * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*/configs/*`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -322,45 +288,33 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VIEW_FIELD_NUMBER = 3; private int view_; /** - * - * *
    * Specifies which fields of the API Config are returned in the response.
    * Defaults to `BASIC` view.
    * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
    * Specifies which fields of the API Config are returned in the response.
    * Defaults to `BASIC` view.
    * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; - * * @return The view. */ - @java.lang.Override - public com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView getView() { + @java.lang.Override public com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView getView() { @SuppressWarnings("deprecation") - com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView result = - com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.valueOf(view_); - return result == null - ? com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.UNRECOGNIZED - : result; + com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView result = com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.valueOf(view_); + return result == null ? com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -372,13 +326,12 @@ 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_); } - if (view_ - != com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.CONFIG_VIEW_UNSPECIFIED - .getNumber()) { + if (view_ != com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.CONFIG_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(3, view_); } unknownFields.writeTo(output); @@ -393,10 +346,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (view_ - != com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.CONFIG_VIEW_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, view_); + if (view_ != com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.CONFIG_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, view_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -406,15 +358,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.apigateway.v1.GetApiConfigRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.GetApiConfigRequest other = - (com.google.cloud.apigateway.v1.GetApiConfigRequest) obj; + com.google.cloud.apigateway.v1.GetApiConfigRequest other = (com.google.cloud.apigateway.v1.GetApiConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (view_ != other.view_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -437,126 +389,117 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.GetApiConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.GetApiConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ApiGatewayService.GetApiConfig
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.GetApiConfigRequest} */ - 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.apigateway.v1.GetApiConfigRequest) com.google.cloud.apigateway.v1.GetApiConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.GetApiConfigRequest.class, - com.google.cloud.apigateway.v1.GetApiConfigRequest.Builder.class); + com.google.cloud.apigateway.v1.GetApiConfigRequest.class, com.google.cloud.apigateway.v1.GetApiConfigRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.GetApiConfigRequest.newBuilder() @@ -564,15 +507,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(); @@ -584,9 +528,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor; } @java.lang.Override @@ -605,8 +549,7 @@ public com.google.cloud.apigateway.v1.GetApiConfigRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.GetApiConfigRequest buildPartial() { - com.google.cloud.apigateway.v1.GetApiConfigRequest result = - new com.google.cloud.apigateway.v1.GetApiConfigRequest(this); + com.google.cloud.apigateway.v1.GetApiConfigRequest result = new com.google.cloud.apigateway.v1.GetApiConfigRequest(this); result.name_ = name_; result.view_ = view_; onBuilt(); @@ -617,39 +560,38 @@ public com.google.cloud.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.GetApiConfigRequest) other); + return mergeFrom((com.google.cloud.apigateway.v1.GetApiConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -657,8 +599,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.GetApiConfigRequest other) { - if (other == com.google.cloud.apigateway.v1.GetApiConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.GetApiConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -685,8 +626,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.apigateway.v1.GetApiConfigRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.apigateway.v1.GetApiConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -698,23 +638,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -723,24 +659,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -748,70 +681,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -819,71 +739,55 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
      * Specifies which fields of the API Config are returned in the response.
      * Defaults to `BASIC` view.
      * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
      * Specifies which fields of the API Config are returned in the response.
      * Defaults to `BASIC` view.
      * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; - * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ public Builder setViewValue(int value) { - + view_ = value; onChanged(); return this; } /** - * - * *
      * Specifies which fields of the API Config are returned in the response.
      * Defaults to `BASIC` view.
      * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; - * * @return The view. */ @java.lang.Override public com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView getView() { @SuppressWarnings("deprecation") - com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView result = - com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.valueOf(view_); - return result == null - ? com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.UNRECOGNIZED - : result; + com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView result = com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.valueOf(view_); + return result == null ? com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.UNRECOGNIZED : result; } /** - * - * *
      * Specifies which fields of the API Config are returned in the response.
      * Defaults to `BASIC` view.
      * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; - * * @param value The view to set. * @return This builder for chaining. */ @@ -891,32 +795,29 @@ public Builder setView(com.google.cloud.apigateway.v1.GetApiConfigRequest.Config if (value == null) { throw new NullPointerException(); } - + view_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Specifies which fields of the API Config are returned in the response.
      * Defaults to `BASIC` view.
      * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; - * * @return This builder for chaining. */ public Builder clearView() { - + view_ = 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); } @@ -926,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.GetApiConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.GetApiConfigRequest) private static final com.google.cloud.apigateway.v1.GetApiConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.GetApiConfigRequest(); } @@ -940,16 +841,16 @@ public static com.google.cloud.apigateway.v1.GetApiConfigRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetApiConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetApiConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetApiConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetApiConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -964,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.GetApiConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequestOrBuilder.java index 6415114..e63f259 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequestOrBuilder.java @@ -1,82 +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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface GetApiConfigRequestOrBuilder - extends +public interface GetApiConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.GetApiConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*/configs/*`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*/configs/*`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Specifies which fields of the API Config are returned in the response.
    * Defaults to `BASIC` view.
    * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; - * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** - * - * *
    * Specifies which fields of the API Config are returned in the response.
    * Defaults to `BASIC` view.
    * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; - * * @return The view. */ com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView getView(); diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequest.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequest.java similarity index 65% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequest.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequest.java index 72594c7..d2e3a6b 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Request message for ApiGatewayService.GetApi
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.GetApiRequest} */ -public final class GetApiRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetApiRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.GetApiRequest) GetApiRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetApiRequest.newBuilder() to construct. private GetApiRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetApiRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetApiRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetApiRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetApiRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetApiRequest( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_GetApiRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.GetApiRequest.class, - com.google.cloud.apigateway.v1.GetApiRequest.Builder.class); + com.google.cloud.apigateway.v1.GetApiRequest.class, com.google.cloud.apigateway.v1.GetApiRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,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; } } /** - * - * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,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_); } @@ -205,15 +178,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.apigateway.v1.GetApiRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.GetApiRequest other = - (com.google.cloud.apigateway.v1.GetApiRequest) obj; + com.google.cloud.apigateway.v1.GetApiRequest other = (com.google.cloud.apigateway.v1.GetApiRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.GetApiRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.GetApiRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.GetApiRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ApiGatewayService.GetApi
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.GetApiRequest} */ - 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.apigateway.v1.GetApiRequest) com.google.cloud.apigateway.v1.GetApiRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_GetApiRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.GetApiRequest.class, - com.google.cloud.apigateway.v1.GetApiRequest.Builder.class); + com.google.cloud.apigateway.v1.GetApiRequest.class, com.google.cloud.apigateway.v1.GetApiRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.GetApiRequest.newBuilder() @@ -360,15 +324,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(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.apigateway.v1.GetApiRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.GetApiRequest buildPartial() { - com.google.cloud.apigateway.v1.GetApiRequest result = - new com.google.cloud.apigateway.v1.GetApiRequest(this); + com.google.cloud.apigateway.v1.GetApiRequest result = new com.google.cloud.apigateway.v1.GetApiRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.GetApiRequest) other); + return mergeFrom((com.google.cloud.apigateway.v1.GetApiRequest)other); } else { super.mergeFrom(other); return this; @@ -486,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -511,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -536,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -616,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.GetApiRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.GetApiRequest) private static final com.google.cloud.apigateway.v1.GetApiRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.GetApiRequest(); } @@ -630,16 +573,16 @@ public static com.google.cloud.apigateway.v1.GetApiRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetApiRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetApiRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetApiRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetApiRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.GetApiRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequestOrBuilder.java new file mode 100644 index 0000000..7b673cd --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/apigateway/v1/apigateway.proto + +package com.google.cloud.apigateway.v1; + +public interface GetApiRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.GetApiRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/global/apis/*`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/global/apis/*`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequest.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequest.java similarity index 65% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequest.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequest.java index 1384ffc..55d4036 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Request message for ApiGatewayService.GetGateway
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.GetGatewayRequest} */ -public final class GetGatewayRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetGatewayRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.GetGatewayRequest) GetGatewayRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetGatewayRequest.newBuilder() to construct. private GetGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetGatewayRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetGatewayRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetGatewayRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetGatewayRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetGatewayRequest( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_GetGatewayRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.GetGatewayRequest.class, - com.google.cloud.apigateway.v1.GetGatewayRequest.Builder.class); + com.google.cloud.apigateway.v1.GetGatewayRequest.class, com.google.cloud.apigateway.v1.GetGatewayRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the form:
    * `projects/*/locations/*/gateways/*`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,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; } } /** - * - * *
    * Required. Resource name of the form:
    * `projects/*/locations/*/gateways/*`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,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_); } @@ -205,15 +178,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.apigateway.v1.GetGatewayRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.GetGatewayRequest other = - (com.google.cloud.apigateway.v1.GetGatewayRequest) obj; + com.google.cloud.apigateway.v1.GetGatewayRequest other = (com.google.cloud.apigateway.v1.GetGatewayRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.GetGatewayRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.GetGatewayRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.GetGatewayRequest 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.apigateway.v1.GetGatewayRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.GetGatewayRequest 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.apigateway.v1.GetGatewayRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.GetGatewayRequest 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.apigateway.v1.GetGatewayRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.GetGatewayRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.GetGatewayRequest 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.apigateway.v1.GetGatewayRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.GetGatewayRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.GetGatewayRequest 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.apigateway.v1.GetGatewayRequest 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.apigateway.v1.GetGatewayRequest 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.apigateway.v1.GetGatewayRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ApiGatewayService.GetGateway
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.GetGatewayRequest} */ - 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.apigateway.v1.GetGatewayRequest) com.google.cloud.apigateway.v1.GetGatewayRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_GetGatewayRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.GetGatewayRequest.class, - com.google.cloud.apigateway.v1.GetGatewayRequest.Builder.class); + com.google.cloud.apigateway.v1.GetGatewayRequest.class, com.google.cloud.apigateway.v1.GetGatewayRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.GetGatewayRequest.newBuilder() @@ -360,15 +324,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(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.apigateway.v1.GetGatewayRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.GetGatewayRequest buildPartial() { - com.google.cloud.apigateway.v1.GetGatewayRequest result = - new com.google.cloud.apigateway.v1.GetGatewayRequest(this); + com.google.cloud.apigateway.v1.GetGatewayRequest result = new com.google.cloud.apigateway.v1.GetGatewayRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.apigateway.v1.GetGatewayRequest 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.apigateway.v1.GetGatewayRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.GetGatewayRequest) other); + return mergeFrom((com.google.cloud.apigateway.v1.GetGatewayRequest)other); } else { super.mergeFrom(other); return this; @@ -450,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.GetGatewayRequest other) { - if (other == com.google.cloud.apigateway.v1.GetGatewayRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.GetGatewayRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -487,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -512,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -537,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -617,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.GetGatewayRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.GetGatewayRequest) private static final com.google.cloud.apigateway.v1.GetGatewayRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.GetGatewayRequest(); } @@ -631,16 +573,16 @@ public static com.google.cloud.apigateway.v1.GetGatewayRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGatewayRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetGatewayRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetGatewayRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.GetGatewayRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequestOrBuilder.java new file mode 100644 index 0000000..e811598 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/apigateway/v1/apigateway.proto + +package com.google.cloud.apigateway.v1; + +public interface GetGatewayRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.GetGatewayRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/*/gateways/*`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/*/gateways/*`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequest.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequest.java similarity index 69% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequest.java index 5f0f376..bcddd5f 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Request message for ApiGatewayService.ListApiConfigs
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListApiConfigsRequest} */ -public final class ListApiConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListApiConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ListApiConfigsRequest) ListApiConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListApiConfigsRequest.newBuilder() to construct. private ListApiConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListApiConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListApiConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListApiConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListApiConfigsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,42 @@ private ListApiConfigsRequest( 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; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,42 +99,35 @@ private ListApiConfigsRequest( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListApiConfigsRequest.class, - com.google.cloud.apigateway.v1.ListApiConfigsRequest.Builder.class); + com.google.cloud.apigateway.v1.ListApiConfigsRequest.class, com.google.cloud.apigateway.v1.ListApiConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent resource of the API Config, of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * - * 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 @@ -164,32 +136,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 resource of the API Config, of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * - * 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 { @@ -200,14 +170,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Page size.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -218,14 +185,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -234,29 +198,29 @@ 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; } } /** - * - * *
    * Page token.
    * 
* * 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 { @@ -267,14 +231,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Filter.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -283,29 +244,29 @@ public java.lang.String getFilter() { 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(); filter_ = s; return s; } } /** - * - * *
    * Filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -316,14 +277,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Order by parameters.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -332,29 +290,29 @@ public java.lang.String getOrderBy() { 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(); orderBy_ = s; return s; } } /** - * - * *
    * Order by parameters.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; 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); orderBy_ = b; return b; } else { @@ -363,7 +321,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -375,7 +332,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_); } @@ -404,7 +362,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_); @@ -423,19 +382,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigateway.v1.ListApiConfigsRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ListApiConfigsRequest other = - (com.google.cloud.apigateway.v1.ListApiConfigsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.apigateway.v1.ListApiConfigsRequest other = (com.google.cloud.apigateway.v1.ListApiConfigsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -463,126 +426,117 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.ListApiConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.ListApiConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ApiGatewayService.ListApiConfigs
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListApiConfigsRequest} */ - 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.apigateway.v1.ListApiConfigsRequest) com.google.cloud.apigateway.v1.ListApiConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListApiConfigsRequest.class, - com.google.cloud.apigateway.v1.ListApiConfigsRequest.Builder.class); + com.google.cloud.apigateway.v1.ListApiConfigsRequest.class, com.google.cloud.apigateway.v1.ListApiConfigsRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ListApiConfigsRequest.newBuilder() @@ -590,15 +544,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(); @@ -616,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor; } @java.lang.Override @@ -637,8 +592,7 @@ public com.google.cloud.apigateway.v1.ListApiConfigsRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.ListApiConfigsRequest buildPartial() { - com.google.cloud.apigateway.v1.ListApiConfigsRequest result = - new com.google.cloud.apigateway.v1.ListApiConfigsRequest(this); + com.google.cloud.apigateway.v1.ListApiConfigsRequest result = new com.google.cloud.apigateway.v1.ListApiConfigsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -652,39 +606,38 @@ public com.google.cloud.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.ListApiConfigsRequest) other); + return mergeFrom((com.google.cloud.apigateway.v1.ListApiConfigsRequest)other); } else { super.mergeFrom(other); return this; @@ -692,8 +645,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.ListApiConfigsRequest other) { - if (other == com.google.cloud.apigateway.v1.ListApiConfigsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.ListApiConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -732,8 +684,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.apigateway.v1.ListApiConfigsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.apigateway.v1.ListApiConfigsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -745,23 +696,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -770,24 +717,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -795,85 +739,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * 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 resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * 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 resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * - * 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_ ; /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -881,36 +809,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Page size.
      * 
* * 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; } /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -918,20 +840,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token.
      * 
* * 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; @@ -940,21 +860,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token.
      * 
* * 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 { @@ -962,61 +881,54 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token.
      * 
* * 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; } /** - * - * *
      * Page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Page token.
      * 
* * 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; @@ -1024,20 +936,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; @@ -1046,21 +956,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -1068,61 +977,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Filter.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Filter.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1130,20 +1032,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Order by parameters.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; 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(); orderBy_ = s; return s; @@ -1152,21 +1052,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Order by parameters.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; 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); orderBy_ = b; return b; } else { @@ -1174,68 +1073,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Order by parameters.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Order by parameters.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Order by parameters.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1245,12 +1137,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ListApiConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ListApiConfigsRequest) private static final com.google.cloud.apigateway.v1.ListApiConfigsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ListApiConfigsRequest(); } @@ -1259,16 +1151,16 @@ public static com.google.cloud.apigateway.v1.ListApiConfigsRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListApiConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListApiConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApiConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListApiConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1283,4 +1175,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ListApiConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequestOrBuilder.java index ee03aa7..962e39a 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequestOrBuilder.java @@ -1,144 +1,101 @@ -/* - * 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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface ListApiConfigsRequestOrBuilder - extends +public interface ListApiConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ListApiConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource of the API Config, of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * - * 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 resource of the API Config, of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * - * 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(); /** - * - * *
    * Page size.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Order by parameters.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Order by parameters.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponse.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponse.java similarity index 73% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponse.java index 6478012..19c9e25 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponse.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Response message for ApiGatewayService.ListApiConfigs
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListApiConfigsResponse} */ -public final class ListApiConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListApiConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ListApiConfigsResponse) ListApiConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListApiConfigsResponse.newBuilder() to construct. private ListApiConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListApiConfigsResponse() { apiConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListApiConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListApiConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListApiConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private ListApiConfigsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - apiConfigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - apiConfigs_.add( - input.readMessage( - com.google.cloud.apigateway.v1.ApiConfig.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + apiConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + apiConfigs_.add( + input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachableLocations_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachableLocations_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,7 +94,8 @@ private ListApiConfigsResponse( } 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)) { apiConfigs_ = java.util.Collections.unmodifiableList(apiConfigs_); @@ -127,27 +107,22 @@ private ListApiConfigsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListApiConfigsResponse.class, - com.google.cloud.apigateway.v1.ListApiConfigsResponse.Builder.class); + com.google.cloud.apigateway.v1.ListApiConfigsResponse.class, com.google.cloud.apigateway.v1.ListApiConfigsResponse.Builder.class); } public static final int API_CONFIGS_FIELD_NUMBER = 1; private java.util.List apiConfigs_; /** - * - * *
    * API Configs.
    * 
@@ -159,8 +134,6 @@ public java.util.List getApiConfigsLis return apiConfigs_; } /** - * - * *
    * API Configs.
    * 
@@ -168,13 +141,11 @@ public java.util.List getApiConfigsLis * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getApiConfigsOrBuilderList() { return apiConfigs_; } /** - * - * *
    * API Configs.
    * 
@@ -186,8 +157,6 @@ public int getApiConfigsCount() { return apiConfigs_.size(); } /** - * - * *
    * API Configs.
    * 
@@ -199,8 +168,6 @@ public com.google.cloud.apigateway.v1.ApiConfig getApiConfigs(int index) { return apiConfigs_.get(index); } /** - * - * *
    * API Configs.
    * 
@@ -208,21 +175,19 @@ public com.google.cloud.apigateway.v1.ApiConfig getApiConfigs(int index) { * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ @java.lang.Override - public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigsOrBuilder(int index) { + public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigsOrBuilder( + int index) { return apiConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -231,29 +196,29 @@ 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; } } /** - * - * *
    * Next page token.
    * 
* * 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 { @@ -264,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_LOCATIONS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachableLocations_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @return A list containing the unreachableLocations. */ - public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { + public com.google.protobuf.ProtocolStringList + getUnreachableLocationsList() { return unreachableLocations_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @return The count of unreachableLocations. */ public int getUnreachableLocationsCount() { return unreachableLocations_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ @@ -307,23 +264,20 @@ public java.lang.String getUnreachableLocations(int index) { return unreachableLocations_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableLocationsBytes(int index) { return unreachableLocations_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +289,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 < apiConfigs_.size(); i++) { output.writeMessage(1, apiConfigs_.get(i)); } @@ -343,8 +298,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachableLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, unreachableLocations_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachableLocations_.getRaw(i)); } unknownFields.writeTo(output); } @@ -356,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < apiConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, apiConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, apiConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -377,17 +332,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.apigateway.v1.ListApiConfigsResponse)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ListApiConfigsResponse other = - (com.google.cloud.apigateway.v1.ListApiConfigsResponse) obj; + com.google.cloud.apigateway.v1.ListApiConfigsResponse other = (com.google.cloud.apigateway.v1.ListApiConfigsResponse) obj; - if (!getApiConfigsList().equals(other.getApiConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableLocationsList().equals(other.getUnreachableLocationsList())) return false; + if (!getApiConfigsList() + .equals(other.getApiConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableLocationsList() + .equals(other.getUnreachableLocationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -415,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.ListApiConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.ListApiConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.apigateway.v1.ListApiConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for ApiGatewayService.ListApiConfigs
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListApiConfigsResponse} */ - 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.apigateway.v1.ListApiConfigsResponse) com.google.cloud.apigateway.v1.ListApiConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListApiConfigsResponse.class, - com.google.cloud.apigateway.v1.ListApiConfigsResponse.Builder.class); + com.google.cloud.apigateway.v1.ListApiConfigsResponse.class, com.google.cloud.apigateway.v1.ListApiConfigsResponse.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ListApiConfigsResponse.newBuilder() @@ -543,17 +490,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) { getApiConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -571,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor; } @java.lang.Override @@ -592,8 +539,7 @@ public com.google.cloud.apigateway.v1.ListApiConfigsResponse build() { @java.lang.Override public com.google.cloud.apigateway.v1.ListApiConfigsResponse buildPartial() { - com.google.cloud.apigateway.v1.ListApiConfigsResponse result = - new com.google.cloud.apigateway.v1.ListApiConfigsResponse(this); + com.google.cloud.apigateway.v1.ListApiConfigsResponse result = new com.google.cloud.apigateway.v1.ListApiConfigsResponse(this); int from_bitField0_ = bitField0_; if (apiConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -618,39 +564,38 @@ public com.google.cloud.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse) { - return mergeFrom((com.google.cloud.apigateway.v1.ListApiConfigsResponse) other); + return mergeFrom((com.google.cloud.apigateway.v1.ListApiConfigsResponse)other); } else { super.mergeFrom(other); return this; @@ -658,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.ListApiConfigsResponse other) { - if (other == com.google.cloud.apigateway.v1.ListApiConfigsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.ListApiConfigsResponse.getDefaultInstance()) return this; if (apiConfigsBuilder_ == null) { if (!other.apiConfigs_.isEmpty()) { if (apiConfigs_.isEmpty()) { @@ -678,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.ListApiConfigsResponse o apiConfigsBuilder_ = null; apiConfigs_ = other.apiConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - apiConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getApiConfigsFieldBuilder() - : null; + apiConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getApiConfigsFieldBuilder() : null; } else { apiConfigsBuilder_.addAllMessages(other.apiConfigs_); } @@ -720,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.apigateway.v1.ListApiConfigsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.apigateway.v1.ListApiConfigsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -730,29 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List apiConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureApiConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - apiConfigs_ = - new java.util.ArrayList(apiConfigs_); + apiConfigs_ = new java.util.ArrayList(apiConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig, - com.google.cloud.apigateway.v1.ApiConfig.Builder, - com.google.cloud.apigateway.v1.ApiConfigOrBuilder> - apiConfigsBuilder_; + com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder> apiConfigsBuilder_; /** - * - * *
      * API Configs.
      * 
@@ -767,8 +701,6 @@ public java.util.List getApiConfigsLis } } /** - * - * *
      * API Configs.
      * 
@@ -783,8 +715,6 @@ public int getApiConfigsCount() { } } /** - * - * *
      * API Configs.
      * 
@@ -799,15 +729,14 @@ public com.google.cloud.apigateway.v1.ApiConfig getApiConfigs(int index) { } } /** - * - * *
      * API Configs.
      * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - public Builder setApiConfigs(int index, com.google.cloud.apigateway.v1.ApiConfig value) { + public Builder setApiConfigs( + int index, com.google.cloud.apigateway.v1.ApiConfig value) { if (apiConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -821,8 +750,6 @@ public Builder setApiConfigs(int index, com.google.cloud.apigateway.v1.ApiConfig return this; } /** - * - * *
      * API Configs.
      * 
@@ -841,8 +768,6 @@ public Builder setApiConfigs( return this; } /** - * - * *
      * API Configs.
      * 
@@ -863,15 +788,14 @@ public Builder addApiConfigs(com.google.cloud.apigateway.v1.ApiConfig value) { return this; } /** - * - * *
      * API Configs.
      * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - public Builder addApiConfigs(int index, com.google.cloud.apigateway.v1.ApiConfig value) { + public Builder addApiConfigs( + int index, com.google.cloud.apigateway.v1.ApiConfig value) { if (apiConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -885,15 +809,14 @@ public Builder addApiConfigs(int index, com.google.cloud.apigateway.v1.ApiConfig return this; } /** - * - * *
      * API Configs.
      * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - public Builder addApiConfigs(com.google.cloud.apigateway.v1.ApiConfig.Builder builderForValue) { + public Builder addApiConfigs( + com.google.cloud.apigateway.v1.ApiConfig.Builder builderForValue) { if (apiConfigsBuilder_ == null) { ensureApiConfigsIsMutable(); apiConfigs_.add(builderForValue.build()); @@ -904,8 +827,6 @@ public Builder addApiConfigs(com.google.cloud.apigateway.v1.ApiConfig.Builder bu return this; } /** - * - * *
      * API Configs.
      * 
@@ -924,8 +845,6 @@ public Builder addApiConfigs( return this; } /** - * - * *
      * API Configs.
      * 
@@ -936,7 +855,8 @@ public Builder addAllApiConfigs( java.lang.Iterable values) { if (apiConfigsBuilder_ == null) { ensureApiConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, apiConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, apiConfigs_); onChanged(); } else { apiConfigsBuilder_.addAllMessages(values); @@ -944,8 +864,6 @@ public Builder addAllApiConfigs( return this; } /** - * - * *
      * API Configs.
      * 
@@ -963,8 +881,6 @@ public Builder clearApiConfigs() { return this; } /** - * - * *
      * API Configs.
      * 
@@ -982,44 +898,39 @@ public Builder removeApiConfigs(int index) { return this; } /** - * - * *
      * API Configs.
      * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - public com.google.cloud.apigateway.v1.ApiConfig.Builder getApiConfigsBuilder(int index) { + public com.google.cloud.apigateway.v1.ApiConfig.Builder getApiConfigsBuilder( + int index) { return getApiConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * API Configs.
      * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigsOrBuilder(int index) { + public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigsOrBuilder( + int index) { if (apiConfigsBuilder_ == null) { - return apiConfigs_.get(index); - } else { + return apiConfigs_.get(index); } else { return apiConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * API Configs.
      * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - public java.util.List - getApiConfigsOrBuilderList() { + public java.util.List + getApiConfigsOrBuilderList() { if (apiConfigsBuilder_ != null) { return apiConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1027,8 +938,6 @@ public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigsOrBuilder( } } /** - * - * *
      * API Configs.
      * 
@@ -1036,48 +945,42 @@ public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigsOrBuilder( * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ public com.google.cloud.apigateway.v1.ApiConfig.Builder addApiConfigsBuilder() { - return getApiConfigsFieldBuilder() - .addBuilder(com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance()); + return getApiConfigsFieldBuilder().addBuilder( + com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance()); } /** - * - * *
      * API Configs.
      * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - public com.google.cloud.apigateway.v1.ApiConfig.Builder addApiConfigsBuilder(int index) { - return getApiConfigsFieldBuilder() - .addBuilder(index, com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance()); + public com.google.cloud.apigateway.v1.ApiConfig.Builder addApiConfigsBuilder( + int index) { + return getApiConfigsFieldBuilder().addBuilder( + index, com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance()); } /** - * - * *
      * API Configs.
      * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - public java.util.List - getApiConfigsBuilderList() { + public java.util.List + getApiConfigsBuilderList() { return getApiConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig, - com.google.cloud.apigateway.v1.ApiConfig.Builder, - com.google.cloud.apigateway.v1.ApiConfigOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder> getApiConfigsFieldBuilder() { if (apiConfigsBuilder_ == null) { - apiConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig, - com.google.cloud.apigateway.v1.ApiConfig.Builder, - com.google.cloud.apigateway.v1.ApiConfigOrBuilder>( - apiConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + apiConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder>( + apiConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); apiConfigs_ = null; } return apiConfigsBuilder_; @@ -1085,20 +988,18 @@ public com.google.cloud.apigateway.v1.ApiConfig.Builder addApiConfigsBuilder(int private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Next page token.
      * 
* * 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; @@ -1107,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Next page token.
      * 
* * 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 { @@ -1129,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Next page token.
      * 
* * 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; } /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Next page token.
      * 
* * 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; } - private com.google.protobuf.LazyStringList unreachableLocations_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableLocationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(unreachableLocations_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @return A list containing the unreachableLocations. */ - public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { + public com.google.protobuf.ProtocolStringList + getUnreachableLocationsList() { return unreachableLocations_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @return The count of unreachableLocations. */ public int getUnreachableLocationsCount() { return unreachableLocations_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ @@ -1242,90 +1125,80 @@ public java.lang.String getUnreachableLocations(int index) { return unreachableLocations_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableLocationsBytes(int index) { return unreachableLocations_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param index The index to set the value at. * @param value The unreachableLocations to set. * @return This builder for chaining. */ - public Builder setUnreachableLocations(int index, java.lang.String value) { + public Builder setUnreachableLocations( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); unreachableLocations_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param value The unreachableLocations to add. * @return This builder for chaining. */ - public Builder addUnreachableLocations(java.lang.String value) { + public Builder addUnreachableLocations( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); unreachableLocations_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param values The unreachableLocations to add. * @return This builder for chaining. */ - public Builder addAllUnreachableLocations(java.lang.Iterable values) { + public Builder addAllUnreachableLocations( + java.lang.Iterable values) { ensureUnreachableLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachableLocations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachableLocations_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @return This builder for chaining. */ public Builder clearUnreachableLocations() { @@ -1335,30 +1208,28 @@ public Builder clearUnreachableLocations() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param value The bytes of the unreachableLocations to add. * @return This builder for chaining. */ - public Builder addUnreachableLocationsBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableLocationsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableLocationsIsMutable(); unreachableLocations_.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); } @@ -1368,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ListApiConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ListApiConfigsResponse) private static final com.google.cloud.apigateway.v1.ListApiConfigsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ListApiConfigsResponse(); } @@ -1382,16 +1253,16 @@ public static com.google.cloud.apigateway.v1.ListApiConfigsResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListApiConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListApiConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApiConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListApiConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1406,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ListApiConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponseOrBuilder.java index a980e29..3278baf 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponseOrBuilder.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface ListApiConfigsResponseOrBuilder - extends +public interface ListApiConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ListApiConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * API Configs.
    * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - java.util.List getApiConfigsList(); + java.util.List + getApiConfigsList(); /** - * - * *
    * API Configs.
    * 
@@ -44,8 +25,6 @@ public interface ListApiConfigsResponseOrBuilder */ com.google.cloud.apigateway.v1.ApiConfig getApiConfigs(int index); /** - * - * *
    * API Configs.
    * 
@@ -54,100 +33,82 @@ public interface ListApiConfigsResponseOrBuilder */ int getApiConfigsCount(); /** - * - * *
    * API Configs.
    * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - java.util.List + java.util.List getApiConfigsOrBuilderList(); /** - * - * *
    * API Configs.
    * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigsOrBuilder(int index); + com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigsOrBuilder( + int index); /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @return A list containing the unreachableLocations. */ - java.util.List getUnreachableLocationsList(); + java.util.List + getUnreachableLocationsList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @return The count of unreachableLocations. */ int getUnreachableLocationsCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ java.lang.String getUnreachableLocations(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - com.google.protobuf.ByteString getUnreachableLocationsBytes(int index); + com.google.protobuf.ByteString + getUnreachableLocationsBytes(int index); } diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequest.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequest.java similarity index 69% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequest.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequest.java index 280344b..42c513a 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Request message for ApiGatewayService.ListApis
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListApisRequest} */ -public final class ListApisRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListApisRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ListApisRequest) ListApisRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListApisRequest.newBuilder() to construct. private ListApisRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListApisRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListApisRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListApisRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListApisRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,42 @@ private ListApisRequest( 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; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,42 +99,35 @@ private ListApisRequest( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApisRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListApisRequest.class, - com.google.cloud.apigateway.v1.ListApisRequest.Builder.class); + com.google.cloud.apigateway.v1.ListApisRequest.class, com.google.cloud.apigateway.v1.ListApisRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent resource of the API, of the form:
    * `projects/*/locations/global`
    * 
* - * - * 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 @@ -164,32 +136,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 resource of the API, of the form:
    * `projects/*/locations/global`
    * 
* - * - * 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 { @@ -200,14 +170,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Page size.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -218,14 +185,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -234,29 +198,29 @@ 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; } } /** - * - * *
    * Page token.
    * 
* * 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 { @@ -267,14 +231,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Filter.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -283,29 +244,29 @@ public java.lang.String getFilter() { 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(); filter_ = s; return s; } } /** - * - * *
    * Filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -316,14 +277,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Order by parameters.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -332,29 +290,29 @@ public java.lang.String getOrderBy() { 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(); orderBy_ = s; return s; } } /** - * - * *
    * Order by parameters.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; 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); orderBy_ = b; return b; } else { @@ -363,7 +321,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -375,7 +332,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_); } @@ -404,7 +362,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_); @@ -423,19 +382,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigateway.v1.ListApisRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ListApisRequest other = - (com.google.cloud.apigateway.v1.ListApisRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.apigateway.v1.ListApisRequest other = (com.google.cloud.apigateway.v1.ListApisRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -462,127 +425,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.ListApisRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.ListApisRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.ListApisRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ApiGatewayService.ListApis
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListApisRequest} */ - 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.apigateway.v1.ListApisRequest) com.google.cloud.apigateway.v1.ListApisRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApisRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListApisRequest.class, - com.google.cloud.apigateway.v1.ListApisRequest.Builder.class); + com.google.cloud.apigateway.v1.ListApisRequest.class, com.google.cloud.apigateway.v1.ListApisRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ListApisRequest.newBuilder() @@ -590,15 +544,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(); @@ -616,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor; } @java.lang.Override @@ -637,8 +592,7 @@ public com.google.cloud.apigateway.v1.ListApisRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.ListApisRequest buildPartial() { - com.google.cloud.apigateway.v1.ListApisRequest result = - new com.google.cloud.apigateway.v1.ListApisRequest(this); + com.google.cloud.apigateway.v1.ListApisRequest result = new com.google.cloud.apigateway.v1.ListApisRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -652,39 +606,38 @@ public com.google.cloud.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.ListApisRequest) other); + return mergeFrom((com.google.cloud.apigateway.v1.ListApisRequest)other); } else { super.mergeFrom(other); return this; @@ -743,23 +696,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * - * 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; @@ -768,24 +717,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * - * 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 { @@ -793,85 +739,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * - * 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 resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * - * 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 resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * - * 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_ ; /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -879,36 +809,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Page size.
      * 
* * 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; } /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -916,20 +840,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token.
      * 
* * 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; @@ -938,21 +860,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token.
      * 
* * 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 { @@ -960,61 +881,54 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token.
      * 
* * 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; } /** - * - * *
      * Page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Page token.
      * 
* * 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; @@ -1022,20 +936,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; @@ -1044,21 +956,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -1066,61 +977,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Filter.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Filter.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1128,20 +1032,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Order by parameters.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; 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(); orderBy_ = s; return s; @@ -1150,21 +1052,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Order by parameters.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; 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); orderBy_ = b; return b; } else { @@ -1172,68 +1073,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Order by parameters.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Order by parameters.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Order by parameters.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1243,12 +1137,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ListApisRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ListApisRequest) private static final com.google.cloud.apigateway.v1.ListApisRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ListApisRequest(); } @@ -1257,16 +1151,16 @@ public static com.google.cloud.apigateway.v1.ListApisRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListApisRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListApisRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApisRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListApisRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1281,4 +1175,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ListApisRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequestOrBuilder.java index 963f9c1..ca1c0a7 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequestOrBuilder.java @@ -1,144 +1,101 @@ -/* - * 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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface ListApisRequestOrBuilder - extends +public interface ListApisRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ListApisRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource of the API, of the form:
    * `projects/*/locations/global`
    * 
* - * - * 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 resource of the API, of the form:
    * `projects/*/locations/global`
    * 
* - * - * 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(); /** - * - * *
    * Page size.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Order by parameters.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Order by parameters.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponse.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponse.java similarity index 73% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponse.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponse.java index d85343f..2074143 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponse.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Response message for ApiGatewayService.ListApis
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListApisResponse} */ -public final class ListApisResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListApisResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ListApisResponse) ListApisResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListApisResponse.newBuilder() to construct. private ListApisResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListApisResponse() { apis_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListApisResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListApisResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListApisResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private ListApisResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - apis_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - apis_.add( - input.readMessage( - com.google.cloud.apigateway.v1.Api.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + apis_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + apis_.add( + input.readMessage(com.google.cloud.apigateway.v1.Api.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachableLocations_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachableLocations_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,7 +94,8 @@ private ListApisResponse( } 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)) { apis_ = java.util.Collections.unmodifiableList(apis_); @@ -127,27 +107,22 @@ private ListApisResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApisResponse_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListApisResponse.class, - com.google.cloud.apigateway.v1.ListApisResponse.Builder.class); + com.google.cloud.apigateway.v1.ListApisResponse.class, com.google.cloud.apigateway.v1.ListApisResponse.Builder.class); } public static final int APIS_FIELD_NUMBER = 1; private java.util.List apis_; /** - * - * *
    * APIs.
    * 
@@ -159,8 +134,6 @@ public java.util.List getApisList() { return apis_; } /** - * - * *
    * APIs.
    * 
@@ -168,13 +141,11 @@ public java.util.List getApisList() { * repeated .google.cloud.apigateway.v1.Api apis = 1; */ @java.lang.Override - public java.util.List + public java.util.List getApisOrBuilderList() { return apis_; } /** - * - * *
    * APIs.
    * 
@@ -186,8 +157,6 @@ public int getApisCount() { return apis_.size(); } /** - * - * *
    * APIs.
    * 
@@ -199,8 +168,6 @@ public com.google.cloud.apigateway.v1.Api getApis(int index) { return apis_.get(index); } /** - * - * *
    * APIs.
    * 
@@ -208,21 +175,19 @@ public com.google.cloud.apigateway.v1.Api getApis(int index) { * repeated .google.cloud.apigateway.v1.Api apis = 1; */ @java.lang.Override - public com.google.cloud.apigateway.v1.ApiOrBuilder getApisOrBuilder(int index) { + public com.google.cloud.apigateway.v1.ApiOrBuilder getApisOrBuilder( + int index) { return apis_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -231,29 +196,29 @@ 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; } } /** - * - * *
    * Next page token.
    * 
* * 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 { @@ -264,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_LOCATIONS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachableLocations_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @return A list containing the unreachableLocations. */ - public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { + public com.google.protobuf.ProtocolStringList + getUnreachableLocationsList() { return unreachableLocations_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @return The count of unreachableLocations. */ public int getUnreachableLocationsCount() { return unreachableLocations_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ @@ -307,23 +264,20 @@ public java.lang.String getUnreachableLocations(int index) { return unreachableLocations_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableLocationsBytes(int index) { return unreachableLocations_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +289,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 < apis_.size(); i++) { output.writeMessage(1, apis_.get(i)); } @@ -343,8 +298,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachableLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, unreachableLocations_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachableLocations_.getRaw(i)); } unknownFields.writeTo(output); } @@ -356,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < apis_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, apis_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, apis_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -377,17 +332,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.apigateway.v1.ListApisResponse)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ListApisResponse other = - (com.google.cloud.apigateway.v1.ListApisResponse) obj; + com.google.cloud.apigateway.v1.ListApisResponse other = (com.google.cloud.apigateway.v1.ListApisResponse) obj; - if (!getApisList().equals(other.getApisList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableLocationsList().equals(other.getUnreachableLocationsList())) return false; + if (!getApisList() + .equals(other.getApisList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableLocationsList() + .equals(other.getUnreachableLocationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -414,127 +371,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.ListApisResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.ListApisResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.ListApisResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for ApiGatewayService.ListApis
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListApisResponse} */ - 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.apigateway.v1.ListApisResponse) com.google.cloud.apigateway.v1.ListApisResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApisResponse_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListApisResponse.class, - com.google.cloud.apigateway.v1.ListApisResponse.Builder.class); + com.google.cloud.apigateway.v1.ListApisResponse.class, com.google.cloud.apigateway.v1.ListApisResponse.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ListApisResponse.newBuilder() @@ -542,17 +490,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) { getApisFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -570,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor; } @java.lang.Override @@ -591,8 +539,7 @@ public com.google.cloud.apigateway.v1.ListApisResponse build() { @java.lang.Override public com.google.cloud.apigateway.v1.ListApisResponse buildPartial() { - com.google.cloud.apigateway.v1.ListApisResponse result = - new com.google.cloud.apigateway.v1.ListApisResponse(this); + com.google.cloud.apigateway.v1.ListApisResponse result = new com.google.cloud.apigateway.v1.ListApisResponse(this); int from_bitField0_ = bitField0_; if (apisBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -617,39 +564,38 @@ public com.google.cloud.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse) { - return mergeFrom((com.google.cloud.apigateway.v1.ListApisResponse) other); + return mergeFrom((com.google.cloud.apigateway.v1.ListApisResponse)other); } else { super.mergeFrom(other); return this; @@ -657,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.ListApisResponse other) { - if (other == com.google.cloud.apigateway.v1.ListApisResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.ListApisResponse.getDefaultInstance()) return this; if (apisBuilder_ == null) { if (!other.apis_.isEmpty()) { if (apis_.isEmpty()) { @@ -677,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.ListApisResponse other) apisBuilder_ = null; apis_ = other.apis_; bitField0_ = (bitField0_ & ~0x00000001); - apisBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getApisFieldBuilder() - : null; + apisBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getApisFieldBuilder() : null; } else { apisBuilder_.addAllMessages(other.apis_); } @@ -728,28 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List apis_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureApisIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { apis_ = new java.util.ArrayList(apis_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.Api, - com.google.cloud.apigateway.v1.Api.Builder, - com.google.cloud.apigateway.v1.ApiOrBuilder> - apisBuilder_; + com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder> apisBuilder_; /** - * - * *
      * APIs.
      * 
@@ -764,8 +701,6 @@ public java.util.List getApisList() { } } /** - * - * *
      * APIs.
      * 
@@ -780,8 +715,6 @@ public int getApisCount() { } } /** - * - * *
      * APIs.
      * 
@@ -796,15 +729,14 @@ public com.google.cloud.apigateway.v1.Api getApis(int index) { } } /** - * - * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public Builder setApis(int index, com.google.cloud.apigateway.v1.Api value) { + public Builder setApis( + int index, com.google.cloud.apigateway.v1.Api value) { if (apisBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -818,15 +750,14 @@ public Builder setApis(int index, com.google.cloud.apigateway.v1.Api value) { return this; } /** - * - * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public Builder setApis(int index, com.google.cloud.apigateway.v1.Api.Builder builderForValue) { + public Builder setApis( + int index, com.google.cloud.apigateway.v1.Api.Builder builderForValue) { if (apisBuilder_ == null) { ensureApisIsMutable(); apis_.set(index, builderForValue.build()); @@ -837,8 +768,6 @@ public Builder setApis(int index, com.google.cloud.apigateway.v1.Api.Builder bui return this; } /** - * - * *
      * APIs.
      * 
@@ -859,15 +788,14 @@ public Builder addApis(com.google.cloud.apigateway.v1.Api value) { return this; } /** - * - * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public Builder addApis(int index, com.google.cloud.apigateway.v1.Api value) { + public Builder addApis( + int index, com.google.cloud.apigateway.v1.Api value) { if (apisBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -881,15 +809,14 @@ public Builder addApis(int index, com.google.cloud.apigateway.v1.Api value) { return this; } /** - * - * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public Builder addApis(com.google.cloud.apigateway.v1.Api.Builder builderForValue) { + public Builder addApis( + com.google.cloud.apigateway.v1.Api.Builder builderForValue) { if (apisBuilder_ == null) { ensureApisIsMutable(); apis_.add(builderForValue.build()); @@ -900,15 +827,14 @@ public Builder addApis(com.google.cloud.apigateway.v1.Api.Builder builderForValu return this; } /** - * - * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public Builder addApis(int index, com.google.cloud.apigateway.v1.Api.Builder builderForValue) { + public Builder addApis( + int index, com.google.cloud.apigateway.v1.Api.Builder builderForValue) { if (apisBuilder_ == null) { ensureApisIsMutable(); apis_.add(index, builderForValue.build()); @@ -919,8 +845,6 @@ public Builder addApis(int index, com.google.cloud.apigateway.v1.Api.Builder bui return this; } /** - * - * *
      * APIs.
      * 
@@ -931,7 +855,8 @@ public Builder addAllApis( java.lang.Iterable values) { if (apisBuilder_ == null) { ensureApisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, apis_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, apis_); onChanged(); } else { apisBuilder_.addAllMessages(values); @@ -939,8 +864,6 @@ public Builder addAllApis( return this; } /** - * - * *
      * APIs.
      * 
@@ -958,8 +881,6 @@ public Builder clearApis() { return this; } /** - * - * *
      * APIs.
      * 
@@ -977,44 +898,39 @@ public Builder removeApis(int index) { return this; } /** - * - * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public com.google.cloud.apigateway.v1.Api.Builder getApisBuilder(int index) { + public com.google.cloud.apigateway.v1.Api.Builder getApisBuilder( + int index) { return getApisFieldBuilder().getBuilder(index); } /** - * - * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public com.google.cloud.apigateway.v1.ApiOrBuilder getApisOrBuilder(int index) { + public com.google.cloud.apigateway.v1.ApiOrBuilder getApisOrBuilder( + int index) { if (apisBuilder_ == null) { - return apis_.get(index); - } else { + return apis_.get(index); } else { return apisBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public java.util.List - getApisOrBuilderList() { + public java.util.List + getApisOrBuilderList() { if (apisBuilder_ != null) { return apisBuilder_.getMessageOrBuilderList(); } else { @@ -1022,8 +938,6 @@ public com.google.cloud.apigateway.v1.ApiOrBuilder getApisOrBuilder(int index) { } } /** - * - * *
      * APIs.
      * 
@@ -1031,47 +945,42 @@ public com.google.cloud.apigateway.v1.ApiOrBuilder getApisOrBuilder(int index) { * repeated .google.cloud.apigateway.v1.Api apis = 1; */ public com.google.cloud.apigateway.v1.Api.Builder addApisBuilder() { - return getApisFieldBuilder() - .addBuilder(com.google.cloud.apigateway.v1.Api.getDefaultInstance()); + return getApisFieldBuilder().addBuilder( + com.google.cloud.apigateway.v1.Api.getDefaultInstance()); } /** - * - * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public com.google.cloud.apigateway.v1.Api.Builder addApisBuilder(int index) { - return getApisFieldBuilder() - .addBuilder(index, com.google.cloud.apigateway.v1.Api.getDefaultInstance()); + public com.google.cloud.apigateway.v1.Api.Builder addApisBuilder( + int index) { + return getApisFieldBuilder().addBuilder( + index, com.google.cloud.apigateway.v1.Api.getDefaultInstance()); } /** - * - * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public java.util.List getApisBuilderList() { + public java.util.List + getApisBuilderList() { return getApisFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.Api, - com.google.cloud.apigateway.v1.Api.Builder, - com.google.cloud.apigateway.v1.ApiOrBuilder> + com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder> getApisFieldBuilder() { if (apisBuilder_ == null) { - apisBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.Api, - com.google.cloud.apigateway.v1.Api.Builder, - com.google.cloud.apigateway.v1.ApiOrBuilder>( - apis_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + apisBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder>( + apis_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); apis_ = null; } return apisBuilder_; @@ -1079,20 +988,18 @@ public java.util.List getApisBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Next page token.
      * 
* * 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; @@ -1101,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Next page token.
      * 
* * 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 { @@ -1123,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Next page token.
      * 
* * 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; } /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Next page token.
      * 
* * 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; } - private com.google.protobuf.LazyStringList unreachableLocations_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableLocationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(unreachableLocations_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @return A list containing the unreachableLocations. */ - public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { + public com.google.protobuf.ProtocolStringList + getUnreachableLocationsList() { return unreachableLocations_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @return The count of unreachableLocations. */ public int getUnreachableLocationsCount() { return unreachableLocations_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ @@ -1236,90 +1125,80 @@ public java.lang.String getUnreachableLocations(int index) { return unreachableLocations_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableLocationsBytes(int index) { return unreachableLocations_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param index The index to set the value at. * @param value The unreachableLocations to set. * @return This builder for chaining. */ - public Builder setUnreachableLocations(int index, java.lang.String value) { + public Builder setUnreachableLocations( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); unreachableLocations_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param value The unreachableLocations to add. * @return This builder for chaining. */ - public Builder addUnreachableLocations(java.lang.String value) { + public Builder addUnreachableLocations( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); unreachableLocations_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param values The unreachableLocations to add. * @return This builder for chaining. */ - public Builder addAllUnreachableLocations(java.lang.Iterable values) { + public Builder addAllUnreachableLocations( + java.lang.Iterable values) { ensureUnreachableLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachableLocations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachableLocations_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @return This builder for chaining. */ public Builder clearUnreachableLocations() { @@ -1329,30 +1208,28 @@ public Builder clearUnreachableLocations() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param value The bytes of the unreachableLocations to add. * @return This builder for chaining. */ - public Builder addUnreachableLocationsBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableLocationsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableLocationsIsMutable(); unreachableLocations_.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); } @@ -1362,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ListApisResponse) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ListApisResponse) private static final com.google.cloud.apigateway.v1.ListApisResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ListApisResponse(); } @@ -1376,16 +1253,16 @@ public static com.google.cloud.apigateway.v1.ListApisResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListApisResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListApisResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApisResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListApisResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1400,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ListApisResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponseOrBuilder.java index 9dfee76..f62ad3d 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponseOrBuilder.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface ListApisResponseOrBuilder - extends +public interface ListApisResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ListApisResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * APIs.
    * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - java.util.List getApisList(); + java.util.List + getApisList(); /** - * - * *
    * APIs.
    * 
@@ -44,8 +25,6 @@ public interface ListApisResponseOrBuilder */ com.google.cloud.apigateway.v1.Api getApis(int index); /** - * - * *
    * APIs.
    * 
@@ -54,99 +33,82 @@ public interface ListApisResponseOrBuilder */ int getApisCount(); /** - * - * *
    * APIs.
    * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - java.util.List getApisOrBuilderList(); + java.util.List + getApisOrBuilderList(); /** - * - * *
    * APIs.
    * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - com.google.cloud.apigateway.v1.ApiOrBuilder getApisOrBuilder(int index); + com.google.cloud.apigateway.v1.ApiOrBuilder getApisOrBuilder( + int index); /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @return A list containing the unreachableLocations. */ - java.util.List getUnreachableLocationsList(); + java.util.List + getUnreachableLocationsList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @return The count of unreachableLocations. */ int getUnreachableLocationsCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ java.lang.String getUnreachableLocations(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - com.google.protobuf.ByteString getUnreachableLocationsBytes(int index); + com.google.protobuf.ByteString + getUnreachableLocationsBytes(int index); } diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequest.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequest.java similarity index 68% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequest.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequest.java index f8938e5..56599d2 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Request message for ApiGatewayService.ListGateways
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListGatewaysRequest} */ -public final class ListGatewaysRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGatewaysRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ListGatewaysRequest) ListGatewaysRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGatewaysRequest.newBuilder() to construct. private ListGatewaysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGatewaysRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListGatewaysRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGatewaysRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListGatewaysRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,46 +56,42 @@ private ListGatewaysRequest( 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; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,42 +99,35 @@ private ListGatewaysRequest( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListGatewaysRequest.class, - com.google.cloud.apigateway.v1.ListGatewaysRequest.Builder.class); + com.google.cloud.apigateway.v1.ListGatewaysRequest.class, com.google.cloud.apigateway.v1.ListGatewaysRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent resource of the Gateway, of the form:
    * `projects/*/locations/*`
    * 
* - * - * 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 @@ -164,32 +136,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 resource of the Gateway, of the form:
    * `projects/*/locations/*`
    * 
* - * - * 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 { @@ -200,14 +170,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Page size.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -218,14 +185,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -234,29 +198,29 @@ 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; } } /** - * - * *
    * Page token.
    * 
* * 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 { @@ -267,14 +231,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Filter.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -283,29 +244,29 @@ public java.lang.String getFilter() { 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(); filter_ = s; return s; } } /** - * - * *
    * Filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -316,14 +277,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Order by parameters.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -332,29 +290,29 @@ public java.lang.String getOrderBy() { 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(); orderBy_ = s; return s; } } /** - * - * *
    * Order by parameters.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; 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); orderBy_ = b; return b; } else { @@ -363,7 +321,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -375,7 +332,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_); } @@ -404,7 +362,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_); @@ -423,19 +382,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigateway.v1.ListGatewaysRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ListGatewaysRequest other = - (com.google.cloud.apigateway.v1.ListGatewaysRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.apigateway.v1.ListGatewaysRequest other = (com.google.cloud.apigateway.v1.ListGatewaysRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -463,126 +426,117 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.ListGatewaysRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.ListGatewaysRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ApiGatewayService.ListGateways
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListGatewaysRequest} */ - 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.apigateway.v1.ListGatewaysRequest) com.google.cloud.apigateway.v1.ListGatewaysRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListGatewaysRequest.class, - com.google.cloud.apigateway.v1.ListGatewaysRequest.Builder.class); + com.google.cloud.apigateway.v1.ListGatewaysRequest.class, com.google.cloud.apigateway.v1.ListGatewaysRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ListGatewaysRequest.newBuilder() @@ -590,15 +544,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(); @@ -616,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor; } @java.lang.Override @@ -637,8 +592,7 @@ public com.google.cloud.apigateway.v1.ListGatewaysRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.ListGatewaysRequest buildPartial() { - com.google.cloud.apigateway.v1.ListGatewaysRequest result = - new com.google.cloud.apigateway.v1.ListGatewaysRequest(this); + com.google.cloud.apigateway.v1.ListGatewaysRequest result = new com.google.cloud.apigateway.v1.ListGatewaysRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -652,39 +606,38 @@ public com.google.cloud.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.ListGatewaysRequest) other); + return mergeFrom((com.google.cloud.apigateway.v1.ListGatewaysRequest)other); } else { super.mergeFrom(other); return this; @@ -692,8 +645,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.ListGatewaysRequest other) { - if (other == com.google.cloud.apigateway.v1.ListGatewaysRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.ListGatewaysRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -732,8 +684,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.apigateway.v1.ListGatewaysRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.apigateway.v1.ListGatewaysRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -745,23 +696,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -770,24 +717,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -795,85 +739,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * - * 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 resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * - * 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 resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * - * 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_ ; /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -881,36 +809,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Page size.
      * 
* * 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; } /** - * - * *
      * Page size.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -918,20 +840,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token.
      * 
* * 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; @@ -940,21 +860,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token.
      * 
* * 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 { @@ -962,61 +881,54 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token.
      * 
* * 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; } /** - * - * *
      * Page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Page token.
      * 
* * 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; @@ -1024,20 +936,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; @@ -1046,21 +956,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -1068,61 +977,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Filter.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Filter.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1130,20 +1032,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Order by parameters.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; 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(); orderBy_ = s; return s; @@ -1152,21 +1052,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Order by parameters.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; 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); orderBy_ = b; return b; } else { @@ -1174,68 +1073,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Order by parameters.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Order by parameters.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Order by parameters.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1245,12 +1137,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ListGatewaysRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ListGatewaysRequest) private static final com.google.cloud.apigateway.v1.ListGatewaysRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ListGatewaysRequest(); } @@ -1259,16 +1151,16 @@ public static com.google.cloud.apigateway.v1.ListGatewaysRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGatewaysRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListGatewaysRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGatewaysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListGatewaysRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1283,4 +1175,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ListGatewaysRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequestOrBuilder.java index 28ec390..9d50df6 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequestOrBuilder.java @@ -1,144 +1,101 @@ -/* - * 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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface ListGatewaysRequestOrBuilder - extends +public interface ListGatewaysRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ListGatewaysRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource of the Gateway, of the form:
    * `projects/*/locations/*`
    * 
* - * - * 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 resource of the Gateway, of the form:
    * `projects/*/locations/*`
    * 
* - * - * 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(); /** - * - * *
    * Page size.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Order by parameters.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Order by parameters.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponse.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponse.java similarity index 73% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponse.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponse.java index 510bb01..73222d7 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponse.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Response message for ApiGatewayService.ListGateways
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListGatewaysResponse} */ -public final class ListGatewaysResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListGatewaysResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ListGatewaysResponse) ListGatewaysResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListGatewaysResponse.newBuilder() to construct. private ListGatewaysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListGatewaysResponse() { gateways_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListGatewaysResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListGatewaysResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListGatewaysResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,41 +56,37 @@ private ListGatewaysResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - gateways_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - gateways_.add( - input.readMessage( - com.google.cloud.apigateway.v1.Gateway.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + gateways_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + gateways_.add( + input.readMessage(com.google.cloud.apigateway.v1.Gateway.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachableLocations_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachableLocations_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,7 +94,8 @@ private ListGatewaysResponse( } 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)) { gateways_ = java.util.Collections.unmodifiableList(gateways_); @@ -127,27 +107,22 @@ private ListGatewaysResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListGatewaysResponse.class, - com.google.cloud.apigateway.v1.ListGatewaysResponse.Builder.class); + com.google.cloud.apigateway.v1.ListGatewaysResponse.class, com.google.cloud.apigateway.v1.ListGatewaysResponse.Builder.class); } public static final int GATEWAYS_FIELD_NUMBER = 1; private java.util.List gateways_; /** - * - * *
    * Gateways.
    * 
@@ -159,8 +134,6 @@ public java.util.List getGatewaysList() return gateways_; } /** - * - * *
    * Gateways.
    * 
@@ -168,13 +141,11 @@ public java.util.List getGatewaysList() * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ @java.lang.Override - public java.util.List + public java.util.List getGatewaysOrBuilderList() { return gateways_; } /** - * - * *
    * Gateways.
    * 
@@ -186,8 +157,6 @@ public int getGatewaysCount() { return gateways_.size(); } /** - * - * *
    * Gateways.
    * 
@@ -199,8 +168,6 @@ public com.google.cloud.apigateway.v1.Gateway getGateways(int index) { return gateways_.get(index); } /** - * - * *
    * Gateways.
    * 
@@ -208,21 +175,19 @@ public com.google.cloud.apigateway.v1.Gateway getGateways(int index) { * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ @java.lang.Override - public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewaysOrBuilder(int index) { + public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewaysOrBuilder( + int index) { return gateways_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -231,29 +196,29 @@ 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; } } /** - * - * *
    * Next page token.
    * 
* * 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 { @@ -264,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_LOCATIONS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachableLocations_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @return A list containing the unreachableLocations. */ - public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { + public com.google.protobuf.ProtocolStringList + getUnreachableLocationsList() { return unreachableLocations_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @return The count of unreachableLocations. */ public int getUnreachableLocationsCount() { return unreachableLocations_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ @@ -307,23 +264,20 @@ public java.lang.String getUnreachableLocations(int index) { return unreachableLocations_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableLocationsBytes(int index) { return unreachableLocations_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +289,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 < gateways_.size(); i++) { output.writeMessage(1, gateways_.get(i)); } @@ -343,8 +298,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachableLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, unreachableLocations_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachableLocations_.getRaw(i)); } unknownFields.writeTo(output); } @@ -356,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < gateways_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, gateways_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, gateways_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -377,17 +332,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.apigateway.v1.ListGatewaysResponse)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ListGatewaysResponse other = - (com.google.cloud.apigateway.v1.ListGatewaysResponse) obj; + com.google.cloud.apigateway.v1.ListGatewaysResponse other = (com.google.cloud.apigateway.v1.ListGatewaysResponse) obj; - if (!getGatewaysList().equals(other.getGatewaysList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableLocationsList().equals(other.getUnreachableLocationsList())) return false; + if (!getGatewaysList() + .equals(other.getGatewaysList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableLocationsList() + .equals(other.getUnreachableLocationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -415,126 +372,117 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.ListGatewaysResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.ListGatewaysResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for ApiGatewayService.ListGateways
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListGatewaysResponse} */ - 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.apigateway.v1.ListGatewaysResponse) com.google.cloud.apigateway.v1.ListGatewaysResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListGatewaysResponse.class, - com.google.cloud.apigateway.v1.ListGatewaysResponse.Builder.class); + com.google.cloud.apigateway.v1.ListGatewaysResponse.class, com.google.cloud.apigateway.v1.ListGatewaysResponse.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ListGatewaysResponse.newBuilder() @@ -542,17 +490,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) { getGatewaysFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -570,9 +518,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor; } @java.lang.Override @@ -591,8 +539,7 @@ public com.google.cloud.apigateway.v1.ListGatewaysResponse build() { @java.lang.Override public com.google.cloud.apigateway.v1.ListGatewaysResponse buildPartial() { - com.google.cloud.apigateway.v1.ListGatewaysResponse result = - new com.google.cloud.apigateway.v1.ListGatewaysResponse(this); + com.google.cloud.apigateway.v1.ListGatewaysResponse result = new com.google.cloud.apigateway.v1.ListGatewaysResponse(this); int from_bitField0_ = bitField0_; if (gatewaysBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -617,39 +564,38 @@ public com.google.cloud.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse) { - return mergeFrom((com.google.cloud.apigateway.v1.ListGatewaysResponse) other); + return mergeFrom((com.google.cloud.apigateway.v1.ListGatewaysResponse)other); } else { super.mergeFrom(other); return this; @@ -657,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.ListGatewaysResponse other) { - if (other == com.google.cloud.apigateway.v1.ListGatewaysResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.ListGatewaysResponse.getDefaultInstance()) return this; if (gatewaysBuilder_ == null) { if (!other.gateways_.isEmpty()) { if (gateways_.isEmpty()) { @@ -677,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.ListGatewaysResponse oth gatewaysBuilder_ = null; gateways_ = other.gateways_; bitField0_ = (bitField0_ & ~0x00000001); - gatewaysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGatewaysFieldBuilder() - : null; + gatewaysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getGatewaysFieldBuilder() : null; } else { gatewaysBuilder_.addAllMessages(other.gateways_); } @@ -719,8 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.apigateway.v1.ListGatewaysResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.apigateway.v1.ListGatewaysResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -729,28 +672,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List gateways_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureGatewaysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { gateways_ = new java.util.ArrayList(gateways_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.Gateway, - com.google.cloud.apigateway.v1.Gateway.Builder, - com.google.cloud.apigateway.v1.GatewayOrBuilder> - gatewaysBuilder_; + com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder> gatewaysBuilder_; /** - * - * *
      * Gateways.
      * 
@@ -765,8 +701,6 @@ public java.util.List getGatewaysList() } } /** - * - * *
      * Gateways.
      * 
@@ -781,8 +715,6 @@ public int getGatewaysCount() { } } /** - * - * *
      * Gateways.
      * 
@@ -797,15 +729,14 @@ public com.google.cloud.apigateway.v1.Gateway getGateways(int index) { } } /** - * - * *
      * Gateways.
      * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - public Builder setGateways(int index, com.google.cloud.apigateway.v1.Gateway value) { + public Builder setGateways( + int index, com.google.cloud.apigateway.v1.Gateway value) { if (gatewaysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -819,8 +750,6 @@ public Builder setGateways(int index, com.google.cloud.apigateway.v1.Gateway val return this; } /** - * - * *
      * Gateways.
      * 
@@ -839,8 +768,6 @@ public Builder setGateways( return this; } /** - * - * *
      * Gateways.
      * 
@@ -861,15 +788,14 @@ public Builder addGateways(com.google.cloud.apigateway.v1.Gateway value) { return this; } /** - * - * *
      * Gateways.
      * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - public Builder addGateways(int index, com.google.cloud.apigateway.v1.Gateway value) { + public Builder addGateways( + int index, com.google.cloud.apigateway.v1.Gateway value) { if (gatewaysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -883,15 +809,14 @@ public Builder addGateways(int index, com.google.cloud.apigateway.v1.Gateway val return this; } /** - * - * *
      * Gateways.
      * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - public Builder addGateways(com.google.cloud.apigateway.v1.Gateway.Builder builderForValue) { + public Builder addGateways( + com.google.cloud.apigateway.v1.Gateway.Builder builderForValue) { if (gatewaysBuilder_ == null) { ensureGatewaysIsMutable(); gateways_.add(builderForValue.build()); @@ -902,8 +827,6 @@ public Builder addGateways(com.google.cloud.apigateway.v1.Gateway.Builder builde return this; } /** - * - * *
      * Gateways.
      * 
@@ -922,8 +845,6 @@ public Builder addGateways( return this; } /** - * - * *
      * Gateways.
      * 
@@ -934,7 +855,8 @@ public Builder addAllGateways( java.lang.Iterable values) { if (gatewaysBuilder_ == null) { ensureGatewaysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gateways_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, gateways_); onChanged(); } else { gatewaysBuilder_.addAllMessages(values); @@ -942,8 +864,6 @@ public Builder addAllGateways( return this; } /** - * - * *
      * Gateways.
      * 
@@ -961,8 +881,6 @@ public Builder clearGateways() { return this; } /** - * - * *
      * Gateways.
      * 
@@ -980,44 +898,39 @@ public Builder removeGateways(int index) { return this; } /** - * - * *
      * Gateways.
      * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - public com.google.cloud.apigateway.v1.Gateway.Builder getGatewaysBuilder(int index) { + public com.google.cloud.apigateway.v1.Gateway.Builder getGatewaysBuilder( + int index) { return getGatewaysFieldBuilder().getBuilder(index); } /** - * - * *
      * Gateways.
      * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewaysOrBuilder(int index) { + public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewaysOrBuilder( + int index) { if (gatewaysBuilder_ == null) { - return gateways_.get(index); - } else { + return gateways_.get(index); } else { return gatewaysBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Gateways.
      * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - public java.util.List - getGatewaysOrBuilderList() { + public java.util.List + getGatewaysOrBuilderList() { if (gatewaysBuilder_ != null) { return gatewaysBuilder_.getMessageOrBuilderList(); } else { @@ -1025,8 +938,6 @@ public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewaysOrBuilder(int } } /** - * - * *
      * Gateways.
      * 
@@ -1034,47 +945,42 @@ public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewaysOrBuilder(int * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ public com.google.cloud.apigateway.v1.Gateway.Builder addGatewaysBuilder() { - return getGatewaysFieldBuilder() - .addBuilder(com.google.cloud.apigateway.v1.Gateway.getDefaultInstance()); + return getGatewaysFieldBuilder().addBuilder( + com.google.cloud.apigateway.v1.Gateway.getDefaultInstance()); } /** - * - * *
      * Gateways.
      * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - public com.google.cloud.apigateway.v1.Gateway.Builder addGatewaysBuilder(int index) { - return getGatewaysFieldBuilder() - .addBuilder(index, com.google.cloud.apigateway.v1.Gateway.getDefaultInstance()); + public com.google.cloud.apigateway.v1.Gateway.Builder addGatewaysBuilder( + int index) { + return getGatewaysFieldBuilder().addBuilder( + index, com.google.cloud.apigateway.v1.Gateway.getDefaultInstance()); } /** - * - * *
      * Gateways.
      * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - public java.util.List getGatewaysBuilderList() { + public java.util.List + getGatewaysBuilderList() { return getGatewaysFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.Gateway, - com.google.cloud.apigateway.v1.Gateway.Builder, - com.google.cloud.apigateway.v1.GatewayOrBuilder> + com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder> getGatewaysFieldBuilder() { if (gatewaysBuilder_ == null) { - gatewaysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.Gateway, - com.google.cloud.apigateway.v1.Gateway.Builder, - com.google.cloud.apigateway.v1.GatewayOrBuilder>( - gateways_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + gatewaysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder>( + gateways_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); gateways_ = null; } return gatewaysBuilder_; @@ -1082,20 +988,18 @@ public java.util.List getGateway private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Next page token.
      * 
* * 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; @@ -1104,21 +1008,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Next page token.
      * 
* * 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 { @@ -1126,112 +1029,95 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Next page token.
      * 
* * 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; } /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Next page token.
      * 
* * 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; } - private com.google.protobuf.LazyStringList unreachableLocations_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableLocationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(unreachableLocations_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @return A list containing the unreachableLocations. */ - public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { + public com.google.protobuf.ProtocolStringList + getUnreachableLocationsList() { return unreachableLocations_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @return The count of unreachableLocations. */ public int getUnreachableLocationsCount() { return unreachableLocations_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ @@ -1239,90 +1125,80 @@ public java.lang.String getUnreachableLocations(int index) { return unreachableLocations_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableLocationsBytes(int index) { return unreachableLocations_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param index The index to set the value at. * @param value The unreachableLocations to set. * @return This builder for chaining. */ - public Builder setUnreachableLocations(int index, java.lang.String value) { + public Builder setUnreachableLocations( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); unreachableLocations_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param value The unreachableLocations to add. * @return This builder for chaining. */ - public Builder addUnreachableLocations(java.lang.String value) { + public Builder addUnreachableLocations( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); unreachableLocations_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param values The unreachableLocations to add. * @return This builder for chaining. */ - public Builder addAllUnreachableLocations(java.lang.Iterable values) { + public Builder addAllUnreachableLocations( + java.lang.Iterable values) { ensureUnreachableLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachableLocations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachableLocations_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @return This builder for chaining. */ public Builder clearUnreachableLocations() { @@ -1332,30 +1208,28 @@ public Builder clearUnreachableLocations() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; - * * @param value The bytes of the unreachableLocations to add. * @return This builder for chaining. */ - public Builder addUnreachableLocationsBytes(com.google.protobuf.ByteString value) { + public Builder addUnreachableLocationsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableLocationsIsMutable(); unreachableLocations_.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); } @@ -1365,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ListGatewaysResponse) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ListGatewaysResponse) private static final com.google.cloud.apigateway.v1.ListGatewaysResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ListGatewaysResponse(); } @@ -1379,16 +1253,16 @@ public static com.google.cloud.apigateway.v1.ListGatewaysResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGatewaysResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListGatewaysResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGatewaysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListGatewaysResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1403,4 +1277,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ListGatewaysResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponseOrBuilder.java index 5ed40f6..2cb0c3c 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponseOrBuilder.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface ListGatewaysResponseOrBuilder - extends +public interface ListGatewaysResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ListGatewaysResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Gateways.
    * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - java.util.List getGatewaysList(); + java.util.List + getGatewaysList(); /** - * - * *
    * Gateways.
    * 
@@ -44,8 +25,6 @@ public interface ListGatewaysResponseOrBuilder */ com.google.cloud.apigateway.v1.Gateway getGateways(int index); /** - * - * *
    * Gateways.
    * 
@@ -54,100 +33,82 @@ public interface ListGatewaysResponseOrBuilder */ int getGatewaysCount(); /** - * - * *
    * Gateways.
    * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - java.util.List + java.util.List getGatewaysOrBuilderList(); /** - * - * *
    * Gateways.
    * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewaysOrBuilder(int index); + com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewaysOrBuilder( + int index); /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @return A list containing the unreachableLocations. */ - java.util.List getUnreachableLocationsList(); + java.util.List + getUnreachableLocationsList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @return The count of unreachableLocations. */ int getUnreachableLocationsCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ java.lang.String getUnreachableLocations(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - com.google.protobuf.ByteString getUnreachableLocationsBytes(int index); + com.google.protobuf.ByteString + getUnreachableLocationsBytes(int index); } diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/LocationName.java similarity index 100% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/LocationName.java diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadata.java similarity index 69% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadata.java index 32df3f3..deb1b8d 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadata.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -47,15 +29,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,90 +58,77 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: - { - requestedCancellation_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - case 66: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - diagnostics_ = - new java.util.ArrayList< - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic>(); - mutable_bitField0_ |= 0x00000001; - } - diagnostics_.add( - input.readMessage( - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.parser(), - extensionRegistry)); - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + case 48: { + + requestedCancellation_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + diagnostics_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + diagnostics_.add( + input.readMessage(com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -166,7 +136,8 @@ private OperationMetadata( } 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)) { diagnostics_ = java.util.Collections.unmodifiableList(diagnostics_); @@ -175,96 +146,79 @@ private OperationMetadata( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.OperationMetadata.class, - com.google.cloud.apigateway.v1.OperationMetadata.Builder.class); + com.google.cloud.apigateway.v1.OperationMetadata.class, com.google.cloud.apigateway.v1.OperationMetadata.Builder.class); } - public interface DiagnosticOrBuilder - extends + public interface DiagnosticOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.OperationMetadata.Diagnostic) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Location of the diagnostic.
      * 
* * string location = 1; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
      * Location of the diagnostic.
      * 
* * string location = 1; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); /** - * - * *
      * The diagnostic message.
      * 
* * string message = 2; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
      * The diagnostic message.
      * 
* * string message = 2; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); } /** - * - * *
    * Diagnostic information from configuration processing.
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.OperationMetadata.Diagnostic} */ - public static final class Diagnostic extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Diagnostic extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.OperationMetadata.Diagnostic) DiagnosticOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Diagnostic.newBuilder() to construct. private Diagnostic(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Diagnostic() { location_ = ""; message_ = ""; @@ -272,15 +226,16 @@ private Diagnostic() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Diagnostic(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Diagnostic( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -299,27 +254,25 @@ private Diagnostic( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - location_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + location_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + message_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -327,39 +280,34 @@ private Diagnostic( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.class, - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder.class); + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.class, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private volatile java.lang.Object location_; /** - * - * *
      * Location of the diagnostic.
      * 
* * string location = 1; - * * @return The location. */ @java.lang.Override @@ -368,29 +316,29 @@ public java.lang.String getLocation() { 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(); location_ = s; return s; } } /** - * - * *
      * Location of the diagnostic.
      * 
* * string location = 1; - * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; 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); location_ = b; return b; } else { @@ -401,14 +349,11 @@ public com.google.protobuf.ByteString getLocationBytes() { public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** - * - * *
      * The diagnostic message.
      * 
* * string message = 2; - * * @return The message. */ @java.lang.Override @@ -417,29 +362,29 @@ public java.lang.String getMessage() { 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(); message_ = s; return s; } } /** - * - * *
      * The diagnostic message.
      * 
* * string message = 2; - * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; 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); message_ = b; return b; } else { @@ -448,7 +393,6 @@ public com.google.protobuf.ByteString getMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -460,7 +404,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(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -490,16 +435,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.apigateway.v1.OperationMetadata.Diagnostic)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic other = - (com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic) obj; + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic other = (com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic) obj; - if (!getLocation().equals(other.getLocation())) return false; - if (!getMessage().equals(other.getMessage())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -521,94 +467,87 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic 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.apigateway.v1.OperationMetadata.Diagnostic 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.apigateway.v1.OperationMetadata.Diagnostic parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic 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.apigateway.v1.OperationMetadata.Diagnostic parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic 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.apigateway.v1.OperationMetadata.Diagnostic parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic 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.apigateway.v1.OperationMetadata.Diagnostic parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic 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.apigateway.v1.OperationMetadata.Diagnostic 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.apigateway.v1.OperationMetadata.Diagnostic 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.apigateway.v1.OperationMetadata.Diagnostic prototype) { + public static Builder newBuilder(com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic 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 @@ -618,32 +557,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Diagnostic information from configuration processing.
      * 
* * Protobuf type {@code google.cloud.apigateway.v1.OperationMetadata.Diagnostic} */ - 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.apigateway.v1.OperationMetadata.Diagnostic) com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.class, - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder.class); + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.class, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder.class); } // Construct using com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.newBuilder() @@ -651,15 +585,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(); @@ -671,14 +606,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor; } @java.lang.Override - public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic - getDefaultInstanceForType() { + public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic getDefaultInstanceForType() { return com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.getDefaultInstance(); } @@ -693,8 +627,7 @@ public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic build() { @java.lang.Override public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic buildPartial() { - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic result = - new com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic(this); + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic result = new com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic(this); result.location_ = location_; result.message_ = message_; onBuilt(); @@ -705,41 +638,38 @@ public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic 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) { + 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.apigateway.v1.OperationMetadata.Diagnostic) { - return mergeFrom((com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic) other); + return mergeFrom((com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic)other); } else { super.mergeFrom(other); return this; @@ -747,9 +677,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic other) { - if (other - == com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.getDefaultInstance()) return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); @@ -777,9 +705,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -791,20 +717,18 @@ public Builder mergeFrom( private java.lang.Object location_ = ""; /** - * - * *
        * Location of the diagnostic.
        * 
* * string location = 1; - * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; 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(); location_ = s; return s; @@ -813,21 +737,20 @@ public java.lang.String getLocation() { } } /** - * - * *
        * Location of the diagnostic.
        * 
* * string location = 1; - * * @return The bytes for location. */ - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; 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); location_ = b; return b; } else { @@ -835,61 +758,54 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
        * Location of the diagnostic.
        * 
* * string location = 1; - * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { + public Builder setLocation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** - * - * *
        * Location of the diagnostic.
        * 
* * string location = 1; - * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** - * - * *
        * Location of the diagnostic.
        * 
* * string location = 1; - * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; @@ -897,20 +813,18 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { private java.lang.Object message_ = ""; /** - * - * *
        * The diagnostic message.
        * 
* * string message = 2; - * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; 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(); message_ = s; return s; @@ -919,21 +833,20 @@ public java.lang.String getMessage() { } } /** - * - * *
        * The diagnostic message.
        * 
* * string message = 2; - * * @return The bytes for message. */ - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; 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); message_ = b; return b; } else { @@ -941,66 +854,58 @@ public com.google.protobuf.ByteString getMessageBytes() { } } /** - * - * *
        * The diagnostic message.
        * 
* * string message = 2; - * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage(java.lang.String value) { + public Builder setMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** - * - * *
        * The diagnostic message.
        * 
* * string message = 2; - * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** - * - * *
        * The diagnostic message.
        * 
* * string message = 2; - * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes(com.google.protobuf.ByteString value) { + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1013,13 +918,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.OperationMetadata.Diagnostic) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.OperationMetadata.Diagnostic) - private static final com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic - DEFAULT_INSTANCE; - + private static final com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic(); } @@ -1028,16 +932,16 @@ public static com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Diagnostic parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Diagnostic(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Diagnostic parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Diagnostic(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1052,20 +956,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1073,15 +974,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1089,14 +986,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1106,15 +1000,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -1122,15 +1012,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -1138,14 +1024,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -1155,14 +1038,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -1171,29 +1051,29 @@ public java.lang.String getTarget() { 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(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; 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); target_ = b; return b; } else { @@ -1204,14 +1084,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -1220,29 +1097,29 @@ public java.lang.String getVerb() { 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(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; 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); verb_ = b; return b; } else { @@ -1253,14 +1130,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -1269,29 +1143,29 @@ public java.lang.String getStatusMessage() { 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(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; 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); statusMessage_ = b; return b; } else { @@ -1302,8 +1176,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -1312,7 +1184,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1323,14 +1194,11 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -1339,29 +1207,29 @@ public java.lang.String getApiVersion() { 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(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; 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); apiVersion_ = b; return b; } else { @@ -1372,87 +1240,64 @@ public com.google.protobuf.ByteString getApiVersionBytes() { public static final int DIAGNOSTICS_FIELD_NUMBER = 8; private java.util.List diagnostics_; /** - * - * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getDiagnosticsList() { + public java.util.List getDiagnosticsList() { return diagnostics_; } /** - * - * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder> + public java.util.List getDiagnosticsOrBuilderList() { return diagnostics_; } /** - * - * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getDiagnosticsCount() { return diagnostics_.size(); } /** - * - * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic getDiagnostics(int index) { return diagnostics_.get(index); } /** - * - * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder - getDiagnosticsOrBuilder(int index) { + public com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder getDiagnosticsOrBuilder( + int index) { return diagnostics_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1464,7 +1309,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -1499,10 +1345,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -1514,13 +1362,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } for (int i = 0; i < diagnostics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, diagnostics_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, diagnostics_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1530,28 +1380,35 @@ 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.apigateway.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.OperationMetadata other = - (com.google.cloud.apigateway.v1.OperationMetadata) obj; + com.google.cloud.apigateway.v1.OperationMetadata other = (com.google.cloud.apigateway.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; - if (!getDiagnosticsList().equals(other.getDiagnosticsList())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; + if (!getDiagnosticsList() + .equals(other.getDiagnosticsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1578,7 +1435,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); if (getDiagnosticsCount() > 0) { @@ -1590,127 +1448,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.OperationMetadata 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.apigateway.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.OperationMetadata 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.apigateway.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.OperationMetadata 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.apigateway.v1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.OperationMetadata 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.apigateway.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.OperationMetadata 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.apigateway.v1.OperationMetadata 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.apigateway.v1.OperationMetadata 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.apigateway.v1.OperationMetadata 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; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.OperationMetadata} */ - 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.apigateway.v1.OperationMetadata) com.google.cloud.apigateway.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.OperationMetadata.class, - com.google.cloud.apigateway.v1.OperationMetadata.Builder.class); + com.google.cloud.apigateway.v1.OperationMetadata.class, com.google.cloud.apigateway.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.apigateway.v1.OperationMetadata.newBuilder() @@ -1718,17 +1567,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) { getDiagnosticsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1764,9 +1613,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -1785,8 +1634,7 @@ public com.google.cloud.apigateway.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.apigateway.v1.OperationMetadata buildPartial() { - com.google.cloud.apigateway.v1.OperationMetadata result = - new com.google.cloud.apigateway.v1.OperationMetadata(this); + com.google.cloud.apigateway.v1.OperationMetadata result = new com.google.cloud.apigateway.v1.OperationMetadata(this); int from_bitField0_ = bitField0_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -1820,39 +1668,38 @@ public com.google.cloud.apigateway.v1.OperationMetadata 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.apigateway.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.apigateway.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.apigateway.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -1860,8 +1707,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.OperationMetadata other) { - if (other == com.google.cloud.apigateway.v1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1905,10 +1751,9 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.OperationMetadata other) diagnosticsBuilder_ = null; diagnostics_ = other.diagnostics_; bitField0_ = (bitField0_ & ~0x00000001); - diagnosticsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDiagnosticsFieldBuilder() - : null; + diagnosticsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDiagnosticsFieldBuilder() : null; } else { diagnosticsBuilder_.addAllMessages(other.diagnostics_); } @@ -1942,63 +1787,43 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2014,17 +1839,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2035,21 +1857,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2061,15 +1879,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2083,64 +1897,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2148,35 +1946,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -2187,14 +1974,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -2210,16 +1994,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -2230,20 +2012,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -2255,14 +2034,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -2276,59 +2052,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -2336,20 +2101,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; 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(); target_ = s; return s; @@ -2358,21 +2121,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; 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); target_ = b; return b; } else { @@ -2380,61 +2142,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -2442,20 +2197,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; 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(); verb_ = s; return s; @@ -2464,21 +2217,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; 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); verb_ = b; return b; } else { @@ -2486,61 +2238,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -2548,20 +2293,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; 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(); statusMessage_ = s; return s; @@ -2570,21 +2313,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; 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); statusMessage_ = b; return b; } else { @@ -2592,70 +2334,61 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { + public Builder setStatusMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -2664,7 +2397,6 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -2672,8 +2404,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -2682,19 +2412,16 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -2703,11 +2430,10 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -2715,20 +2441,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; 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(); apiVersion_ = s; return s; @@ -2737,21 +2461,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; 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); apiVersion_ = b; return b; } else { @@ -2759,97 +2482,79 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - private java.util.List - diagnostics_ = java.util.Collections.emptyList(); - + private java.util.List diagnostics_ = + java.util.Collections.emptyList(); private void ensureDiagnosticsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - diagnostics_ = - new java.util.ArrayList( - diagnostics_); + diagnostics_ = new java.util.ArrayList(diagnostics_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic, - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder, - com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder> - diagnosticsBuilder_; + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder, com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder> diagnosticsBuilder_; /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getDiagnosticsList() { + public java.util.List getDiagnosticsList() { if (diagnosticsBuilder_ == null) { return java.util.Collections.unmodifiableList(diagnostics_); } else { @@ -2857,15 +2562,11 @@ private void ensureDiagnosticsIsMutable() { } } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getDiagnosticsCount() { if (diagnosticsBuilder_ == null) { @@ -2875,15 +2576,11 @@ public int getDiagnosticsCount() { } } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic getDiagnostics(int index) { if (diagnosticsBuilder_ == null) { @@ -2893,15 +2590,11 @@ public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic getDiagnostic } } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDiagnostics( int index, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic value) { @@ -2918,19 +2611,14 @@ public Builder setDiagnostics( return this; } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDiagnostics( - int index, - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder builderForValue) { + int index, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder builderForValue) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.set(index, builderForValue.build()); @@ -2941,18 +2629,13 @@ public Builder setDiagnostics( return this; } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addDiagnostics( - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic value) { + public Builder addDiagnostics(com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic value) { if (diagnosticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2966,15 +2649,11 @@ public Builder addDiagnostics( return this; } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addDiagnostics( int index, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic value) { @@ -2991,15 +2670,11 @@ public Builder addDiagnostics( return this; } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addDiagnostics( com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder builderForValue) { @@ -3013,19 +2688,14 @@ public Builder addDiagnostics( return this; } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addDiagnostics( - int index, - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder builderForValue) { + int index, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder builderForValue) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.add(index, builderForValue.build()); @@ -3036,22 +2706,18 @@ public Builder addDiagnostics( return this; } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllDiagnostics( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, diagnostics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, diagnostics_); onChanged(); } else { diagnosticsBuilder_.addAllMessages(values); @@ -3059,15 +2725,11 @@ public Builder addAllDiagnostics( return this; } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDiagnostics() { if (diagnosticsBuilder_ == null) { @@ -3080,15 +2742,11 @@ public Builder clearDiagnostics() { return this; } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeDiagnostics(int index) { if (diagnosticsBuilder_ == null) { @@ -3101,53 +2759,39 @@ public Builder removeDiagnostics(int index) { return this; } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder - getDiagnosticsBuilder(int index) { + public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder getDiagnosticsBuilder( + int index) { return getDiagnosticsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder - getDiagnosticsOrBuilder(int index) { + public com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder getDiagnosticsOrBuilder( + int index) { if (diagnosticsBuilder_ == null) { - return diagnostics_.get(index); - } else { + return diagnostics_.get(index); } else { return diagnosticsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - ? extends com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder> - getDiagnosticsOrBuilderList() { + public java.util.List + getDiagnosticsOrBuilderList() { if (diagnosticsBuilder_ != null) { return diagnosticsBuilder_.getMessageOrBuilderList(); } else { @@ -3155,75 +2799,56 @@ public Builder removeDiagnostics(int index) { } } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder - addDiagnosticsBuilder() { - return getDiagnosticsFieldBuilder() - .addBuilder( - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.getDefaultInstance()); + public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder addDiagnosticsBuilder() { + return getDiagnosticsFieldBuilder().addBuilder( + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.getDefaultInstance()); } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder - addDiagnosticsBuilder(int index) { - return getDiagnosticsFieldBuilder() - .addBuilder( - index, - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.getDefaultInstance()); + public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder addDiagnosticsBuilder( + int index) { + return getDiagnosticsFieldBuilder().addBuilder( + index, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.getDefaultInstance()); } /** - * - * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getDiagnosticsBuilderList() { + public java.util.List + getDiagnosticsBuilderList() { return getDiagnosticsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic, - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder, - com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder> + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder, com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder> getDiagnosticsFieldBuilder() { if (diagnosticsBuilder_ == null) { - diagnosticsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic, - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder, - com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder>( - diagnostics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + diagnosticsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder, com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder>( + diagnostics_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); diagnostics_ = null; } return diagnosticsBuilder_; } - @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); } @@ -3233,12 +2858,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.OperationMetadata) private static final com.google.cloud.apigateway.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.OperationMetadata(); } @@ -3247,16 +2872,16 @@ public static com.google.cloud.apigateway.v1.OperationMetadata getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3271,4 +2896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadataOrBuilder.java similarity index 69% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadataOrBuilder.java index 22b03c1..46aad14 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * 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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,95 +130,70 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); /** - * - * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getDiagnosticsList(); + java.util.List + getDiagnosticsList(); /** - * - * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic getDiagnostics(int index); /** - * - * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getDiagnosticsCount(); /** - * - * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getDiagnosticsOrBuilderList(); /** - * - * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder getDiagnosticsOrBuilder( int index); diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequest.java similarity index 68% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequest.java index 00e4f6f..4ed5274 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Request message for ApiGatewayService.UpdateApiConfig
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.UpdateApiConfigRequest} */ -public final class UpdateApiConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateApiConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.UpdateApiConfigRequest) UpdateApiConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateApiConfigRequest.newBuilder() to construct. private UpdateApiConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateApiConfigRequest() {} + private UpdateApiConfigRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateApiConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateApiConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateApiConfigRequest( case 0: done = true; break; - case 10: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.apigateway.v1.ApiConfig.Builder subBuilder = null; - if (apiConfig_ != null) { - subBuilder = apiConfig_.toBuilder(); - } - apiConfig_ = - input.readMessage( - com.google.cloud.apigateway.v1.ApiConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(apiConfig_); - apiConfig_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.apigateway.v1.ApiConfig.Builder subBuilder = null; + if (apiConfig_ != null) { + subBuilder = apiConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + apiConfig_ = input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(apiConfig_); + apiConfig_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,33 +92,29 @@ private UpdateApiConfigRequest( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.UpdateApiConfigRequest.class, - com.google.cloud.apigateway.v1.UpdateApiConfigRequest.Builder.class); + com.google.cloud.apigateway.v1.UpdateApiConfigRequest.class, com.google.cloud.apigateway.v1.UpdateApiConfigRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * ApiConfig resource by the update.
@@ -149,7 +124,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -157,8 +131,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * ApiConfig resource by the update.
@@ -168,7 +140,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return The updateMask. */ @java.lang.Override @@ -176,8 +147,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * ApiConfig resource by the update.
@@ -196,16 +165,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int API_CONFIG_FIELD_NUMBER = 2;
   private com.google.cloud.apigateway.v1.ApiConfig apiConfig_;
   /**
-   *
-   *
    * 
    * Required. API Config resource.
    * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the apiConfig field is set. */ @java.lang.Override @@ -213,34 +177,23 @@ public boolean hasApiConfig() { return apiConfig_ != null; } /** - * - * *
    * Required. API Config resource.
    * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The apiConfig. */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig getApiConfig() { - return apiConfig_ == null - ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() - : apiConfig_; + return apiConfig_ == null ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() : apiConfig_; } /** - * - * *
    * Required. API Config resource.
    * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigOrBuilder() { @@ -248,7 +201,6 @@ public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -277,10 +230,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (apiConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getApiConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getApiConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -290,21 +245,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.apigateway.v1.UpdateApiConfigRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.UpdateApiConfigRequest other = - (com.google.cloud.apigateway.v1.UpdateApiConfigRequest) obj; + com.google.cloud.apigateway.v1.UpdateApiConfigRequest other = (com.google.cloud.apigateway.v1.UpdateApiConfigRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasApiConfig() != other.hasApiConfig()) return false; if (hasApiConfig()) { - if (!getApiConfig().equals(other.getApiConfig())) return false; + if (!getApiConfig() + .equals(other.getApiConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -331,127 +287,117 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.UpdateApiConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.UpdateApiConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.apigateway.v1.UpdateApiConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ApiGatewayService.UpdateApiConfig
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.UpdateApiConfigRequest} */ - 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.apigateway.v1.UpdateApiConfigRequest) com.google.cloud.apigateway.v1.UpdateApiConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.UpdateApiConfigRequest.class, - com.google.cloud.apigateway.v1.UpdateApiConfigRequest.Builder.class); + com.google.cloud.apigateway.v1.UpdateApiConfigRequest.class, com.google.cloud.apigateway.v1.UpdateApiConfigRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.UpdateApiConfigRequest.newBuilder() @@ -459,15 +405,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(); @@ -487,9 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor; } @java.lang.Override @@ -508,8 +455,7 @@ public com.google.cloud.apigateway.v1.UpdateApiConfigRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.UpdateApiConfigRequest buildPartial() { - com.google.cloud.apigateway.v1.UpdateApiConfigRequest result = - new com.google.cloud.apigateway.v1.UpdateApiConfigRequest(this); + com.google.cloud.apigateway.v1.UpdateApiConfigRequest result = new com.google.cloud.apigateway.v1.UpdateApiConfigRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -528,39 +474,38 @@ public com.google.cloud.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.UpdateApiConfigRequest) other); + return mergeFrom((com.google.cloud.apigateway.v1.UpdateApiConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -568,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.UpdateApiConfigRequest other) { - if (other == com.google.cloud.apigateway.v1.UpdateApiConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.UpdateApiConfigRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -595,8 +539,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.apigateway.v1.UpdateApiConfigRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.apigateway.v1.UpdateApiConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,13 +551,8 @@ public Builder mergeFrom( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -624,15 +562,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -642,21 +577,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -681,8 +611,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -693,7 +621,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 1;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -704,8 +633,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -720,7 +647,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -732,8 +659,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -756,8 +681,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -769,13 +692,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -790,14 +711,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -809,17 +727,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
@@ -827,58 +742,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.cloud.apigateway.v1.ApiConfig apiConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.apigateway.v1.ApiConfig,
-            com.google.cloud.apigateway.v1.ApiConfig.Builder,
-            com.google.cloud.apigateway.v1.ApiConfigOrBuilder>
-        apiConfigBuilder_;
+        com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder> apiConfigBuilder_;
     /**
-     *
-     *
      * 
      * Required. API Config resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the apiConfig field is set. */ public boolean hasApiConfig() { return apiConfigBuilder_ != null || apiConfig_ != null; } /** - * - * *
      * Required. API Config resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The apiConfig. */ public com.google.cloud.apigateway.v1.ApiConfig getApiConfig() { if (apiConfigBuilder_ == null) { - return apiConfig_ == null - ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() - : apiConfig_; + return apiConfig_ == null ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() : apiConfig_; } else { return apiConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. API Config resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setApiConfig(com.google.cloud.apigateway.v1.ApiConfig value) { if (apiConfigBuilder_ == null) { @@ -894,17 +790,14 @@ public Builder setApiConfig(com.google.cloud.apigateway.v1.ApiConfig value) { return this; } /** - * - * *
      * Required. API Config resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setApiConfig(com.google.cloud.apigateway.v1.ApiConfig.Builder builderForValue) { + public Builder setApiConfig( + com.google.cloud.apigateway.v1.ApiConfig.Builder builderForValue) { if (apiConfigBuilder_ == null) { apiConfig_ = builderForValue.build(); onChanged(); @@ -915,23 +808,17 @@ public Builder setApiConfig(com.google.cloud.apigateway.v1.ApiConfig.Builder bui return this; } /** - * - * *
      * Required. API Config resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeApiConfig(com.google.cloud.apigateway.v1.ApiConfig value) { if (apiConfigBuilder_ == null) { if (apiConfig_ != null) { apiConfig_ = - com.google.cloud.apigateway.v1.ApiConfig.newBuilder(apiConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.apigateway.v1.ApiConfig.newBuilder(apiConfig_).mergeFrom(value).buildPartial(); } else { apiConfig_ = value; } @@ -943,15 +830,11 @@ public Builder mergeApiConfig(com.google.cloud.apigateway.v1.ApiConfig value) { return this; } /** - * - * *
      * Required. API Config resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearApiConfig() { if (apiConfigBuilder_ == null) { @@ -965,71 +848,55 @@ public Builder clearApiConfig() { return this; } /** - * - * *
      * Required. API Config resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.apigateway.v1.ApiConfig.Builder getApiConfigBuilder() { - + onChanged(); return getApiConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. API Config resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigOrBuilder() { if (apiConfigBuilder_ != null) { return apiConfigBuilder_.getMessageOrBuilder(); } else { - return apiConfig_ == null - ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() - : apiConfig_; + return apiConfig_ == null ? + com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() : apiConfig_; } } /** - * - * *
      * Required. API Config resource.
      * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig, - com.google.cloud.apigateway.v1.ApiConfig.Builder, - com.google.cloud.apigateway.v1.ApiConfigOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder> getApiConfigFieldBuilder() { if (apiConfigBuilder_ == null) { - apiConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig, - com.google.cloud.apigateway.v1.ApiConfig.Builder, - com.google.cloud.apigateway.v1.ApiConfigOrBuilder>( - getApiConfig(), getParentForChildren(), isClean()); + apiConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder>( + getApiConfig(), + getParentForChildren(), + isClean()); apiConfig_ = null; } return apiConfigBuilder_; } - @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); } @@ -1039,12 +906,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.UpdateApiConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.UpdateApiConfigRequest) private static final com.google.cloud.apigateway.v1.UpdateApiConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.UpdateApiConfigRequest(); } @@ -1053,16 +920,16 @@ public static com.google.cloud.apigateway.v1.UpdateApiConfigRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateApiConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateApiConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateApiConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateApiConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1077,4 +944,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.UpdateApiConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequestOrBuilder.java index f9d8b80..8d2be20 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface UpdateApiConfigRequestOrBuilder - extends +public interface UpdateApiConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.UpdateApiConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * ApiConfig resource by the update.
@@ -35,13 +17,10 @@ public interface UpdateApiConfigRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * ApiConfig resource by the update.
@@ -51,13 +30,10 @@ public interface UpdateApiConfigRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * ApiConfig resource by the update.
@@ -71,43 +47,29 @@ public interface UpdateApiConfigRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. API Config resource.
    * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the apiConfig field is set. */ boolean hasApiConfig(); /** - * - * *
    * Required. API Config resource.
    * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The apiConfig. */ com.google.cloud.apigateway.v1.ApiConfig getApiConfig(); /** - * - * *
    * Required. API Config resource.
    * 
* - * - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigOrBuilder(); } diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequest.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequest.java similarity index 72% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequest.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequest.java index 84a0c55..2d6a4d9 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Request message for ApiGatewayService.UpdateApi
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.UpdateApiRequest} */ -public final class UpdateApiRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateApiRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.UpdateApiRequest) UpdateApiRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateApiRequest.newBuilder() to construct. private UpdateApiRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateApiRequest() {} + private UpdateApiRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateApiRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateApiRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,43 +52,39 @@ private UpdateApiRequest( case 0: done = true; break; - case 10: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.apigateway.v1.Api.Builder subBuilder = null; - if (api_ != null) { - subBuilder = api_.toBuilder(); - } - api_ = - input.readMessage(com.google.cloud.apigateway.v1.Api.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(api_); - api_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.apigateway.v1.Api.Builder subBuilder = null; + if (api_ != null) { + subBuilder = api_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + api_ = input.readMessage(com.google.cloud.apigateway.v1.Api.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(api_); + api_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,33 +92,29 @@ private UpdateApiRequest( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_UpdateApiRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.UpdateApiRequest.class, - com.google.cloud.apigateway.v1.UpdateApiRequest.Builder.class); + com.google.cloud.apigateway.v1.UpdateApiRequest.class, com.google.cloud.apigateway.v1.UpdateApiRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * Api resource by the update.
@@ -148,7 +124,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -156,8 +131,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * Api resource by the update.
@@ -167,7 +140,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return The updateMask. */ @java.lang.Override @@ -175,8 +147,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * Api resource by the update.
@@ -195,14 +165,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int API_FIELD_NUMBER = 2;
   private com.google.cloud.apigateway.v1.Api api_;
   /**
-   *
-   *
    * 
    * Required. API resource.
    * 
* * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the api field is set. */ @java.lang.Override @@ -210,14 +177,11 @@ public boolean hasApi() { return api_ != null; } /** - * - * *
    * Required. API resource.
    * 
* * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The api. */ @java.lang.Override @@ -225,8 +189,6 @@ public com.google.cloud.apigateway.v1.Api getApi() { return api_ == null ? com.google.cloud.apigateway.v1.Api.getDefaultInstance() : api_; } /** - * - * *
    * Required. API resource.
    * 
@@ -239,7 +201,6 @@ public com.google.cloud.apigateway.v1.ApiOrBuilder getApiOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -268,10 +230,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (api_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getApi()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getApi()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -281,21 +245,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.apigateway.v1.UpdateApiRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.UpdateApiRequest other = - (com.google.cloud.apigateway.v1.UpdateApiRequest) obj; + com.google.cloud.apigateway.v1.UpdateApiRequest other = (com.google.cloud.apigateway.v1.UpdateApiRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasApi() != other.hasApi()) return false; if (hasApi()) { - if (!getApi().equals(other.getApi())) return false; + if (!getApi() + .equals(other.getApi())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -321,127 +286,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.UpdateApiRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.UpdateApiRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.UpdateApiRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ApiGatewayService.UpdateApi
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.UpdateApiRequest} */ - 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.apigateway.v1.UpdateApiRequest) com.google.cloud.apigateway.v1.UpdateApiRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_UpdateApiRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.UpdateApiRequest.class, - com.google.cloud.apigateway.v1.UpdateApiRequest.Builder.class); + com.google.cloud.apigateway.v1.UpdateApiRequest.class, com.google.cloud.apigateway.v1.UpdateApiRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.UpdateApiRequest.newBuilder() @@ -449,15 +405,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(); @@ -477,9 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor; } @java.lang.Override @@ -498,8 +455,7 @@ public com.google.cloud.apigateway.v1.UpdateApiRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.UpdateApiRequest buildPartial() { - com.google.cloud.apigateway.v1.UpdateApiRequest result = - new com.google.cloud.apigateway.v1.UpdateApiRequest(this); + com.google.cloud.apigateway.v1.UpdateApiRequest result = new com.google.cloud.apigateway.v1.UpdateApiRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -518,39 +474,38 @@ public com.google.cloud.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.UpdateApiRequest) other); + return mergeFrom((com.google.cloud.apigateway.v1.UpdateApiRequest)other); } else { super.mergeFrom(other); return this; @@ -558,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.UpdateApiRequest other) { - if (other == com.google.cloud.apigateway.v1.UpdateApiRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.UpdateApiRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -597,13 +551,8 @@ public Builder mergeFrom( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -613,15 +562,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -631,21 +577,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -670,8 +611,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -682,7 +621,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 1;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -693,8 +633,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -709,7 +647,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -721,8 +659,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -745,8 +681,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -758,13 +692,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -779,14 +711,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -798,17 +727,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
@@ -816,35 +742,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.cloud.apigateway.v1.Api api_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.apigateway.v1.Api,
-            com.google.cloud.apigateway.v1.Api.Builder,
-            com.google.cloud.apigateway.v1.ApiOrBuilder>
-        apiBuilder_;
+        com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder> apiBuilder_;
     /**
-     *
-     *
      * 
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the api field is set. */ public boolean hasApi() { return apiBuilder_ != null || api_ != null; } /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The api. */ public com.google.cloud.apigateway.v1.Api getApi() { @@ -855,14 +770,11 @@ public com.google.cloud.apigateway.v1.Api getApi() { } } /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setApi(com.google.cloud.apigateway.v1.Api value) { if (apiBuilder_ == null) { @@ -878,16 +790,14 @@ public Builder setApi(com.google.cloud.apigateway.v1.Api value) { return this; } /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setApi(com.google.cloud.apigateway.v1.Api.Builder builderForValue) { + public Builder setApi( + com.google.cloud.apigateway.v1.Api.Builder builderForValue) { if (apiBuilder_ == null) { api_ = builderForValue.build(); onChanged(); @@ -898,20 +808,17 @@ public Builder setApi(com.google.cloud.apigateway.v1.Api.Builder builderForValue return this; } /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeApi(com.google.cloud.apigateway.v1.Api value) { if (apiBuilder_ == null) { if (api_ != null) { api_ = - com.google.cloud.apigateway.v1.Api.newBuilder(api_).mergeFrom(value).buildPartial(); + com.google.cloud.apigateway.v1.Api.newBuilder(api_).mergeFrom(value).buildPartial(); } else { api_ = value; } @@ -923,14 +830,11 @@ public Builder mergeApi(com.google.cloud.apigateway.v1.Api value) { return this; } /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearApi() { if (apiBuilder_ == null) { @@ -944,66 +848,55 @@ public Builder clearApi() { return this; } /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.apigateway.v1.Api.Builder getApiBuilder() { - + onChanged(); return getApiFieldBuilder().getBuilder(); } /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.apigateway.v1.ApiOrBuilder getApiOrBuilder() { if (apiBuilder_ != null) { return apiBuilder_.getMessageOrBuilder(); } else { - return api_ == null ? com.google.cloud.apigateway.v1.Api.getDefaultInstance() : api_; + return api_ == null ? + com.google.cloud.apigateway.v1.Api.getDefaultInstance() : api_; } } /** - * - * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Api, - com.google.cloud.apigateway.v1.Api.Builder, - com.google.cloud.apigateway.v1.ApiOrBuilder> + com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder> getApiFieldBuilder() { if (apiBuilder_ == null) { - apiBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Api, - com.google.cloud.apigateway.v1.Api.Builder, - com.google.cloud.apigateway.v1.ApiOrBuilder>( - getApi(), getParentForChildren(), isClean()); + apiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder>( + getApi(), + getParentForChildren(), + isClean()); api_ = null; } return apiBuilder_; } - @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); } @@ -1013,12 +906,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.UpdateApiRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.UpdateApiRequest) private static final com.google.cloud.apigateway.v1.UpdateApiRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.UpdateApiRequest(); } @@ -1027,16 +920,16 @@ public static com.google.cloud.apigateway.v1.UpdateApiRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateApiRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateApiRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateApiRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateApiRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1051,4 +944,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.UpdateApiRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequestOrBuilder.java similarity index 77% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequestOrBuilder.java index c922207..1e072c3 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface UpdateApiRequestOrBuilder - extends +public interface UpdateApiRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.UpdateApiRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * Api resource by the update.
@@ -35,13 +17,10 @@ public interface UpdateApiRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * Api resource by the update.
@@ -51,13 +30,10 @@ public interface UpdateApiRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * Api resource by the update.
@@ -71,32 +47,24 @@ public interface UpdateApiRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. API resource.
    * 
* * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the api field is set. */ boolean hasApi(); /** - * - * *
    * Required. API resource.
    * 
* * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The api. */ com.google.cloud.apigateway.v1.Api getApi(); /** - * - * *
    * Required. API resource.
    * 
diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequest.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequest.java similarity index 68% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequest.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequest.java index 8d072d9..edcdd11 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** - * - * *
  * Request message for ApiGatewayService.UpdateGateway
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.UpdateGatewayRequest} */ -public final class UpdateGatewayRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateGatewayRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.UpdateGatewayRequest) UpdateGatewayRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateGatewayRequest.newBuilder() to construct. private UpdateGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateGatewayRequest() {} + private UpdateGatewayRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateGatewayRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateGatewayRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateGatewayRequest( case 0: done = true; break; - case 10: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.apigateway.v1.Gateway.Builder subBuilder = null; - if (gateway_ != null) { - subBuilder = gateway_.toBuilder(); - } - gateway_ = - input.readMessage( - com.google.cloud.apigateway.v1.Gateway.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gateway_); - gateway_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.apigateway.v1.Gateway.Builder subBuilder = null; + if (gateway_ != null) { + subBuilder = gateway_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + gateway_ = input.readMessage(com.google.cloud.apigateway.v1.Gateway.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gateway_); + gateway_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,33 +92,29 @@ private UpdateGatewayRequest( } 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.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.UpdateGatewayRequest.class, - com.google.cloud.apigateway.v1.UpdateGatewayRequest.Builder.class); + com.google.cloud.apigateway.v1.UpdateGatewayRequest.class, com.google.cloud.apigateway.v1.UpdateGatewayRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * Gateway resource by the update.
@@ -149,7 +124,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -157,8 +131,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * Gateway resource by the update.
@@ -168,7 +140,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return The updateMask. */ @java.lang.Override @@ -176,8 +147,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * Gateway resource by the update.
@@ -196,16 +165,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int GATEWAY_FIELD_NUMBER = 2;
   private com.google.cloud.apigateway.v1.Gateway gateway_;
   /**
-   *
-   *
    * 
    * Required. Gateway resource.
    * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gateway field is set. */ @java.lang.Override @@ -213,34 +177,23 @@ public boolean hasGateway() { return gateway_ != null; } /** - * - * *
    * Required. Gateway resource.
    * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The gateway. */ @java.lang.Override public com.google.cloud.apigateway.v1.Gateway getGateway() { - return gateway_ == null - ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() - : gateway_; + return gateway_ == null ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() : gateway_; } /** - * - * *
    * Required. Gateway resource.
    * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewayOrBuilder() { @@ -248,7 +201,6 @@ public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewayOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -277,10 +230,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (gateway_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGateway()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getGateway()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -290,21 +245,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.apigateway.v1.UpdateGatewayRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.UpdateGatewayRequest other = - (com.google.cloud.apigateway.v1.UpdateGatewayRequest) obj; + com.google.cloud.apigateway.v1.UpdateGatewayRequest other = (com.google.cloud.apigateway.v1.UpdateGatewayRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasGateway() != other.hasGateway()) return false; if (hasGateway()) { - if (!getGateway().equals(other.getGateway())) return false; + if (!getGateway() + .equals(other.getGateway())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -331,126 +287,117 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.UpdateGatewayRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigateway.v1.UpdateGatewayRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for ApiGatewayService.UpdateGateway
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.UpdateGatewayRequest} */ - 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.apigateway.v1.UpdateGatewayRequest) com.google.cloud.apigateway.v1.UpdateGatewayRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.UpdateGatewayRequest.class, - com.google.cloud.apigateway.v1.UpdateGatewayRequest.Builder.class); + com.google.cloud.apigateway.v1.UpdateGatewayRequest.class, com.google.cloud.apigateway.v1.UpdateGatewayRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.UpdateGatewayRequest.newBuilder() @@ -458,15 +405,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(); @@ -486,9 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway - .internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor; } @java.lang.Override @@ -507,8 +455,7 @@ public com.google.cloud.apigateway.v1.UpdateGatewayRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.UpdateGatewayRequest buildPartial() { - com.google.cloud.apigateway.v1.UpdateGatewayRequest result = - new com.google.cloud.apigateway.v1.UpdateGatewayRequest(this); + com.google.cloud.apigateway.v1.UpdateGatewayRequest result = new com.google.cloud.apigateway.v1.UpdateGatewayRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -527,39 +474,38 @@ public com.google.cloud.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.UpdateGatewayRequest) other); + return mergeFrom((com.google.cloud.apigateway.v1.UpdateGatewayRequest)other); } else { super.mergeFrom(other); return this; @@ -567,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.UpdateGatewayRequest other) { - if (other == com.google.cloud.apigateway.v1.UpdateGatewayRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigateway.v1.UpdateGatewayRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -594,8 +539,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.apigateway.v1.UpdateGatewayRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.apigateway.v1.UpdateGatewayRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -607,13 +551,8 @@ public Builder mergeFrom( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -623,15 +562,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -641,21 +577,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -680,8 +611,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -692,7 +621,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 1;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -703,8 +633,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -719,7 +647,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -731,8 +659,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -755,8 +681,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -768,13 +692,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -789,14 +711,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -808,17 +727,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
@@ -826,58 +742,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.cloud.apigateway.v1.Gateway gateway_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.apigateway.v1.Gateway,
-            com.google.cloud.apigateway.v1.Gateway.Builder,
-            com.google.cloud.apigateway.v1.GatewayOrBuilder>
-        gatewayBuilder_;
+        com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder> gatewayBuilder_;
     /**
-     *
-     *
      * 
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gateway field is set. */ public boolean hasGateway() { return gatewayBuilder_ != null || gateway_ != null; } /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The gateway. */ public com.google.cloud.apigateway.v1.Gateway getGateway() { if (gatewayBuilder_ == null) { - return gateway_ == null - ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() - : gateway_; + return gateway_ == null ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() : gateway_; } else { return gatewayBuilder_.getMessage(); } } /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setGateway(com.google.cloud.apigateway.v1.Gateway value) { if (gatewayBuilder_ == null) { @@ -893,17 +790,14 @@ public Builder setGateway(com.google.cloud.apigateway.v1.Gateway value) { return this; } /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setGateway(com.google.cloud.apigateway.v1.Gateway.Builder builderForValue) { + public Builder setGateway( + com.google.cloud.apigateway.v1.Gateway.Builder builderForValue) { if (gatewayBuilder_ == null) { gateway_ = builderForValue.build(); onChanged(); @@ -914,23 +808,17 @@ public Builder setGateway(com.google.cloud.apigateway.v1.Gateway.Builder builder return this; } /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeGateway(com.google.cloud.apigateway.v1.Gateway value) { if (gatewayBuilder_ == null) { if (gateway_ != null) { gateway_ = - com.google.cloud.apigateway.v1.Gateway.newBuilder(gateway_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.apigateway.v1.Gateway.newBuilder(gateway_).mergeFrom(value).buildPartial(); } else { gateway_ = value; } @@ -942,15 +830,11 @@ public Builder mergeGateway(com.google.cloud.apigateway.v1.Gateway value) { return this; } /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearGateway() { if (gatewayBuilder_ == null) { @@ -964,71 +848,55 @@ public Builder clearGateway() { return this; } /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.apigateway.v1.Gateway.Builder getGatewayBuilder() { - + onChanged(); return getGatewayFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewayOrBuilder() { if (gatewayBuilder_ != null) { return gatewayBuilder_.getMessageOrBuilder(); } else { - return gateway_ == null - ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() - : gateway_; + return gateway_ == null ? + com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() : gateway_; } } /** - * - * *
      * Required. Gateway resource.
      * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Gateway, - com.google.cloud.apigateway.v1.Gateway.Builder, - com.google.cloud.apigateway.v1.GatewayOrBuilder> + com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder> getGatewayFieldBuilder() { if (gatewayBuilder_ == null) { - gatewayBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Gateway, - com.google.cloud.apigateway.v1.Gateway.Builder, - com.google.cloud.apigateway.v1.GatewayOrBuilder>( - getGateway(), getParentForChildren(), isClean()); + gatewayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder>( + getGateway(), + getParentForChildren(), + isClean()); gateway_ = null; } return gatewayBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1038,12 +906,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.UpdateGatewayRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.UpdateGatewayRequest) private static final com.google.cloud.apigateway.v1.UpdateGatewayRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.UpdateGatewayRequest(); } @@ -1052,16 +920,16 @@ public static com.google.cloud.apigateway.v1.UpdateGatewayRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateGatewayRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateGatewayRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateGatewayRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1076,4 +944,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.UpdateGatewayRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequestOrBuilder.java index 97c5793..e528707 100644 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface UpdateGatewayRequestOrBuilder - extends +public interface UpdateGatewayRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.UpdateGatewayRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * Gateway resource by the update.
@@ -35,13 +17,10 @@ public interface UpdateGatewayRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * Gateway resource by the update.
@@ -51,13 +30,10 @@ public interface UpdateGatewayRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 1; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Field mask is used to specify the fields to be overwritten in the
    * Gateway resource by the update.
@@ -71,43 +47,29 @@ public interface UpdateGatewayRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. Gateway resource.
    * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the gateway field is set. */ boolean hasGateway(); /** - * - * *
    * Required. Gateway resource.
    * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The gateway. */ com.google.cloud.apigateway.v1.Gateway getGateway(); /** - * - * *
    * Required. Gateway resource.
    * 
* - * - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewayOrBuilder(); } diff --git a/proto-google-cloud-api-gateway-v1/src/main/proto/google/cloud/apigateway/v1/apigateway.proto b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/proto/google/cloud/apigateway/v1/apigateway.proto similarity index 100% rename from proto-google-cloud-api-gateway-v1/src/main/proto/google/cloud/apigateway/v1/apigateway.proto rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/proto/google/cloud/apigateway/v1/apigateway.proto diff --git a/proto-google-cloud-api-gateway-v1/src/main/proto/google/cloud/apigateway/v1/apigateway_service.proto b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/proto/google/cloud/apigateway/v1/apigateway_service.proto similarity index 100% rename from proto-google-cloud-api-gateway-v1/src/main/proto/google/cloud/apigateway/v1/apigateway_service.proto rename to owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/proto/google/cloud/apigateway/v1/apigateway_service.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 0000000..def9d53 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiGatewayServiceSettings; +import com.google.cloud.apigateway.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. + ApiGatewayServiceSettings apiGatewayServiceSettings = + ApiGatewayServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ApiGatewayServiceClient apiGatewayServiceClient = + ApiGatewayServiceClient.create(apiGatewayServiceSettings); + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 0000000..9c31c6b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiGatewayServiceSettings; + +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. + ApiGatewayServiceSettings apiGatewayServiceSettings = + ApiGatewayServiceSettings.newBuilder() + .setTransportChannelProvider( + ApiGatewayServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + ApiGatewayServiceClient apiGatewayServiceClient = + ApiGatewayServiceClient.create(apiGatewayServiceSettings); + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 0000000..b9bb6c5 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_create_setendpoint_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiGatewayServiceSettings; +import com.google.cloud.apigateway.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. + ApiGatewayServiceSettings apiGatewayServiceSettings = + ApiGatewayServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ApiGatewayServiceClient apiGatewayServiceClient = + ApiGatewayServiceClient.create(apiGatewayServiceSettings); + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApi.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApi.java new file mode 100644 index 0000000..99aa384 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApi.java @@ -0,0 +1,49 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_createapi_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.CreateApiRequest; +import com.google.cloud.apigateway.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateApi { + + public static void main(String[] args) throws Exception { + asyncCreateApi(); + } + + public static void asyncCreateApi() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + CreateApiRequest request = + CreateApiRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setApiId("apiId93021397") + .setApi(Api.newBuilder().build()) + .build(); + ApiFuture future = apiGatewayServiceClient.createApiCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_createapi_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApiLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApiLRO.java new file mode 100644 index 0000000..55c77d0 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApiLRO.java @@ -0,0 +1,50 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_createapi_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.CreateApiRequest; +import com.google.cloud.apigateway.v1.LocationName; +import com.google.cloud.apigateway.v1.OperationMetadata; + +public class AsyncCreateApiLRO { + + public static void main(String[] args) throws Exception { + asyncCreateApiLRO(); + } + + public static void asyncCreateApiLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + CreateApiRequest request = + CreateApiRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setApiId("apiId93021397") + .setApi(Api.newBuilder().build()) + .build(); + OperationFuture future = + apiGatewayServiceClient.createApiOperationCallable().futureCall(request); + // Do something. + Api response = future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_createapi_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApi.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApi.java new file mode 100644 index 0000000..63d6f19 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApi.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_createapi_sync] +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.CreateApiRequest; +import com.google.cloud.apigateway.v1.LocationName; + +public class SyncCreateApi { + + public static void main(String[] args) throws Exception { + syncCreateApi(); + } + + public static void syncCreateApi() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + CreateApiRequest request = + CreateApiRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setApiId("apiId93021397") + .setApi(Api.newBuilder().build()) + .build(); + Api response = apiGatewayServiceClient.createApiAsync(request).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_createapi_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiLocationnameApiString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiLocationnameApiString.java new file mode 100644 index 0000000..4826ac3 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiLocationnameApiString.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_createapi_locationnameapistring_sync] +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.LocationName; + +public class SyncCreateApiLocationnameApiString { + + public static void main(String[] args) throws Exception { + syncCreateApiLocationnameApiString(); + } + + public static void syncCreateApiLocationnameApiString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Api api = Api.newBuilder().build(); + String apiId = "apiId93021397"; + Api response = apiGatewayServiceClient.createApiAsync(parent, api, apiId).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_createapi_locationnameapistring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiStringApiString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiStringApiString.java new file mode 100644 index 0000000..d5a8d7f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiStringApiString.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_createapi_stringapistring_sync] +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.LocationName; + +public class SyncCreateApiStringApiString { + + public static void main(String[] args) throws Exception { + syncCreateApiStringApiString(); + } + + public static void syncCreateApiStringApiString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Api api = Api.newBuilder().build(); + String apiId = "apiId93021397"; + Api response = apiGatewayServiceClient.createApiAsync(parent, api, apiId).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_createapi_stringapistring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfig.java new file mode 100644 index 0000000..14da639 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfig.java @@ -0,0 +1,50 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_createapiconfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; +import com.google.cloud.apigateway.v1.CreateApiConfigRequest; +import com.google.longrunning.Operation; + +public class AsyncCreateApiConfig { + + public static void main(String[] args) throws Exception { + asyncCreateApiConfig(); + } + + public static void asyncCreateApiConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + CreateApiConfigRequest request = + CreateApiConfigRequest.newBuilder() + .setParent(ApiName.of("[PROJECT]", "[API]").toString()) + .setApiConfigId("apiConfigId-64952265") + .setApiConfig(ApiConfig.newBuilder().build()) + .build(); + ApiFuture future = + apiGatewayServiceClient.createApiConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_createapiconfig_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfigLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfigLRO.java new file mode 100644 index 0000000..3d3f520 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfigLRO.java @@ -0,0 +1,50 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_createapiconfig_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; +import com.google.cloud.apigateway.v1.CreateApiConfigRequest; +import com.google.cloud.apigateway.v1.OperationMetadata; + +public class AsyncCreateApiConfigLRO { + + public static void main(String[] args) throws Exception { + asyncCreateApiConfigLRO(); + } + + public static void asyncCreateApiConfigLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + CreateApiConfigRequest request = + CreateApiConfigRequest.newBuilder() + .setParent(ApiName.of("[PROJECT]", "[API]").toString()) + .setApiConfigId("apiConfigId-64952265") + .setApiConfig(ApiConfig.newBuilder().build()) + .build(); + OperationFuture future = + apiGatewayServiceClient.createApiConfigOperationCallable().futureCall(request); + // Do something. + ApiConfig response = future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_createapiconfig_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfig.java new file mode 100644 index 0000000..89ccd4f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfig.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_createapiconfig_sync] +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; +import com.google.cloud.apigateway.v1.CreateApiConfigRequest; + +public class SyncCreateApiConfig { + + public static void main(String[] args) throws Exception { + syncCreateApiConfig(); + } + + public static void syncCreateApiConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + CreateApiConfigRequest request = + CreateApiConfigRequest.newBuilder() + .setParent(ApiName.of("[PROJECT]", "[API]").toString()) + .setApiConfigId("apiConfigId-64952265") + .setApiConfig(ApiConfig.newBuilder().build()) + .build(); + ApiConfig response = apiGatewayServiceClient.createApiConfigAsync(request).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_createapiconfig_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigApinameApiconfigString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigApinameApiconfigString.java new file mode 100644 index 0000000..1447fab --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigApinameApiconfigString.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_createapiconfig_apinameapiconfigstring_sync] +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; + +public class SyncCreateApiConfigApinameApiconfigString { + + public static void main(String[] args) throws Exception { + syncCreateApiConfigApinameApiconfigString(); + } + + public static void syncCreateApiConfigApinameApiconfigString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + ApiName parent = ApiName.of("[PROJECT]", "[API]"); + ApiConfig apiConfig = ApiConfig.newBuilder().build(); + String apiConfigId = "apiConfigId-64952265"; + ApiConfig response = + apiGatewayServiceClient.createApiConfigAsync(parent, apiConfig, apiConfigId).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_createapiconfig_apinameapiconfigstring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigStringApiconfigString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigStringApiconfigString.java new file mode 100644 index 0000000..209a787 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigStringApiconfigString.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_createapiconfig_stringapiconfigstring_sync] +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; + +public class SyncCreateApiConfigStringApiconfigString { + + public static void main(String[] args) throws Exception { + syncCreateApiConfigStringApiconfigString(); + } + + public static void syncCreateApiConfigStringApiconfigString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + String parent = ApiName.of("[PROJECT]", "[API]").toString(); + ApiConfig apiConfig = ApiConfig.newBuilder().build(); + String apiConfigId = "apiConfigId-64952265"; + ApiConfig response = + apiGatewayServiceClient.createApiConfigAsync(parent, apiConfig, apiConfigId).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_createapiconfig_stringapiconfigstring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGateway.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGateway.java new file mode 100644 index 0000000..62f4847 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGateway.java @@ -0,0 +1,50 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_creategateway_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.CreateGatewayRequest; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateGateway { + + public static void main(String[] args) throws Exception { + asyncCreateGateway(); + } + + public static void asyncCreateGateway() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + CreateGatewayRequest request = + CreateGatewayRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setGatewayId("gatewayId-1354641793") + .setGateway(Gateway.newBuilder().build()) + .build(); + ApiFuture future = + apiGatewayServiceClient.createGatewayCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_creategateway_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGatewayLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGatewayLRO.java new file mode 100644 index 0000000..40058a8 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGatewayLRO.java @@ -0,0 +1,50 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_creategateway_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.CreateGatewayRequest; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.LocationName; +import com.google.cloud.apigateway.v1.OperationMetadata; + +public class AsyncCreateGatewayLRO { + + public static void main(String[] args) throws Exception { + asyncCreateGatewayLRO(); + } + + public static void asyncCreateGatewayLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + CreateGatewayRequest request = + CreateGatewayRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setGatewayId("gatewayId-1354641793") + .setGateway(Gateway.newBuilder().build()) + .build(); + OperationFuture future = + apiGatewayServiceClient.createGatewayOperationCallable().futureCall(request); + // Do something. + Gateway response = future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_creategateway_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGateway.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGateway.java new file mode 100644 index 0000000..287211e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGateway.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_creategateway_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.CreateGatewayRequest; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.LocationName; + +public class SyncCreateGateway { + + public static void main(String[] args) throws Exception { + syncCreateGateway(); + } + + public static void syncCreateGateway() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + CreateGatewayRequest request = + CreateGatewayRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setGatewayId("gatewayId-1354641793") + .setGateway(Gateway.newBuilder().build()) + .build(); + Gateway response = apiGatewayServiceClient.createGatewayAsync(request).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_creategateway_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayLocationnameGatewayString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayLocationnameGatewayString.java new file mode 100644 index 0000000..cb988ad --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayLocationnameGatewayString.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_creategateway_locationnamegatewaystring_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.LocationName; + +public class SyncCreateGatewayLocationnameGatewayString { + + public static void main(String[] args) throws Exception { + syncCreateGatewayLocationnameGatewayString(); + } + + public static void syncCreateGatewayLocationnameGatewayString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Gateway gateway = Gateway.newBuilder().build(); + String gatewayId = "gatewayId-1354641793"; + Gateway response = + apiGatewayServiceClient.createGatewayAsync(parent, gateway, gatewayId).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_creategateway_locationnamegatewaystring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayStringGatewayString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayStringGatewayString.java new file mode 100644 index 0000000..714b23d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayStringGatewayString.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_creategateway_stringgatewaystring_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.LocationName; + +public class SyncCreateGatewayStringGatewayString { + + public static void main(String[] args) throws Exception { + syncCreateGatewayStringGatewayString(); + } + + public static void syncCreateGatewayStringGatewayString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Gateway gateway = Gateway.newBuilder().build(); + String gatewayId = "gatewayId-1354641793"; + Gateway response = + apiGatewayServiceClient.createGatewayAsync(parent, gateway, gatewayId).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_creategateway_stringgatewaystring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApi.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApi.java new file mode 100644 index 0000000..6dd8838 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApi.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_deleteapi_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; +import com.google.cloud.apigateway.v1.DeleteApiRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteApi { + + public static void main(String[] args) throws Exception { + asyncDeleteApi(); + } + + public static void asyncDeleteApi() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + DeleteApiRequest request = + DeleteApiRequest.newBuilder() + .setName(ApiName.of("[PROJECT]", "[API]").toString()) + .build(); + ApiFuture future = apiGatewayServiceClient.deleteApiCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_deleteapi_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApiLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApiLRO.java new file mode 100644 index 0000000..fc6ece9 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApiLRO.java @@ -0,0 +1,48 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_deleteapi_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; +import com.google.cloud.apigateway.v1.DeleteApiRequest; +import com.google.cloud.apigateway.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteApiLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteApiLRO(); + } + + public static void asyncDeleteApiLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + DeleteApiRequest request = + DeleteApiRequest.newBuilder() + .setName(ApiName.of("[PROJECT]", "[API]").toString()) + .build(); + OperationFuture future = + apiGatewayServiceClient.deleteApiOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_deleteapi_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApi.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApi.java new file mode 100644 index 0000000..e49cd4b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApi.java @@ -0,0 +1,43 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_deleteapi_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; +import com.google.cloud.apigateway.v1.DeleteApiRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteApi { + + public static void main(String[] args) throws Exception { + syncDeleteApi(); + } + + public static void syncDeleteApi() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + DeleteApiRequest request = + DeleteApiRequest.newBuilder() + .setName(ApiName.of("[PROJECT]", "[API]").toString()) + .build(); + apiGatewayServiceClient.deleteApiAsync(request).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_deleteapi_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiApiname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiApiname.java new file mode 100644 index 0000000..4c2b9b2 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiApiname.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_deleteapi_apiname_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; +import com.google.protobuf.Empty; + +public class SyncDeleteApiApiname { + + public static void main(String[] args) throws Exception { + syncDeleteApiApiname(); + } + + public static void syncDeleteApiApiname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + ApiName name = ApiName.of("[PROJECT]", "[API]"); + apiGatewayServiceClient.deleteApiAsync(name).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_deleteapi_apiname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiString.java new file mode 100644 index 0000000..4b193dc --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiString.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_deleteapi_string_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; +import com.google.protobuf.Empty; + +public class SyncDeleteApiString { + + public static void main(String[] args) throws Exception { + syncDeleteApiString(); + } + + public static void syncDeleteApiString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + String name = ApiName.of("[PROJECT]", "[API]").toString(); + apiGatewayServiceClient.deleteApiAsync(name).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_deleteapi_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfig.java new file mode 100644 index 0000000..ea1137f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfig.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_deleteapiconfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.apigateway.v1.ApiConfigName; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.DeleteApiConfigRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteApiConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteApiConfig(); + } + + public static void asyncDeleteApiConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + DeleteApiConfigRequest request = + DeleteApiConfigRequest.newBuilder() + .setName(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .build(); + ApiFuture future = + apiGatewayServiceClient.deleteApiConfigCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_deleteapiconfig_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfigLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfigLRO.java new file mode 100644 index 0000000..978d358 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfigLRO.java @@ -0,0 +1,48 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_deleteapiconfig_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.apigateway.v1.ApiConfigName; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.DeleteApiConfigRequest; +import com.google.cloud.apigateway.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteApiConfigLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteApiConfigLRO(); + } + + public static void asyncDeleteApiConfigLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + DeleteApiConfigRequest request = + DeleteApiConfigRequest.newBuilder() + .setName(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .build(); + OperationFuture future = + apiGatewayServiceClient.deleteApiConfigOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_deleteapiconfig_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfig.java new file mode 100644 index 0000000..cc1fd5e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfig.java @@ -0,0 +1,43 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_deleteapiconfig_sync] +import com.google.cloud.apigateway.v1.ApiConfigName; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.DeleteApiConfigRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteApiConfig { + + public static void main(String[] args) throws Exception { + syncDeleteApiConfig(); + } + + public static void syncDeleteApiConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + DeleteApiConfigRequest request = + DeleteApiConfigRequest.newBuilder() + .setName(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .build(); + apiGatewayServiceClient.deleteApiConfigAsync(request).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_deleteapiconfig_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigApiconfigname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigApiconfigname.java new file mode 100644 index 0000000..af07152 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigApiconfigname.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_deleteapiconfig_apiconfigname_sync] +import com.google.cloud.apigateway.v1.ApiConfigName; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteApiConfigApiconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteApiConfigApiconfigname(); + } + + public static void syncDeleteApiConfigApiconfigname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + ApiConfigName name = ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]"); + apiGatewayServiceClient.deleteApiConfigAsync(name).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_deleteapiconfig_apiconfigname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigString.java new file mode 100644 index 0000000..254df77 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigString.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_deleteapiconfig_string_sync] +import com.google.cloud.apigateway.v1.ApiConfigName; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteApiConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteApiConfigString(); + } + + public static void syncDeleteApiConfigString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + String name = ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString(); + apiGatewayServiceClient.deleteApiConfigAsync(name).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_deleteapiconfig_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGateway.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGateway.java new file mode 100644 index 0000000..740c24e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGateway.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_deletegateway_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.DeleteGatewayRequest; +import com.google.cloud.apigateway.v1.GatewayName; +import com.google.longrunning.Operation; + +public class AsyncDeleteGateway { + + public static void main(String[] args) throws Exception { + asyncDeleteGateway(); + } + + public static void asyncDeleteGateway() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + DeleteGatewayRequest request = + DeleteGatewayRequest.newBuilder() + .setName(GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]").toString()) + .build(); + ApiFuture future = + apiGatewayServiceClient.deleteGatewayCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_deletegateway_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGatewayLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGatewayLRO.java new file mode 100644 index 0000000..06da356 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGatewayLRO.java @@ -0,0 +1,48 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_deletegateway_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.DeleteGatewayRequest; +import com.google.cloud.apigateway.v1.GatewayName; +import com.google.cloud.apigateway.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteGatewayLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteGatewayLRO(); + } + + public static void asyncDeleteGatewayLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + DeleteGatewayRequest request = + DeleteGatewayRequest.newBuilder() + .setName(GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]").toString()) + .build(); + OperationFuture future = + apiGatewayServiceClient.deleteGatewayOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_deletegateway_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGateway.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGateway.java new file mode 100644 index 0000000..fe8f28b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGateway.java @@ -0,0 +1,43 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_deletegateway_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.DeleteGatewayRequest; +import com.google.cloud.apigateway.v1.GatewayName; +import com.google.protobuf.Empty; + +public class SyncDeleteGateway { + + public static void main(String[] args) throws Exception { + syncDeleteGateway(); + } + + public static void syncDeleteGateway() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + DeleteGatewayRequest request = + DeleteGatewayRequest.newBuilder() + .setName(GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]").toString()) + .build(); + apiGatewayServiceClient.deleteGatewayAsync(request).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_deletegateway_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayGatewayname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayGatewayname.java new file mode 100644 index 0000000..d0fbf36 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayGatewayname.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_deletegateway_gatewayname_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.GatewayName; +import com.google.protobuf.Empty; + +public class SyncDeleteGatewayGatewayname { + + public static void main(String[] args) throws Exception { + syncDeleteGatewayGatewayname(); + } + + public static void syncDeleteGatewayGatewayname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + GatewayName name = GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]"); + apiGatewayServiceClient.deleteGatewayAsync(name).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_deletegateway_gatewayname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayString.java new file mode 100644 index 0000000..80ebb31 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayString.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_deletegateway_string_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.GatewayName; +import com.google.protobuf.Empty; + +public class SyncDeleteGatewayString { + + public static void main(String[] args) throws Exception { + syncDeleteGatewayString(); + } + + public static void syncDeleteGatewayString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + String name = GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]").toString(); + apiGatewayServiceClient.deleteGatewayAsync(name).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_deletegateway_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/AsyncGetApi.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/AsyncGetApi.java new file mode 100644 index 0000000..b58c2d5 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/AsyncGetApi.java @@ -0,0 +1,44 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_getapi_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; +import com.google.cloud.apigateway.v1.GetApiRequest; + +public class AsyncGetApi { + + public static void main(String[] args) throws Exception { + asyncGetApi(); + } + + public static void asyncGetApi() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + GetApiRequest request = + GetApiRequest.newBuilder().setName(ApiName.of("[PROJECT]", "[API]").toString()).build(); + ApiFuture future = apiGatewayServiceClient.getApiCallable().futureCall(request); + // Do something. + Api response = future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_getapi_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApi.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApi.java new file mode 100644 index 0000000..d66bc69 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApi.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_getapi_sync] +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; +import com.google.cloud.apigateway.v1.GetApiRequest; + +public class SyncGetApi { + + public static void main(String[] args) throws Exception { + syncGetApi(); + } + + public static void syncGetApi() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + GetApiRequest request = + GetApiRequest.newBuilder().setName(ApiName.of("[PROJECT]", "[API]").toString()).build(); + Api response = apiGatewayServiceClient.getApi(request); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_getapi_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiApiname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiApiname.java new file mode 100644 index 0000000..7170d30 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiApiname.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_getapi_apiname_sync] +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; + +public class SyncGetApiApiname { + + public static void main(String[] args) throws Exception { + syncGetApiApiname(); + } + + public static void syncGetApiApiname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + ApiName name = ApiName.of("[PROJECT]", "[API]"); + Api response = apiGatewayServiceClient.getApi(name); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_getapi_apiname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiString.java new file mode 100644 index 0000000..6d9a33d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiString.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_getapi_string_sync] +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; + +public class SyncGetApiString { + + public static void main(String[] args) throws Exception { + syncGetApiString(); + } + + public static void syncGetApiString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + String name = ApiName.of("[PROJECT]", "[API]").toString(); + Api response = apiGatewayServiceClient.getApi(name); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_getapi_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/AsyncGetApiConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/AsyncGetApiConfig.java new file mode 100644 index 0000000..72141aa --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/AsyncGetApiConfig.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_getapiconfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiConfigName; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.GetApiConfigRequest; + +public class AsyncGetApiConfig { + + public static void main(String[] args) throws Exception { + asyncGetApiConfig(); + } + + public static void asyncGetApiConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + GetApiConfigRequest request = + GetApiConfigRequest.newBuilder() + .setName(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .build(); + ApiFuture future = + apiGatewayServiceClient.getApiConfigCallable().futureCall(request); + // Do something. + ApiConfig response = future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_getapiconfig_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfig.java new file mode 100644 index 0000000..d6394e2 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfig.java @@ -0,0 +1,43 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_getapiconfig_sync] +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiConfigName; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.GetApiConfigRequest; + +public class SyncGetApiConfig { + + public static void main(String[] args) throws Exception { + syncGetApiConfig(); + } + + public static void syncGetApiConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + GetApiConfigRequest request = + GetApiConfigRequest.newBuilder() + .setName(ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString()) + .build(); + ApiConfig response = apiGatewayServiceClient.getApiConfig(request); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_getapiconfig_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigApiconfigname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigApiconfigname.java new file mode 100644 index 0000000..dc6be06 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigApiconfigname.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_getapiconfig_apiconfigname_sync] +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiConfigName; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; + +public class SyncGetApiConfigApiconfigname { + + public static void main(String[] args) throws Exception { + syncGetApiConfigApiconfigname(); + } + + public static void syncGetApiConfigApiconfigname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + ApiConfigName name = ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]"); + ApiConfig response = apiGatewayServiceClient.getApiConfig(name); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_getapiconfig_apiconfigname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigString.java new file mode 100644 index 0000000..25fb720 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigString.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_getapiconfig_string_sync] +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiConfigName; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; + +public class SyncGetApiConfigString { + + public static void main(String[] args) throws Exception { + syncGetApiConfigString(); + } + + public static void syncGetApiConfigString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + String name = ApiConfigName.of("[PROJECT]", "[API]", "[API_CONFIG]").toString(); + ApiConfig response = apiGatewayServiceClient.getApiConfig(name); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_getapiconfig_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/AsyncGetGateway.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/AsyncGetGateway.java new file mode 100644 index 0000000..e697983 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/AsyncGetGateway.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_getgateway_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.GatewayName; +import com.google.cloud.apigateway.v1.GetGatewayRequest; + +public class AsyncGetGateway { + + public static void main(String[] args) throws Exception { + asyncGetGateway(); + } + + public static void asyncGetGateway() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + GetGatewayRequest request = + GetGatewayRequest.newBuilder() + .setName(GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]").toString()) + .build(); + ApiFuture future = apiGatewayServiceClient.getGatewayCallable().futureCall(request); + // Do something. + Gateway response = future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_getgateway_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGateway.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGateway.java new file mode 100644 index 0000000..9569146 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGateway.java @@ -0,0 +1,43 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_getgateway_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.GatewayName; +import com.google.cloud.apigateway.v1.GetGatewayRequest; + +public class SyncGetGateway { + + public static void main(String[] args) throws Exception { + syncGetGateway(); + } + + public static void syncGetGateway() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + GetGatewayRequest request = + GetGatewayRequest.newBuilder() + .setName(GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]").toString()) + .build(); + Gateway response = apiGatewayServiceClient.getGateway(request); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_getgateway_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayGatewayname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayGatewayname.java new file mode 100644 index 0000000..0ac2718 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayGatewayname.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_getgateway_gatewayname_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.GatewayName; + +public class SyncGetGatewayGatewayname { + + public static void main(String[] args) throws Exception { + syncGetGatewayGatewayname(); + } + + public static void syncGetGatewayGatewayname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + GatewayName name = GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]"); + Gateway response = apiGatewayServiceClient.getGateway(name); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_getgateway_gatewayname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayString.java new file mode 100644 index 0000000..e27497f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayString.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_getgateway_string_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.GatewayName; + +public class SyncGetGatewayString { + + public static void main(String[] args) throws Exception { + syncGetGatewayString(); + } + + public static void syncGetGatewayString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + String name = GatewayName.of("[PROJECT]", "[LOCATION]", "[GATEWAY]").toString(); + Gateway response = apiGatewayServiceClient.getGateway(name); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_getgateway_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigs.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigs.java new file mode 100644 index 0000000..53b727b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigs.java @@ -0,0 +1,53 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_listapiconfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; +import com.google.cloud.apigateway.v1.ListApiConfigsRequest; + +public class AsyncListApiConfigs { + + public static void main(String[] args) throws Exception { + asyncListApiConfigs(); + } + + public static void asyncListApiConfigs() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + ListApiConfigsRequest request = + ListApiConfigsRequest.newBuilder() + .setParent(ApiName.of("[PROJECT]", "[API]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + apiGatewayServiceClient.listApiConfigsPagedCallable().futureCall(request); + // Do something. + for (ApiConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_listapiconfigs_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigsPaged.java new file mode 100644 index 0000000..1433f04 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigsPaged.java @@ -0,0 +1,61 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_listapiconfigs_paged_async] +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; +import com.google.cloud.apigateway.v1.ListApiConfigsRequest; +import com.google.cloud.apigateway.v1.ListApiConfigsResponse; +import com.google.common.base.Strings; + +public class AsyncListApiConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListApiConfigsPaged(); + } + + public static void asyncListApiConfigsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + ListApiConfigsRequest request = + ListApiConfigsRequest.newBuilder() + .setParent(ApiName.of("[PROJECT]", "[API]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListApiConfigsResponse response = + apiGatewayServiceClient.listApiConfigsCallable().call(request); + for (ApiConfig element : response.getApiConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_listapiconfigs_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigs.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigs.java new file mode 100644 index 0000000..efe3287 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigs.java @@ -0,0 +1,49 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_listapiconfigs_sync] +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; +import com.google.cloud.apigateway.v1.ListApiConfigsRequest; + +public class SyncListApiConfigs { + + public static void main(String[] args) throws Exception { + syncListApiConfigs(); + } + + public static void syncListApiConfigs() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + ListApiConfigsRequest request = + ListApiConfigsRequest.newBuilder() + .setParent(ApiName.of("[PROJECT]", "[API]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ApiConfig element : apiGatewayServiceClient.listApiConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_listapiconfigs_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsApiname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsApiname.java new file mode 100644 index 0000000..fb2cd6a --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsApiname.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_listapiconfigs_apiname_sync] +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; + +public class SyncListApiConfigsApiname { + + public static void main(String[] args) throws Exception { + syncListApiConfigsApiname(); + } + + public static void syncListApiConfigsApiname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + ApiName parent = ApiName.of("[PROJECT]", "[API]"); + for (ApiConfig element : apiGatewayServiceClient.listApiConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_listapiconfigs_apiname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsString.java new file mode 100644 index 0000000..2c81a78 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsString.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_listapiconfigs_string_sync] +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ApiName; + +public class SyncListApiConfigsString { + + public static void main(String[] args) throws Exception { + syncListApiConfigsString(); + } + + public static void syncListApiConfigsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + String parent = ApiName.of("[PROJECT]", "[API]").toString(); + for (ApiConfig element : apiGatewayServiceClient.listApiConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_listapiconfigs_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApis.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApis.java new file mode 100644 index 0000000..e53e755 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApis.java @@ -0,0 +1,52 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_listapis_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ListApisRequest; +import com.google.cloud.apigateway.v1.LocationName; + +public class AsyncListApis { + + public static void main(String[] args) throws Exception { + asyncListApis(); + } + + public static void asyncListApis() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + ListApisRequest request = + ListApisRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = apiGatewayServiceClient.listApisPagedCallable().futureCall(request); + // Do something. + for (Api element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_listapis_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApisPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApisPaged.java new file mode 100644 index 0000000..f04de9a --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApisPaged.java @@ -0,0 +1,60 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_listapis_paged_async] +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ListApisRequest; +import com.google.cloud.apigateway.v1.ListApisResponse; +import com.google.cloud.apigateway.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListApisPaged { + + public static void main(String[] args) throws Exception { + asyncListApisPaged(); + } + + public static void asyncListApisPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + ListApisRequest request = + ListApisRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListApisResponse response = apiGatewayServiceClient.listApisCallable().call(request); + for (Api element : response.getApisList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_listapis_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApis.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApis.java new file mode 100644 index 0000000..3dff850 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApis.java @@ -0,0 +1,49 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_listapis_sync] +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.ListApisRequest; +import com.google.cloud.apigateway.v1.LocationName; + +public class SyncListApis { + + public static void main(String[] args) throws Exception { + syncListApis(); + } + + public static void syncListApis() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + ListApisRequest request = + ListApisRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Api element : apiGatewayServiceClient.listApis(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_listapis_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisLocationname.java new file mode 100644 index 0000000..cc84f11 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisLocationname.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_listapis_locationname_sync] +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.LocationName; + +public class SyncListApisLocationname { + + public static void main(String[] args) throws Exception { + syncListApisLocationname(); + } + + public static void syncListApisLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Api element : apiGatewayServiceClient.listApis(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_listapis_locationname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisString.java new file mode 100644 index 0000000..29e3e59 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisString.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_listapis_string_sync] +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.LocationName; + +public class SyncListApisString { + + public static void main(String[] args) throws Exception { + syncListApisString(); + } + + public static void syncListApisString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Api element : apiGatewayServiceClient.listApis(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_listapis_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGateways.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGateways.java new file mode 100644 index 0000000..05e7a43 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGateways.java @@ -0,0 +1,53 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_listgateways_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.ListGatewaysRequest; +import com.google.cloud.apigateway.v1.LocationName; + +public class AsyncListGateways { + + public static void main(String[] args) throws Exception { + asyncListGateways(); + } + + public static void asyncListGateways() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + ListGatewaysRequest request = + ListGatewaysRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + apiGatewayServiceClient.listGatewaysPagedCallable().futureCall(request); + // Do something. + for (Gateway element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_listgateways_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGatewaysPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGatewaysPaged.java new file mode 100644 index 0000000..4731e2f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGatewaysPaged.java @@ -0,0 +1,61 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_listgateways_paged_async] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.ListGatewaysRequest; +import com.google.cloud.apigateway.v1.ListGatewaysResponse; +import com.google.cloud.apigateway.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListGatewaysPaged { + + public static void main(String[] args) throws Exception { + asyncListGatewaysPaged(); + } + + public static void asyncListGatewaysPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + ListGatewaysRequest request = + ListGatewaysRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListGatewaysResponse response = + apiGatewayServiceClient.listGatewaysCallable().call(request); + for (Gateway element : response.getGatewaysList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_listgateways_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGateways.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGateways.java new file mode 100644 index 0000000..78120ce --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGateways.java @@ -0,0 +1,49 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_listgateways_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.ListGatewaysRequest; +import com.google.cloud.apigateway.v1.LocationName; + +public class SyncListGateways { + + public static void main(String[] args) throws Exception { + syncListGateways(); + } + + public static void syncListGateways() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + ListGatewaysRequest request = + ListGatewaysRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Gateway element : apiGatewayServiceClient.listGateways(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_listgateways_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysLocationname.java new file mode 100644 index 0000000..c12fb70 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysLocationname.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_listgateways_locationname_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.LocationName; + +public class SyncListGatewaysLocationname { + + public static void main(String[] args) throws Exception { + syncListGatewaysLocationname(); + } + + public static void syncListGatewaysLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Gateway element : apiGatewayServiceClient.listGateways(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_listgateways_locationname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysString.java new file mode 100644 index 0000000..59336c2 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysString.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_listgateways_string_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.LocationName; + +public class SyncListGatewaysString { + + public static void main(String[] args) throws Exception { + syncListGatewaysString(); + } + + public static void syncListGatewaysString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Gateway element : apiGatewayServiceClient.listGateways(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_listgateways_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApi.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApi.java new file mode 100644 index 0000000..6af74fd --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApi.java @@ -0,0 +1,48 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_updateapi_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.UpdateApiRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateApi { + + public static void main(String[] args) throws Exception { + asyncUpdateApi(); + } + + public static void asyncUpdateApi() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + UpdateApiRequest request = + UpdateApiRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setApi(Api.newBuilder().build()) + .build(); + ApiFuture future = apiGatewayServiceClient.updateApiCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_updateapi_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApiLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApiLRO.java new file mode 100644 index 0000000..c1caeb1 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApiLRO.java @@ -0,0 +1,49 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_updateapi_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.OperationMetadata; +import com.google.cloud.apigateway.v1.UpdateApiRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateApiLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateApiLRO(); + } + + public static void asyncUpdateApiLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + UpdateApiRequest request = + UpdateApiRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setApi(Api.newBuilder().build()) + .build(); + OperationFuture future = + apiGatewayServiceClient.updateApiOperationCallable().futureCall(request); + // Do something. + Api response = future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_updateapi_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApi.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApi.java new file mode 100644 index 0000000..84916b1 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApi.java @@ -0,0 +1,44 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_updateapi_sync] +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.UpdateApiRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateApi { + + public static void main(String[] args) throws Exception { + syncUpdateApi(); + } + + public static void syncUpdateApi() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + UpdateApiRequest request = + UpdateApiRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setApi(Api.newBuilder().build()) + .build(); + Api response = apiGatewayServiceClient.updateApiAsync(request).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_updateapi_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApiApiFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApiApiFieldmask.java new file mode 100644 index 0000000..a225f4d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApiApiFieldmask.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_updateapi_apifieldmask_sync] +import com.google.cloud.apigateway.v1.Api; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateApiApiFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateApiApiFieldmask(); + } + + public static void syncUpdateApiApiFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + Api api = Api.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Api response = apiGatewayServiceClient.updateApiAsync(api, updateMask).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_updateapi_apifieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfig.java new file mode 100644 index 0000000..01ba38f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfig.java @@ -0,0 +1,49 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_updateapiconfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.UpdateApiConfigRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateApiConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateApiConfig(); + } + + public static void asyncUpdateApiConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + UpdateApiConfigRequest request = + UpdateApiConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setApiConfig(ApiConfig.newBuilder().build()) + .build(); + ApiFuture future = + apiGatewayServiceClient.updateApiConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_updateapiconfig_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfigLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfigLRO.java new file mode 100644 index 0000000..0c4dd3c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfigLRO.java @@ -0,0 +1,49 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_updateapiconfig_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.OperationMetadata; +import com.google.cloud.apigateway.v1.UpdateApiConfigRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateApiConfigLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateApiConfigLRO(); + } + + public static void asyncUpdateApiConfigLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + UpdateApiConfigRequest request = + UpdateApiConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setApiConfig(ApiConfig.newBuilder().build()) + .build(); + OperationFuture future = + apiGatewayServiceClient.updateApiConfigOperationCallable().futureCall(request); + // Do something. + ApiConfig response = future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_updateapiconfig_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfig.java new file mode 100644 index 0000000..27a9034 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfig.java @@ -0,0 +1,44 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_updateapiconfig_sync] +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.UpdateApiConfigRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateApiConfig { + + public static void main(String[] args) throws Exception { + syncUpdateApiConfig(); + } + + public static void syncUpdateApiConfig() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + UpdateApiConfigRequest request = + UpdateApiConfigRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setApiConfig(ApiConfig.newBuilder().build()) + .build(); + ApiConfig response = apiGatewayServiceClient.updateApiConfigAsync(request).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_updateapiconfig_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfigApiconfigFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfigApiconfigFieldmask.java new file mode 100644 index 0000000..5d2a6e6 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfigApiconfigFieldmask.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_updateapiconfig_apiconfigfieldmask_sync] +import com.google.cloud.apigateway.v1.ApiConfig; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateApiConfigApiconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateApiConfigApiconfigFieldmask(); + } + + public static void syncUpdateApiConfigApiconfigFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + ApiConfig apiConfig = ApiConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ApiConfig response = + apiGatewayServiceClient.updateApiConfigAsync(apiConfig, updateMask).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_updateapiconfig_apiconfigfieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGateway.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGateway.java new file mode 100644 index 0000000..51c68a5 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGateway.java @@ -0,0 +1,49 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_updategateway_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.UpdateGatewayRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateGateway { + + public static void main(String[] args) throws Exception { + asyncUpdateGateway(); + } + + public static void asyncUpdateGateway() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + UpdateGatewayRequest request = + UpdateGatewayRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setGateway(Gateway.newBuilder().build()) + .build(); + ApiFuture future = + apiGatewayServiceClient.updateGatewayCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_updategateway_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGatewayLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGatewayLRO.java new file mode 100644 index 0000000..0ebf369 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGatewayLRO.java @@ -0,0 +1,49 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_updategateway_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.OperationMetadata; +import com.google.cloud.apigateway.v1.UpdateGatewayRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateGatewayLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateGatewayLRO(); + } + + public static void asyncUpdateGatewayLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + UpdateGatewayRequest request = + UpdateGatewayRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setGateway(Gateway.newBuilder().build()) + .build(); + OperationFuture future = + apiGatewayServiceClient.updateGatewayOperationCallable().futureCall(request); + // Do something. + Gateway response = future.get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_updategateway_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGateway.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGateway.java new file mode 100644 index 0000000..78e12cb --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGateway.java @@ -0,0 +1,44 @@ +/* + * 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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_updategateway_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.cloud.apigateway.v1.UpdateGatewayRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateGateway { + + public static void main(String[] args) throws Exception { + syncUpdateGateway(); + } + + public static void syncUpdateGateway() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + UpdateGatewayRequest request = + UpdateGatewayRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setGateway(Gateway.newBuilder().build()) + .build(); + Gateway response = apiGatewayServiceClient.updateGatewayAsync(request).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_updategateway_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGatewayGatewayFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGatewayGatewayFieldmask.java new file mode 100644 index 0000000..d39ddf5 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGatewayGatewayFieldmask.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayserviceclient_updategateway_gatewayfieldmask_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; +import com.google.cloud.apigateway.v1.Gateway; +import com.google.protobuf.FieldMask; + +public class SyncUpdateGatewayGatewayFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateGatewayGatewayFieldmask(); + } + + public static void syncUpdateGatewayGatewayFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.create()) { + Gateway gateway = Gateway.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Gateway response = apiGatewayServiceClient.updateGatewayAsync(gateway, updateMask).get(); + } + } +} +// [END apigateway_v1_generated_apigatewayserviceclient_updategateway_gatewayfieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayservicesettings/getgateway/SyncGetGateway.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayservicesettings/getgateway/SyncGetGateway.java new file mode 100644 index 0000000..99a158e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayservicesettings/getgateway/SyncGetGateway.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.apigateway.v1.samples; + +// [START apigateway_v1_generated_apigatewayservicesettings_getgateway_sync] +import com.google.cloud.apigateway.v1.ApiGatewayServiceSettings; +import java.time.Duration; + +public class SyncGetGateway { + + public static void main(String[] args) throws Exception { + syncGetGateway(); + } + + public static void syncGetGateway() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ApiGatewayServiceSettings.Builder apiGatewayServiceSettingsBuilder = + ApiGatewayServiceSettings.newBuilder(); + apiGatewayServiceSettingsBuilder + .getGatewaySettings() + .setRetrySettings( + apiGatewayServiceSettingsBuilder + .getGatewaySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ApiGatewayServiceSettings apiGatewayServiceSettings = apiGatewayServiceSettingsBuilder.build(); + } +} +// [END apigateway_v1_generated_apigatewayservicesettings_getgateway_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/stub/apigatewayservicestubsettings/getgateway/SyncGetGateway.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/stub/apigatewayservicestubsettings/getgateway/SyncGetGateway.java new file mode 100644 index 0000000..e5e3e13 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/stub/apigatewayservicestubsettings/getgateway/SyncGetGateway.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.apigateway.v1.stub.samples; + +// [START apigateway_v1_generated_apigatewayservicestubsettings_getgateway_sync] +import com.google.cloud.apigateway.v1.stub.ApiGatewayServiceStubSettings; +import java.time.Duration; + +public class SyncGetGateway { + + public static void main(String[] args) throws Exception { + syncGetGateway(); + } + + public static void syncGetGateway() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ApiGatewayServiceStubSettings.Builder apiGatewayServiceSettingsBuilder = + ApiGatewayServiceStubSettings.newBuilder(); + apiGatewayServiceSettingsBuilder + .getGatewaySettings() + .setRetrySettings( + apiGatewayServiceSettingsBuilder + .getGatewaySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ApiGatewayServiceStubSettings apiGatewayServiceSettings = + apiGatewayServiceSettingsBuilder.build(); + } +} +// [END apigateway_v1_generated_apigatewayservicestubsettings_getgateway_sync] diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Apigateway.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Apigateway.java deleted file mode 100644 index d51265f..0000000 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Apigateway.java +++ /dev/null @@ -1,595 +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/apigateway/v1/apigateway.proto - -package com.google.cloud.apigateway.v1; - -public final class Apigateway { - private Apigateway() {} - - 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_apigateway_v1_Api_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_Api_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ApiConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ApiConfig_File_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_Gateway_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_Gateway_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_GetGatewayRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ListApisRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ListApisResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_GetApiRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_CreateApiRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_UpdateApiRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_DeleteApiRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_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/apigateway/v1/apigateway." - + "proto\022\032google.cloud.apigateway.v1\032\037googl" - + "e/api/field_behavior.proto\032\031google/api/r" - + "esource.proto\032 google/protobuf/field_mas" - + "k.proto\032\037google/protobuf/timestamp.proto" - + "\032\034google/api/annotations.proto\"\326\004\n\003Api\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" - + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\022@\n\006labels\030\004 \003(\0132+.google.cloud.api" - + "gateway.v1.Api.LabelsEntryB\003\340A\001\022\031\n\014displ" - + "ay_name\030\005 \001(\tB\003\340A\001\022S\n\017managed_service\030\007 " - + "\001(\tB:\340A\005\340A\001\372A1\n/servicemanagement.google" - + "apis.com/ManagedService\0229\n\005state\030\014 \001(\0162%" - + ".google.cloud.apigateway.v1.Api.StateB\003\340" - + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"`\n\005State\022\025\n\021STATE_UNSPECIFIED\020" - + "\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED\020\003\022" - + "\014\n\010DELETING\020\004\022\014\n\010UPDATING\020\005:R\352AO\n\035apigat" - + "eway.googleapis.com/Api\022.projects/{proje" - + "ct}/locations/global/apis/{api}\"\373\t\n\tApiC" - + "onfig\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030" - + "\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" - + "\n\013update_time\030\003 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\022F\n\006labels\030\004 \003(\01321.google.cl" - + "oud.apigateway.v1.ApiConfig.LabelsEntryB" - + "\003\340A\001\022\031\n\014display_name\030\005 \001(\tB\003\340A\001\022J\n\027gatew" - + "ay_service_account\030\016 \001(\tB)\340A\005\372A#\n!iam.go" - + "ogleapis.com/ServiceAccount\022K\n\021service_c" - + "onfig_id\030\014 \001(\tB0\340A\003\372A*\n(servicemanagemen" - + "t.googleapis.com/Service\022?\n\005state\030\010 \001(\0162" - + "+.google.cloud.apigateway.v1.ApiConfig.S" - + "tateB\003\340A\003\022U\n\021openapi_documents\030\t \003(\01325.g" - + "oogle.cloud.apigateway.v1.ApiConfig.Open" - + "ApiDocumentB\003\340A\001\022W\n\rgrpc_services\030\n \003(\0132" - + ";.google.cloud.apigateway.v1.ApiConfig.G" - + "rpcServiceDefinitionB\003\340A\001\022P\n\027managed_ser" - + "vice_configs\030\013 \003(\0132*.google.cloud.apigat" - + "eway.v1.ApiConfig.FileB\003\340A\001\032&\n\004File\022\014\n\004p" - + "ath\030\001 \001(\t\022\020\n\010contents\030\002 \001(\014\032O\n\017OpenApiDo" - + "cument\022<\n\010document\030\001 \001(\0132*.google.cloud." - + "apigateway.v1.ApiConfig.File\032\246\001\n\025GrpcSer" - + "viceDefinition\022L\n\023file_descriptor_set\030\001 " - + "\001(\0132*.google.cloud.apigateway.v1.ApiConf" - + "ig.FileB\003\340A\004\022?\n\006source\030\002 \003(\0132*.google.cl" - + "oud.apigateway.v1.ApiConfig.FileB\003\340A\001\032-\n" - + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001\"p\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010" - + "CREATING\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED\020\003\022\014\n\010DE" - + "LETING\020\004\022\014\n\010UPDATING\020\005\022\016\n\nACTIVATING\020\006:m" - + "\352Aj\n#apigateway.googleapis.com/ApiConfig" - + "\022Cprojects/{project}/locations/global/ap" - + "is/{api}/configs/{api_config}\"\375\004\n\007Gatewa" - + "y\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" - + "date_time\030\003 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\022D\n\006labels\030\004 \003(\0132/.google.cloud." - + "apigateway.v1.Gateway.LabelsEntryB\003\340A\001\022\031" - + "\n\014display_name\030\005 \001(\tB\003\340A\001\022?\n\napi_config\030" - + "\006 \001(\tB+\340A\002\372A%\n#apigateway.googleapis.com" - + "/ApiConfig\022=\n\005state\030\007 \001(\0162).google.cloud" - + ".apigateway.v1.Gateway.StateB\003\340A\003\022\035\n\020def" - + "ault_hostname\030\t \001(\tB\003\340A\003\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\005State" - + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n" - + "\006ACTIVE\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022\014\n\010U" - + "PDATING\020\005:b\352A_\n!apigateway.googleapis.co" - + "m/Gateway\022:projects/{project}/locations/" - + "{location}/gateways/{gateway}\"\231\001\n\023ListGa" - + "tewaysRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!l" - + "ocations.googleapis.com/Location\022\021\n\tpage" - + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filte" - + "r\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\205\001\n\024ListGatewa" - + "ysResponse\0225\n\010gateways\030\001 \003(\0132#.google.cl" - + "oud.apigateway.v1.Gateway\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\022\035\n\025unreachable_locations\030\003 \003(" - + "\t\"L\n\021GetGatewayRequest\0227\n\004name\030\001 \001(\tB)\340A" - + "\002\372A#\n!apigateway.googleapis.com/Gateway\"" - + "\245\001\n\024CreateGatewayRequest\0229\n\006parent\030\001 \001(\t" - + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" - + "ion\022\027\n\ngateway_id\030\002 \001(\tB\003\340A\002\0229\n\007gateway\030" - + "\003 \001(\0132#.google.cloud.apigateway.v1.Gatew" - + "ayB\003\340A\002\"\202\001\n\024UpdateGatewayRequest\022/\n\013upda" - + "te_mask\030\001 \001(\0132\032.google.protobuf.FieldMas" - + "k\0229\n\007gateway\030\002 \001(\0132#.google.cloud.apigat" - + "eway.v1.GatewayB\003\340A\002\"O\n\024DeleteGatewayReq" - + "uest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!apigateway.g" - + "oogleapis.com/Gateway\"\225\001\n\017ListApisReques" - + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" - + "gleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022" - + "\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010o" - + "rder_by\030\005 \001(\t\"y\n\020ListApisResponse\022-\n\004api" - + "s\030\001 \003(\0132\037.google.cloud.apigateway.v1.Api" - + "\022\027\n\017next_page_token\030\002 \001(\t\022\035\n\025unreachable" - + "_locations\030\003 \003(\t\"D\n\rGetApiRequest\0223\n\004nam" - + "e\030\001 \001(\tB%\340A\002\372A\037\n\035apigateway.googleapis.c" - + "om/Api\"\225\001\n\020CreateApiRequest\0229\n\006parent\030\001 " - + "\001(\tB)\340A\002\372A#\n!locations.googleapis.com/Lo" - + "cation\022\023\n\006api_id\030\002 \001(\tB\003\340A\002\0221\n\003api\030\003 \001(\013" - + "2\037.google.cloud.apigateway.v1.ApiB\003\340A\002\"v" - + "\n\020UpdateApiRequest\022/\n\013update_mask\030\001 \001(\0132" - + "\032.google.protobuf.FieldMask\0221\n\003api\030\002 \001(\013" - + "2\037.google.cloud.apigateway.v1.ApiB\003\340A\002\"G" - + "\n\020DeleteApiRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037" - + "\n\035apigateway.googleapis.com/Api\"\227\001\n\025List" - + "ApiConfigsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A" - + "\037\n\035apigateway.googleapis.com/Api\022\021\n\tpage" - + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filte" - + "r\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\214\001\n\026ListApiCon" - + "figsResponse\022:\n\013api_configs\030\001 \003(\0132%.goog" - + "le.cloud.apigateway.v1.ApiConfig\022\027\n\017next" - + "_page_token\030\002 \001(\t\022\035\n\025unreachable_locatio" - + "ns\030\003 \003(\t\"\332\001\n\023GetApiConfigRequest\0229\n\004name" - + "\030\001 \001(\tB+\340A\002\372A%\n#apigateway.googleapis.co" - + "m/ApiConfig\022H\n\004view\030\003 \001(\0162:.google.cloud" - + ".apigateway.v1.GetApiConfigRequest.Confi" - + "gView\">\n\nConfigView\022\033\n\027CONFIG_VIEW_UNSPE" - + "CIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002\"\253\001\n\026Create" - + "ApiConfigRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037" - + "\n\035apigateway.googleapis.com/Api\022\032\n\rapi_c" - + "onfig_id\030\002 \001(\tB\003\340A\002\022>\n\napi_config\030\003 \001(\0132" - + "%.google.cloud.apigateway.v1.ApiConfigB\003" - + "\340A\002\"\211\001\n\026UpdateApiConfigRequest\022/\n\013update" - + "_mask\030\001 \001(\0132\032.google.protobuf.FieldMask\022" - + ">\n\napi_config\030\002 \001(\0132%.google.cloud.apiga" - + "teway.v1.ApiConfigB\003\340A\002\"S\n\026DeleteApiConf" - + "igRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#apigate" - + "way.googleapis.com/ApiConfig\"\205\003\n\021Operati" - + "onMetadata\0224\n\013create_time\030\001 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006t" - + "arget\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016s" - + "tatus_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_ca" - + "ncellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001" - + "(\tB\003\340A\003\022R\n\013diagnostics\030\010 \003(\01328.google.cl" - + "oud.apigateway.v1.OperationMetadata.Diag" - + "nosticB\003\340A\003\032/\n\nDiagnostic\022\020\n\010location\030\001 " - + "\001(\t\022\017\n\007message\030\002 \001(\tB\270\003\n\036com.google.clou" - + "d.apigateway.v1P\001ZDgoogle.golang.org/gen" - + "proto/googleapis/cloud/apigateway/v1;api" - + "gateway\252\002\032Google.Cloud.ApiGateway.V1\312\002\032G" - + "oogle\\Cloud\\ApiGateway\\V1\352\002\035Google::Clou" - + "d::ApiGateway::V1\352AY\n!iam.googleapis.com" - + "/ServiceAccount\0224projects/{project}/serv" - + "iceAccounts/{service_account}\352AE\n/servic" - + "emanagement.googleapis.com/ManagedServic" - + "e\022\022services/{service}\352AO\n(servicemanagem" - + "ent.googleapis.com/Service\022#services/{se" - + "rvice}/configs/{config}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_apigateway_v1_Api_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_apigateway_v1_Api_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_Api_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "DisplayName", - "ManagedService", - "State", - }); - internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_descriptor = - internal_static_google_cloud_apigateway_v1_Api_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_apigateway_v1_ApiConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "DisplayName", - "GatewayServiceAccount", - "ServiceConfigId", - "State", - "OpenapiDocuments", - "GrpcServices", - "ManagedServiceConfigs", - }); - internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor = - internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_apigateway_v1_ApiConfig_File_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor, - new java.lang.String[] { - "Path", "Contents", - }); - internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor = - internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor, - new java.lang.String[] { - "Document", - }); - internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor = - internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor, - new java.lang.String[] { - "FileDescriptorSet", "Source", - }); - internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_descriptor = - internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_apigateway_v1_Gateway_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_apigateway_v1_Gateway_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_Gateway_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "DisplayName", - "ApiConfig", - "State", - "DefaultHostname", - }); - internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_descriptor = - internal_static_google_cloud_apigateway_v1_Gateway_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor, - new java.lang.String[] { - "Gateways", "NextPageToken", "UnreachableLocations", - }); - internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_apigateway_v1_GetGatewayRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor, - new java.lang.String[] { - "Parent", "GatewayId", "Gateway", - }); - internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "Gateway", - }); - internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_apigateway_v1_ListApisRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_apigateway_v1_ListApisResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor, - new java.lang.String[] { - "Apis", "NextPageToken", "UnreachableLocations", - }); - internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_apigateway_v1_GetApiRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_apigateway_v1_CreateApiRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor, - new java.lang.String[] { - "Parent", "ApiId", "Api", - }); - internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_apigateway_v1_UpdateApiRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "Api", - }); - internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_apigateway_v1_DeleteApiRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor, - new java.lang.String[] { - "ApiConfigs", "NextPageToken", "UnreachableLocations", - }); - internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor, - new java.lang.String[] { - "Name", "View", - }); - internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "ApiConfigId", "ApiConfig", - }); - internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "ApiConfig", - }); - internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_apigateway_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - "Diagnostics", - }); - internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor = - internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor, - new java.lang.String[] { - "Location", "Message", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApigatewayService.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApigatewayService.java deleted file mode 100644 index e9eea35..0000000 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApigatewayService.java +++ /dev/null @@ -1,151 +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/apigateway/v1/apigateway_service.proto - -package com.google.cloud.apigateway.v1; - -public final class ApigatewayService { - private ApigatewayService() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/apigateway/v1/apigateway_" - + "service.proto\022\032google.cloud.apigateway.v" - + "1\032\034google/api/annotations.proto\032\027google/" - + "api/client.proto\032+google/cloud/apigatewa" - + "y/v1/apigateway.proto\032#google/longrunnin" - + "g/operations.proto2\340\027\n\021ApiGatewayService" - + "\022\260\001\n\014ListGateways\022/.google.cloud.apigate" - + "way.v1.ListGatewaysRequest\0320.google.clou" - + "d.apigateway.v1.ListGatewaysResponse\"=\202\323" - + "\344\223\002.\022,/v1/{parent=projects/*/locations/*" - + "}/gateways\332A\006parent\022\235\001\n\nGetGateway\022-.goo" - + "gle.cloud.apigateway.v1.GetGatewayReques" - + "t\032#.google.cloud.apigateway.v1.Gateway\";" - + "\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*" - + "/gateways/*}\332A\004name\022\332\001\n\rCreateGateway\0220." - + "google.cloud.apigateway.v1.CreateGateway" - + "Request\032\035.google.longrunning.Operation\"x" - + "\202\323\344\223\0027\",/v1/{parent=projects/*/locations" - + "/*}/gateways:\007gateway\332A\031parent,gateway,g" - + "ateway_id\312A\034\n\007Gateway\022\021OperationMetadata" - + "\022\334\001\n\rUpdateGateway\0220.google.cloud.apigat" - + "eway.v1.UpdateGatewayRequest\032\035.google.lo" - + "ngrunning.Operation\"z\202\323\344\223\002?24/v1/{gatewa" - + "y.name=projects/*/locations/*/gateways/*" - + "}:\007gateway\332A\023gateway,update_mask\312A\034\n\007Gat" - + "eway\022\021OperationMetadata\022\312\001\n\rDeleteGatewa" - + "y\0220.google.cloud.apigateway.v1.DeleteGat" - + "ewayRequest\032\035.google.longrunning.Operati" - + "on\"h\202\323\344\223\002.*,/v1/{name=projects/*/locatio" - + "ns/*/gateways/*}\332A\004name\312A*\n\025google.proto" - + "buf.Empty\022\021OperationMetadata\022\240\001\n\010ListApi" - + "s\022+.google.cloud.apigateway.v1.ListApisR" - + "equest\032,.google.cloud.apigateway.v1.List" - + "ApisResponse\"9\202\323\344\223\002*\022(/v1/{parent=projec" - + "ts/*/locations/*}/apis\332A\006parent\022\215\001\n\006GetA" - + "pi\022).google.cloud.apigateway.v1.GetApiRe" - + "quest\032\037.google.cloud.apigateway.v1.Api\"7" - + "\202\323\344\223\002*\022(/v1/{name=projects/*/locations/*" - + "/apis/*}\332A\004name\022\276\001\n\tCreateApi\022,.google.c" - + "loud.apigateway.v1.CreateApiRequest\032\035.go" - + "ogle.longrunning.Operation\"d\202\323\344\223\002/\"(/v1/" - + "{parent=projects/*/locations/*}/apis:\003ap" - + "i\332A\021parent,api,api_id\312A\030\n\003Api\022\021Operation" - + "Metadata\022\300\001\n\tUpdateApi\022,.google.cloud.ap" - + "igateway.v1.UpdateApiRequest\032\035.google.lo" - + "ngrunning.Operation\"f\202\323\344\223\00232,/v1/{api.na" - + "me=projects/*/locations/*/apis/*}:\003api\332A" - + "\017api,update_mask\312A\030\n\003Api\022\021OperationMetad" - + "ata\022\276\001\n\tDeleteApi\022,.google.cloud.apigate" - + "way.v1.DeleteApiRequest\032\035.google.longrun" - + "ning.Operation\"d\202\323\344\223\002**(/v1/{name=projec" - + "ts/*/locations/*/apis/*}\332A\004name\312A*\n\025goog" - + "le.protobuf.Empty\022\021OperationMetadata\022\274\001\n" - + "\016ListApiConfigs\0221.google.cloud.apigatewa" - + "y.v1.ListApiConfigsRequest\0322.google.clou" - + "d.apigateway.v1.ListApiConfigsResponse\"C" - + "\202\323\344\223\0024\0222/v1/{parent=projects/*/locations" - + "/*/apis/*}/configs\332A\006parent\022\251\001\n\014GetApiCo" - + "nfig\022/.google.cloud.apigateway.v1.GetApi" - + "ConfigRequest\032%.google.cloud.apigateway." - + "v1.ApiConfig\"A\202\323\344\223\0024\0222/v1/{name=projects" - + "/*/locations/*/apis/*/configs/*}\332A\004name\022" - + "\360\001\n\017CreateApiConfig\0222.google.cloud.apiga" - + "teway.v1.CreateApiConfigRequest\032\035.google" - + ".longrunning.Operation\"\211\001\202\323\344\223\002@\"2/v1/{pa" - + "rent=projects/*/locations/*/apis/*}/conf" - + "igs:\napi_config\332A\037parent,api_config,api_" - + "config_id\312A\036\n\tApiConfig\022\021OperationMetada" - + "ta\022\362\001\n\017UpdateApiConfig\0222.google.cloud.ap" - + "igateway.v1.UpdateApiConfigRequest\032\035.goo" - + "gle.longrunning.Operation\"\213\001\202\323\344\223\002K2=/v1/" - + "{api_config.name=projects/*/locations/*/" - + "apis/*/configs/*}:\napi_config\332A\026api_conf" - + "ig,update_mask\312A\036\n\tApiConfig\022\021OperationM" - + "etadata\022\324\001\n\017DeleteApiConfig\0222.google.clo" - + "ud.apigateway.v1.DeleteApiConfigRequest\032" - + "\035.google.longrunning.Operation\"n\202\323\344\223\0024*2" - + "/v1/{name=projects/*/locations/*/apis/*/" - + "configs/*}\332A\004name\312A*\n\025google.protobuf.Em" - + "pty\022\021OperationMetadata\032M\312A\031apigateway.go" - + "ogleapis.com\322A.https://www.googleapis.co" - + "m/auth/cloud-platformB\302\001\n\036com.google.clo" - + "ud.apigateway.v1P\001ZDgoogle.golang.org/ge" - + "nproto/googleapis/cloud/apigateway/v1;ap" - + "igateway\252\002\032Google.Cloud.ApiGateway.V1\312\002\032" - + "Google\\Cloud\\ApiGateway\\V1\352\002\035Google::Clo" - + "ud::ApiGateway::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.cloud.apigateway.v1.Apigateway.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.apigateway.v1.Apigateway.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequestOrBuilder.java deleted file mode 100644 index ba8ac94..0000000 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/apigateway/v1/apigateway.proto - -package com.google.cloud.apigateway.v1; - -public interface DeleteApiConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.DeleteApiConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/global/apis/*/configs/*`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/global/apis/*/configs/*`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequestOrBuilder.java deleted file mode 100644 index 37906d9..0000000 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/apigateway/v1/apigateway.proto - -package com.google.cloud.apigateway.v1; - -public interface DeleteApiRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.DeleteApiRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/global/apis/*`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/global/apis/*`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequestOrBuilder.java deleted file mode 100644 index 4948afe..0000000 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/apigateway/v1/apigateway.proto - -package com.google.cloud.apigateway.v1; - -public interface DeleteGatewayRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.DeleteGatewayRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/*/gateways/*`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/*/gateways/*`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequestOrBuilder.java deleted file mode 100644 index b014423..0000000 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/apigateway/v1/apigateway.proto - -package com.google.cloud.apigateway.v1; - -public interface GetApiRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.GetApiRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/global/apis/*`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/global/apis/*`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequestOrBuilder.java deleted file mode 100644 index b854aa4..0000000 --- a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/apigateway/v1/apigateway.proto - -package com.google.cloud.apigateway.v1; - -public interface GetGatewayRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.GetGatewayRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/*/gateways/*`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/*/gateways/*`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} From 74feee3ef8704ec0e488063b51b758510eae3b03 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 03:09:34 +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/ApiGatewayServiceClient.java | 26 +- .../v1/ApiGatewayServiceSettings.java | 7 +- .../cloud/apigateway/v1/gapic_metadata.json | 0 .../cloud/apigateway/v1/package-info.java | 0 .../v1/stub/ApiGatewayServiceStub.java | 0 .../stub/ApiGatewayServiceStubSettings.java | 6 +- .../GrpcApiGatewayServiceCallableFactory.java | 0 .../v1/stub/GrpcApiGatewayServiceStub.java | 1 - ...pJsonApiGatewayServiceCallableFactory.java | 0 .../stub/HttpJsonApiGatewayServiceStub.java | 1 - .../ApiGatewayServiceClientHttpJsonTest.java | 0 .../v1/ApiGatewayServiceClientTest.java | 0 .../apigateway/v1/MockApiGatewayService.java | 0 .../v1/MockApiGatewayServiceImpl.java | 0 .../apigateway/v1/ApiGatewayServiceGrpc.java | 1933 ++++++++++ .../apigateway/v1/ApiGatewayServiceGrpc.java | 1507 -------- .../cloud/apigateway/v1/Apigateway.java | 520 --- .../apigateway/v1/ApigatewayService.java | 138 - .../v1/DeleteApiConfigRequestOrBuilder.java | 31 - .../v1/DeleteApiRequestOrBuilder.java | 31 - .../v1/DeleteGatewayRequestOrBuilder.java | 31 - .../apigateway/v1/GetApiRequestOrBuilder.java | 31 - .../v1/GetGatewayRequestOrBuilder.java | 31 - .../com/google/cloud/apigateway/v1/Api.java | 1193 +++--- .../google/cloud/apigateway/v1/ApiConfig.java | 3428 +++++++++++------ .../cloud/apigateway/v1/ApiConfigName.java | 0 .../apigateway/v1/ApiConfigOrBuilder.java | 252 +- .../google/cloud/apigateway/v1/ApiName.java | 0 .../cloud/apigateway/v1/ApiOrBuilder.java | 132 +- .../cloud/apigateway/v1/Apigateway.java | 595 +++ .../apigateway/v1/ApigatewayService.java | 151 + .../apigateway/v1/CreateApiConfigRequest.java | 570 +-- .../v1/CreateApiConfigRequestOrBuilder.java | 64 +- .../cloud/apigateway/v1/CreateApiRequest.java | 526 ++- .../v1/CreateApiRequestOrBuilder.java | 52 +- .../apigateway/v1/CreateGatewayRequest.java | 567 +-- .../v1/CreateGatewayRequestOrBuilder.java | 64 +- .../apigateway/v1/DeleteApiConfigRequest.java | 342 +- .../v1/DeleteApiConfigRequestOrBuilder.java | 56 + .../cloud/apigateway/v1/DeleteApiRequest.java | 332 +- .../v1/DeleteApiRequestOrBuilder.java | 56 + .../apigateway/v1/DeleteGatewayRequest.java | 339 +- .../v1/DeleteGatewayRequestOrBuilder.java | 56 + .../google/cloud/apigateway/v1/Gateway.java | 1272 +++--- .../cloud/apigateway/v1/GatewayName.java | 0 .../cloud/apigateway/v1/GatewayOrBuilder.java | 141 +- .../apigateway/v1/GetApiConfigRequest.java | 483 ++- .../v1/GetApiConfigRequestOrBuilder.java | 41 +- .../cloud/apigateway/v1/GetApiRequest.java | 329 +- .../apigateway/v1/GetApiRequestOrBuilder.java | 56 + .../apigateway/v1/GetGatewayRequest.java | 336 +- .../v1/GetGatewayRequestOrBuilder.java | 56 + .../apigateway/v1/ListApiConfigsRequest.java | 612 +-- .../v1/ListApiConfigsRequestOrBuilder.java | 65 +- .../apigateway/v1/ListApiConfigsResponse.java | 579 +-- .../v1/ListApiConfigsResponseOrBuilder.java | 63 +- .../cloud/apigateway/v1/ListApisRequest.java | 602 +-- .../v1/ListApisRequestOrBuilder.java | 65 +- .../cloud/apigateway/v1/ListApisResponse.java | 571 +-- .../v1/ListApisResponseOrBuilder.java | 64 +- .../apigateway/v1/ListGatewaysRequest.java | 612 +-- .../v1/ListGatewaysRequestOrBuilder.java | 65 +- .../apigateway/v1/ListGatewaysResponse.java | 572 +-- .../v1/ListGatewaysResponseOrBuilder.java | 63 +- .../cloud/apigateway/v1/LocationName.java | 0 .../apigateway/v1/OperationMetadata.java | 1521 +++++--- .../v1/OperationMetadataOrBuilder.java | 126 +- .../apigateway/v1/UpdateApiConfigRequest.java | 483 ++- .../v1/UpdateApiConfigRequestOrBuilder.java | 46 +- .../cloud/apigateway/v1/UpdateApiRequest.java | 439 ++- .../v1/UpdateApiRequestOrBuilder.java | 34 +- .../apigateway/v1/UpdateGatewayRequest.java | 480 ++- .../v1/UpdateGatewayRequestOrBuilder.java | 46 +- .../cloud/apigateway/v1/apigateway.proto | 0 .../apigateway/v1/apigateway_service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createapi/AsyncCreateApi.java | 0 .../createapi/AsyncCreateApiLRO.java | 0 .../createapi/SyncCreateApi.java | 0 .../SyncCreateApiLocationnameApiString.java | 0 .../SyncCreateApiStringApiString.java | 0 .../createapiconfig/AsyncCreateApiConfig.java | 0 .../AsyncCreateApiConfigLRO.java | 0 .../createapiconfig/SyncCreateApiConfig.java | 0 ...CreateApiConfigApinameApiconfigString.java | 3 +- ...cCreateApiConfigStringApiconfigString.java | 3 +- .../creategateway/AsyncCreateGateway.java | 0 .../creategateway/AsyncCreateGatewayLRO.java | 0 .../creategateway/SyncCreateGateway.java | 0 ...reateGatewayLocationnameGatewayString.java | 6 +- .../SyncCreateGatewayStringGatewayString.java | 0 .../deleteapi/AsyncDeleteApi.java | 0 .../deleteapi/AsyncDeleteApiLRO.java | 0 .../deleteapi/SyncDeleteApi.java | 1 - .../deleteapi/SyncDeleteApiApiname.java | 1 - .../deleteapi/SyncDeleteApiString.java | 1 - .../deleteapiconfig/AsyncDeleteApiConfig.java | 0 .../AsyncDeleteApiConfigLRO.java | 0 .../deleteapiconfig/SyncDeleteApiConfig.java | 1 - .../SyncDeleteApiConfigApiconfigname.java | 1 - .../SyncDeleteApiConfigString.java | 1 - .../deletegateway/AsyncDeleteGateway.java | 0 .../deletegateway/AsyncDeleteGatewayLRO.java | 0 .../deletegateway/SyncDeleteGateway.java | 1 - .../SyncDeleteGatewayGatewayname.java | 1 - .../SyncDeleteGatewayString.java | 1 - .../getapi/AsyncGetApi.java | 0 .../getapi/SyncGetApi.java | 0 .../getapi/SyncGetApiApiname.java | 0 .../getapi/SyncGetApiString.java | 0 .../getapiconfig/AsyncGetApiConfig.java | 0 .../getapiconfig/SyncGetApiConfig.java | 0 .../SyncGetApiConfigApiconfigname.java | 0 .../getapiconfig/SyncGetApiConfigString.java | 0 .../getgateway/AsyncGetGateway.java | 0 .../getgateway/SyncGetGateway.java | 0 .../getgateway/SyncGetGatewayGatewayname.java | 0 .../getgateway/SyncGetGatewayString.java | 0 .../listapiconfigs/AsyncListApiConfigs.java | 0 .../AsyncListApiConfigsPaged.java | 0 .../listapiconfigs/SyncListApiConfigs.java | 0 .../SyncListApiConfigsApiname.java | 0 .../SyncListApiConfigsString.java | 0 .../listapis/AsyncListApis.java | 0 .../listapis/AsyncListApisPaged.java | 0 .../listapis/SyncListApis.java | 0 .../listapis/SyncListApisLocationname.java | 0 .../listapis/SyncListApisString.java | 0 .../listgateways/AsyncListGateways.java | 0 .../listgateways/AsyncListGatewaysPaged.java | 0 .../listgateways/SyncListGateways.java | 0 .../SyncListGatewaysLocationname.java | 0 .../listgateways/SyncListGatewaysString.java | 0 .../updateapi/AsyncUpdateApi.java | 0 .../updateapi/AsyncUpdateApiLRO.java | 0 .../updateapi/SyncUpdateApi.java | 0 .../updateapi/SyncUpdateApiApiFieldmask.java | 0 .../updateapiconfig/AsyncUpdateApiConfig.java | 0 .../AsyncUpdateApiConfigLRO.java | 0 .../updateapiconfig/SyncUpdateApiConfig.java | 0 ...SyncUpdateApiConfigApiconfigFieldmask.java | 0 .../updategateway/AsyncUpdateGateway.java | 0 .../updategateway/AsyncUpdateGatewayLRO.java | 0 .../updategateway/SyncUpdateGateway.java | 0 .../SyncUpdateGatewayGatewayFieldmask.java | 0 .../getgateway/SyncGetGateway.java | 0 .../getgateway/SyncGetGateway.java | 0 149 files changed, 14058 insertions(+), 8854 deletions(-) rename {owl-bot-staging/v1/google-cloud-api-gateway => google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java (99%) rename {owl-bot-staging/v1/google-cloud-api-gateway => google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-api-gateway => google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-api-gateway => google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-api-gateway => google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-api-gateway => google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-api-gateway => google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-api-gateway => google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-api-gateway => google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-api-gateway => google-cloud-api-gateway}/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-api-gateway => google-cloud-api-gateway}/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-api-gateway => google-cloud-api-gateway}/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-api-gateway => google-cloud-api-gateway}/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayService.java (100%) rename {owl-bot-staging/v1/google-cloud-api-gateway => google-cloud-api-gateway}/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayServiceImpl.java (100%) create mode 100644 grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Apigateway.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApigatewayService.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/Api.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ApiConfig.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ApiConfigName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ApiConfigOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ApiName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ApiOrBuilder.java (69%) create mode 100644 proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Apigateway.java create mode 100644 proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApigatewayService.java rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequestOrBuilder.java (53%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequestOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequestOrBuilder.java (53%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequest.java (65%) create mode 100644 proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequest.java (65%) create mode 100644 proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequest.java (65%) create mode 100644 proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/Gateway.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/GatewayName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/GatewayOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequestOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/GetApiRequest.java (65%) create mode 100644 proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequest.java (65%) create mode 100644 proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequestOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponseOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListApisRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListApisRequestOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListApisResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListApisResponseOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequestOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponseOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/OperationMetadata.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/OperationMetadataOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequestOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequestOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequestOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/proto/google/cloud/apigateway/v1/apigateway.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-api-gateway-v1 => proto-google-cloud-api-gateway-v1}/src/main/proto/google/cloud/apigateway/v1/apigateway_service.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApi.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApiLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApi.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiLocationnameApiString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiStringApiString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfigLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigApinameApiconfigString.java (94%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigStringApiconfigString.java (94%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGateway.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGatewayLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGateway.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayLocationnameGatewayString.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayStringGatewayString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApi.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApiLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApi.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiApiname.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiString.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfigLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfig.java (98%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigApiconfigname.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigString.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGateway.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGatewayLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGateway.java (98%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayGatewayname.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayString.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/AsyncGetApi.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApi.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiApiname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/AsyncGetApiConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigApiconfigname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/AsyncGetGateway.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGateway.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayGatewayname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigs.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigs.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsApiname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApis.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApisPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApis.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGateways.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGatewaysPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGateways.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApi.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApiLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApi.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApiApiFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfigLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfigApiconfigFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGateway.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGatewayLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGateway.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGatewayGatewayFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/apigatewayservicesettings/getgateway/SyncGetGateway.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigateway/v1/stub/apigatewayservicestubsettings/getgateway/SyncGetGateway.java (100%) diff --git a/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java b/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java rename to google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java index 3044faf..cc84d6a 100644 --- a/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.java +++ b/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClient.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. *
* @@ -2144,7 +2144,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListGatewaysPagedResponse extends AbstractPagedListResponse< - ListGatewaysRequest, ListGatewaysResponse, Gateway, ListGatewaysPage, + ListGatewaysRequest, + ListGatewaysResponse, + Gateway, + ListGatewaysPage, ListGatewaysFixedSizeCollection> { public static ApiFuture createAsync( @@ -2193,7 +2196,10 @@ public ApiFuture createPageAsync( public static class ListGatewaysFixedSizeCollection extends AbstractFixedSizeCollection< - ListGatewaysRequest, ListGatewaysResponse, Gateway, ListGatewaysPage, + ListGatewaysRequest, + ListGatewaysResponse, + Gateway, + ListGatewaysPage, ListGatewaysFixedSizeCollection> { private ListGatewaysFixedSizeCollection(List pages, int collectionSize) { @@ -2276,7 +2282,10 @@ protected ListApisFixedSizeCollection createCollection( public static class ListApiConfigsPagedResponse extends AbstractPagedListResponse< - ListApiConfigsRequest, ListApiConfigsResponse, ApiConfig, ListApiConfigsPage, + ListApiConfigsRequest, + ListApiConfigsResponse, + ApiConfig, + ListApiConfigsPage, ListApiConfigsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2326,7 +2335,10 @@ public ApiFuture createPageAsync( public static class ListApiConfigsFixedSizeCollection extends AbstractFixedSizeCollection< - ListApiConfigsRequest, ListApiConfigsResponse, ApiConfig, ListApiConfigsPage, + ListApiConfigsRequest, + ListApiConfigsResponse, + ApiConfig, + ListApiConfigsPage, ListApiConfigsFixedSizeCollection> { private ListApiConfigsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java b/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java rename to google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java index 22acbfa..016b58b 100644 --- a/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java +++ b/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceSettings.java @@ -31,7 +31,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.apigateway.v1.stub.ApiGatewayServiceStubSettings; @@ -48,9 +47,9 @@ *

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

    - *
  • The default service address (apigateway.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 (apigateway.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-api-gateway/src/main/java/com/google/cloud/apigateway/v1/gapic_metadata.json b/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/gapic_metadata.json rename to google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/package-info.java b/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/package-info.java rename to google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStub.java b/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStub.java rename to google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java b/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java rename to google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java index acc0b42..aa7cf76 100644 --- a/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java +++ b/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/ApiGatewayServiceStubSettings.java @@ -89,9 +89,9 @@ *

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

    - *
  • The default service address (apigateway.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 (apigateway.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-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceCallableFactory.java b/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceCallableFactory.java rename to google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceStub.java b/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceStub.java rename to google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceStub.java index 3febfdd..cc5cc1f 100644 --- a/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceStub.java +++ b/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/GrpcApiGatewayServiceStub.java @@ -56,7 +56,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-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceCallableFactory.java b/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceCallableFactory.java rename to google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceStub.java b/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceStub.java rename to google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceStub.java index 03e1f58..1d8d655 100644 --- a/owl-bot-staging/v1/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceStub.java +++ b/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/HttpJsonApiGatewayServiceStub.java @@ -32,7 +32,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientHttpJsonTest.java b/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientHttpJsonTest.java rename to google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientTest.java b/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientTest.java rename to google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/ApiGatewayServiceClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayService.java b/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayService.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayService.java rename to google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayService.java diff --git a/owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayServiceImpl.java b/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayServiceImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayServiceImpl.java rename to google-cloud-api-gateway/src/test/java/com/google/cloud/apigateway/v1/MockApiGatewayServiceImpl.java diff --git a/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java b/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java new file mode 100644 index 0000000..252889e --- /dev/null +++ b/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java @@ -0,0 +1,1933 @@ +/* + * 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.apigateway.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * The API Gateway Service is the interface for managing API Gateways.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/apigateway/v1/apigateway_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ApiGatewayServiceGrpc { + + private ApiGatewayServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.apigateway.v1.ApiGatewayService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.ListGatewaysRequest, + com.google.cloud.apigateway.v1.ListGatewaysResponse> + getListGatewaysMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGateways", + requestType = com.google.cloud.apigateway.v1.ListGatewaysRequest.class, + responseType = com.google.cloud.apigateway.v1.ListGatewaysResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.ListGatewaysRequest, + com.google.cloud.apigateway.v1.ListGatewaysResponse> + getListGatewaysMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.ListGatewaysRequest, + com.google.cloud.apigateway.v1.ListGatewaysResponse> + getListGatewaysMethod; + if ((getListGatewaysMethod = ApiGatewayServiceGrpc.getListGatewaysMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getListGatewaysMethod = ApiGatewayServiceGrpc.getListGatewaysMethod) == null) { + ApiGatewayServiceGrpc.getListGatewaysMethod = + getListGatewaysMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGateways")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.ListGatewaysRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.ListGatewaysResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ApiGatewayServiceMethodDescriptorSupplier("ListGateways")) + .build(); + } + } + } + return getListGatewaysMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.GetGatewayRequest, com.google.cloud.apigateway.v1.Gateway> + getGetGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGateway", + requestType = com.google.cloud.apigateway.v1.GetGatewayRequest.class, + responseType = com.google.cloud.apigateway.v1.Gateway.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.GetGatewayRequest, com.google.cloud.apigateway.v1.Gateway> + getGetGatewayMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.GetGatewayRequest, + com.google.cloud.apigateway.v1.Gateway> + getGetGatewayMethod; + if ((getGetGatewayMethod = ApiGatewayServiceGrpc.getGetGatewayMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getGetGatewayMethod = ApiGatewayServiceGrpc.getGetGatewayMethod) == null) { + ApiGatewayServiceGrpc.getGetGatewayMethod = + getGetGatewayMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.GetGatewayRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.Gateway.getDefaultInstance())) + .setSchemaDescriptor( + new ApiGatewayServiceMethodDescriptorSupplier("GetGateway")) + .build(); + } + } + } + return getGetGatewayMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.CreateGatewayRequest, com.google.longrunning.Operation> + getCreateGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGateway", + requestType = com.google.cloud.apigateway.v1.CreateGatewayRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.CreateGatewayRequest, com.google.longrunning.Operation> + getCreateGatewayMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.CreateGatewayRequest, com.google.longrunning.Operation> + getCreateGatewayMethod; + if ((getCreateGatewayMethod = ApiGatewayServiceGrpc.getCreateGatewayMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getCreateGatewayMethod = ApiGatewayServiceGrpc.getCreateGatewayMethod) == null) { + ApiGatewayServiceGrpc.getCreateGatewayMethod = + getCreateGatewayMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.CreateGatewayRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ApiGatewayServiceMethodDescriptorSupplier("CreateGateway")) + .build(); + } + } + } + return getCreateGatewayMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.UpdateGatewayRequest, com.google.longrunning.Operation> + getUpdateGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateGateway", + requestType = com.google.cloud.apigateway.v1.UpdateGatewayRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.UpdateGatewayRequest, com.google.longrunning.Operation> + getUpdateGatewayMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.UpdateGatewayRequest, com.google.longrunning.Operation> + getUpdateGatewayMethod; + if ((getUpdateGatewayMethod = ApiGatewayServiceGrpc.getUpdateGatewayMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getUpdateGatewayMethod = ApiGatewayServiceGrpc.getUpdateGatewayMethod) == null) { + ApiGatewayServiceGrpc.getUpdateGatewayMethod = + getUpdateGatewayMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.UpdateGatewayRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ApiGatewayServiceMethodDescriptorSupplier("UpdateGateway")) + .build(); + } + } + } + return getUpdateGatewayMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.DeleteGatewayRequest, com.google.longrunning.Operation> + getDeleteGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGateway", + requestType = com.google.cloud.apigateway.v1.DeleteGatewayRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.DeleteGatewayRequest, com.google.longrunning.Operation> + getDeleteGatewayMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.DeleteGatewayRequest, com.google.longrunning.Operation> + getDeleteGatewayMethod; + if ((getDeleteGatewayMethod = ApiGatewayServiceGrpc.getDeleteGatewayMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getDeleteGatewayMethod = ApiGatewayServiceGrpc.getDeleteGatewayMethod) == null) { + ApiGatewayServiceGrpc.getDeleteGatewayMethod = + getDeleteGatewayMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.DeleteGatewayRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ApiGatewayServiceMethodDescriptorSupplier("DeleteGateway")) + .build(); + } + } + } + return getDeleteGatewayMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.ListApisRequest, + com.google.cloud.apigateway.v1.ListApisResponse> + getListApisMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListApis", + requestType = com.google.cloud.apigateway.v1.ListApisRequest.class, + responseType = com.google.cloud.apigateway.v1.ListApisResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.ListApisRequest, + com.google.cloud.apigateway.v1.ListApisResponse> + getListApisMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.ListApisRequest, + com.google.cloud.apigateway.v1.ListApisResponse> + getListApisMethod; + if ((getListApisMethod = ApiGatewayServiceGrpc.getListApisMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getListApisMethod = ApiGatewayServiceGrpc.getListApisMethod) == null) { + ApiGatewayServiceGrpc.getListApisMethod = + getListApisMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListApis")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.ListApisRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.ListApisResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ApiGatewayServiceMethodDescriptorSupplier("ListApis")) + .build(); + } + } + } + return getListApisMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.GetApiRequest, com.google.cloud.apigateway.v1.Api> + getGetApiMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetApi", + requestType = com.google.cloud.apigateway.v1.GetApiRequest.class, + responseType = com.google.cloud.apigateway.v1.Api.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.GetApiRequest, com.google.cloud.apigateway.v1.Api> + getGetApiMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.GetApiRequest, com.google.cloud.apigateway.v1.Api> + getGetApiMethod; + if ((getGetApiMethod = ApiGatewayServiceGrpc.getGetApiMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getGetApiMethod = ApiGatewayServiceGrpc.getGetApiMethod) == null) { + ApiGatewayServiceGrpc.getGetApiMethod = + getGetApiMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetApi")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.GetApiRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.Api.getDefaultInstance())) + .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("GetApi")) + .build(); + } + } + } + return getGetApiMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.CreateApiRequest, com.google.longrunning.Operation> + getCreateApiMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateApi", + requestType = com.google.cloud.apigateway.v1.CreateApiRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.CreateApiRequest, com.google.longrunning.Operation> + getCreateApiMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.CreateApiRequest, com.google.longrunning.Operation> + getCreateApiMethod; + if ((getCreateApiMethod = ApiGatewayServiceGrpc.getCreateApiMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getCreateApiMethod = ApiGatewayServiceGrpc.getCreateApiMethod) == null) { + ApiGatewayServiceGrpc.getCreateApiMethod = + getCreateApiMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateApi")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.CreateApiRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ApiGatewayServiceMethodDescriptorSupplier("CreateApi")) + .build(); + } + } + } + return getCreateApiMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.UpdateApiRequest, com.google.longrunning.Operation> + getUpdateApiMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateApi", + requestType = com.google.cloud.apigateway.v1.UpdateApiRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.UpdateApiRequest, com.google.longrunning.Operation> + getUpdateApiMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.UpdateApiRequest, com.google.longrunning.Operation> + getUpdateApiMethod; + if ((getUpdateApiMethod = ApiGatewayServiceGrpc.getUpdateApiMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getUpdateApiMethod = ApiGatewayServiceGrpc.getUpdateApiMethod) == null) { + ApiGatewayServiceGrpc.getUpdateApiMethod = + getUpdateApiMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateApi")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.UpdateApiRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ApiGatewayServiceMethodDescriptorSupplier("UpdateApi")) + .build(); + } + } + } + return getUpdateApiMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.DeleteApiRequest, com.google.longrunning.Operation> + getDeleteApiMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteApi", + requestType = com.google.cloud.apigateway.v1.DeleteApiRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.DeleteApiRequest, com.google.longrunning.Operation> + getDeleteApiMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.DeleteApiRequest, com.google.longrunning.Operation> + getDeleteApiMethod; + if ((getDeleteApiMethod = ApiGatewayServiceGrpc.getDeleteApiMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getDeleteApiMethod = ApiGatewayServiceGrpc.getDeleteApiMethod) == null) { + ApiGatewayServiceGrpc.getDeleteApiMethod = + getDeleteApiMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteApi")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.DeleteApiRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ApiGatewayServiceMethodDescriptorSupplier("DeleteApi")) + .build(); + } + } + } + return getDeleteApiMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.ListApiConfigsRequest, + com.google.cloud.apigateway.v1.ListApiConfigsResponse> + getListApiConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListApiConfigs", + requestType = com.google.cloud.apigateway.v1.ListApiConfigsRequest.class, + responseType = com.google.cloud.apigateway.v1.ListApiConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.ListApiConfigsRequest, + com.google.cloud.apigateway.v1.ListApiConfigsResponse> + getListApiConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.ListApiConfigsRequest, + com.google.cloud.apigateway.v1.ListApiConfigsResponse> + getListApiConfigsMethod; + if ((getListApiConfigsMethod = ApiGatewayServiceGrpc.getListApiConfigsMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getListApiConfigsMethod = ApiGatewayServiceGrpc.getListApiConfigsMethod) == null) { + ApiGatewayServiceGrpc.getListApiConfigsMethod = + getListApiConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListApiConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.ListApiConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.ListApiConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ApiGatewayServiceMethodDescriptorSupplier("ListApiConfigs")) + .build(); + } + } + } + return getListApiConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.GetApiConfigRequest, + com.google.cloud.apigateway.v1.ApiConfig> + getGetApiConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetApiConfig", + requestType = com.google.cloud.apigateway.v1.GetApiConfigRequest.class, + responseType = com.google.cloud.apigateway.v1.ApiConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.GetApiConfigRequest, + com.google.cloud.apigateway.v1.ApiConfig> + getGetApiConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.GetApiConfigRequest, + com.google.cloud.apigateway.v1.ApiConfig> + getGetApiConfigMethod; + if ((getGetApiConfigMethod = ApiGatewayServiceGrpc.getGetApiConfigMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getGetApiConfigMethod = ApiGatewayServiceGrpc.getGetApiConfigMethod) == null) { + ApiGatewayServiceGrpc.getGetApiConfigMethod = + getGetApiConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetApiConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.GetApiConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance())) + .setSchemaDescriptor( + new ApiGatewayServiceMethodDescriptorSupplier("GetApiConfig")) + .build(); + } + } + } + return getGetApiConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.CreateApiConfigRequest, com.google.longrunning.Operation> + getCreateApiConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateApiConfig", + requestType = com.google.cloud.apigateway.v1.CreateApiConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.CreateApiConfigRequest, com.google.longrunning.Operation> + getCreateApiConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.CreateApiConfigRequest, com.google.longrunning.Operation> + getCreateApiConfigMethod; + if ((getCreateApiConfigMethod = ApiGatewayServiceGrpc.getCreateApiConfigMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getCreateApiConfigMethod = ApiGatewayServiceGrpc.getCreateApiConfigMethod) == null) { + ApiGatewayServiceGrpc.getCreateApiConfigMethod = + getCreateApiConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateApiConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.CreateApiConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ApiGatewayServiceMethodDescriptorSupplier("CreateApiConfig")) + .build(); + } + } + } + return getCreateApiConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.UpdateApiConfigRequest, com.google.longrunning.Operation> + getUpdateApiConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateApiConfig", + requestType = com.google.cloud.apigateway.v1.UpdateApiConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.UpdateApiConfigRequest, com.google.longrunning.Operation> + getUpdateApiConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.UpdateApiConfigRequest, com.google.longrunning.Operation> + getUpdateApiConfigMethod; + if ((getUpdateApiConfigMethod = ApiGatewayServiceGrpc.getUpdateApiConfigMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getUpdateApiConfigMethod = ApiGatewayServiceGrpc.getUpdateApiConfigMethod) == null) { + ApiGatewayServiceGrpc.getUpdateApiConfigMethod = + getUpdateApiConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateApiConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.UpdateApiConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ApiGatewayServiceMethodDescriptorSupplier("UpdateApiConfig")) + .build(); + } + } + } + return getUpdateApiConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.DeleteApiConfigRequest, com.google.longrunning.Operation> + getDeleteApiConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteApiConfig", + requestType = com.google.cloud.apigateway.v1.DeleteApiConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.DeleteApiConfigRequest, com.google.longrunning.Operation> + getDeleteApiConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.apigateway.v1.DeleteApiConfigRequest, com.google.longrunning.Operation> + getDeleteApiConfigMethod; + if ((getDeleteApiConfigMethod = ApiGatewayServiceGrpc.getDeleteApiConfigMethod) == null) { + synchronized (ApiGatewayServiceGrpc.class) { + if ((getDeleteApiConfigMethod = ApiGatewayServiceGrpc.getDeleteApiConfigMethod) == null) { + ApiGatewayServiceGrpc.getDeleteApiConfigMethod = + getDeleteApiConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteApiConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigateway.v1.DeleteApiConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ApiGatewayServiceMethodDescriptorSupplier("DeleteApiConfig")) + .build(); + } + } + } + return getDeleteApiConfigMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ApiGatewayServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ApiGatewayServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ApiGatewayServiceStub(channel, callOptions); + } + }; + return ApiGatewayServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ApiGatewayServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ApiGatewayServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ApiGatewayServiceBlockingStub(channel, callOptions); + } + }; + return ApiGatewayServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ApiGatewayServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ApiGatewayServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ApiGatewayServiceFutureStub(channel, callOptions); + } + }; + return ApiGatewayServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The API Gateway Service is the interface for managing API Gateways.
+   * 
+ */ + public abstract static class ApiGatewayServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists Gateways in a given project and location.
+     * 
+ */ + public void listGateways( + com.google.cloud.apigateway.v1.ListGatewaysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGatewaysMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Gateway.
+     * 
+ */ + public void getGateway( + com.google.cloud.apigateway.v1.GetGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGatewayMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Gateway in a given project and location.
+     * 
+ */ + public void createGateway( + com.google.cloud.apigateway.v1.CreateGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateGatewayMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Gateway.
+     * 
+ */ + public void updateGateway( + com.google.cloud.apigateway.v1.UpdateGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateGatewayMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Gateway.
+     * 
+ */ + public void deleteGateway( + com.google.cloud.apigateway.v1.DeleteGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGatewayMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Apis in a given project and location.
+     * 
+ */ + public void listApis( + com.google.cloud.apigateway.v1.ListApisRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListApisMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Api.
+     * 
+ */ + public void getApi( + com.google.cloud.apigateway.v1.GetApiRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetApiMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Api in a given project and location.
+     * 
+ */ + public void createApi( + com.google.cloud.apigateway.v1.CreateApiRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateApiMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Api.
+     * 
+ */ + public void updateApi( + com.google.cloud.apigateway.v1.UpdateApiRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateApiMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Api.
+     * 
+ */ + public void deleteApi( + com.google.cloud.apigateway.v1.DeleteApiRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteApiMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists ApiConfigs in a given project and location.
+     * 
+ */ + public void listApiConfigs( + com.google.cloud.apigateway.v1.ListApiConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListApiConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single ApiConfig.
+     * 
+ */ + public void getApiConfig( + com.google.cloud.apigateway.v1.GetApiConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetApiConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new ApiConfig in a given project and location.
+     * 
+ */ + public void createApiConfig( + com.google.cloud.apigateway.v1.CreateApiConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateApiConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single ApiConfig.
+     * 
+ */ + public void updateApiConfig( + com.google.cloud.apigateway.v1.UpdateApiConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateApiConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single ApiConfig.
+     * 
+ */ + public void deleteApiConfig( + com.google.cloud.apigateway.v1.DeleteApiConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteApiConfigMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListGatewaysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.ListGatewaysRequest, + com.google.cloud.apigateway.v1.ListGatewaysResponse>( + this, METHODID_LIST_GATEWAYS))) + .addMethod( + getGetGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.GetGatewayRequest, + com.google.cloud.apigateway.v1.Gateway>(this, METHODID_GET_GATEWAY))) + .addMethod( + getCreateGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.CreateGatewayRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_GATEWAY))) + .addMethod( + getUpdateGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.UpdateGatewayRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_GATEWAY))) + .addMethod( + getDeleteGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.DeleteGatewayRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_GATEWAY))) + .addMethod( + getListApisMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.ListApisRequest, + com.google.cloud.apigateway.v1.ListApisResponse>(this, METHODID_LIST_APIS))) + .addMethod( + getGetApiMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.GetApiRequest, + com.google.cloud.apigateway.v1.Api>(this, METHODID_GET_API))) + .addMethod( + getCreateApiMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.CreateApiRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_API))) + .addMethod( + getUpdateApiMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.UpdateApiRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_API))) + .addMethod( + getDeleteApiMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.DeleteApiRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_API))) + .addMethod( + getListApiConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.ListApiConfigsRequest, + com.google.cloud.apigateway.v1.ListApiConfigsResponse>( + this, METHODID_LIST_API_CONFIGS))) + .addMethod( + getGetApiConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.GetApiConfigRequest, + com.google.cloud.apigateway.v1.ApiConfig>(this, METHODID_GET_API_CONFIG))) + .addMethod( + getCreateApiConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.CreateApiConfigRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_API_CONFIG))) + .addMethod( + getUpdateApiConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.UpdateApiConfigRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_API_CONFIG))) + .addMethod( + getDeleteApiConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigateway.v1.DeleteApiConfigRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_API_CONFIG))) + .build(); + } + } + + /** + * + * + *
+   * The API Gateway Service is the interface for managing API Gateways.
+   * 
+ */ + public static final class ApiGatewayServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ApiGatewayServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ApiGatewayServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ApiGatewayServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Gateways in a given project and location.
+     * 
+ */ + public void listGateways( + com.google.cloud.apigateway.v1.ListGatewaysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGatewaysMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Gateway.
+     * 
+ */ + public void getGateway( + com.google.cloud.apigateway.v1.GetGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGatewayMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new Gateway in a given project and location.
+     * 
+ */ + public void createGateway( + com.google.cloud.apigateway.v1.CreateGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGatewayMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Gateway.
+     * 
+ */ + public void updateGateway( + com.google.cloud.apigateway.v1.UpdateGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateGatewayMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Gateway.
+     * 
+ */ + public void deleteGateway( + com.google.cloud.apigateway.v1.DeleteGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGatewayMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Apis in a given project and location.
+     * 
+ */ + public void listApis( + com.google.cloud.apigateway.v1.ListApisRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListApisMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Api.
+     * 
+ */ + public void getApi( + com.google.cloud.apigateway.v1.GetApiRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetApiMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new Api in a given project and location.
+     * 
+ */ + public void createApi( + com.google.cloud.apigateway.v1.CreateApiRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateApiMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Api.
+     * 
+ */ + public void updateApi( + com.google.cloud.apigateway.v1.UpdateApiRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateApiMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a single Api.
+     * 
+ */ + public void deleteApi( + com.google.cloud.apigateway.v1.DeleteApiRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteApiMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists ApiConfigs in a given project and location.
+     * 
+ */ + public void listApiConfigs( + com.google.cloud.apigateway.v1.ListApiConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListApiConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single ApiConfig.
+     * 
+ */ + public void getApiConfig( + com.google.cloud.apigateway.v1.GetApiConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetApiConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new ApiConfig in a given project and location.
+     * 
+ */ + public void createApiConfig( + com.google.cloud.apigateway.v1.CreateApiConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateApiConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single ApiConfig.
+     * 
+ */ + public void updateApiConfig( + com.google.cloud.apigateway.v1.UpdateApiConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateApiConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single ApiConfig.
+     * 
+ */ + public void deleteApiConfig( + com.google.cloud.apigateway.v1.DeleteApiConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteApiConfigMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * The API Gateway Service is the interface for managing API Gateways.
+   * 
+ */ + public static final class ApiGatewayServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ApiGatewayServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ApiGatewayServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ApiGatewayServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Gateways in a given project and location.
+     * 
+ */ + public com.google.cloud.apigateway.v1.ListGatewaysResponse listGateways( + com.google.cloud.apigateway.v1.ListGatewaysRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGatewaysMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Gateway.
+     * 
+ */ + public com.google.cloud.apigateway.v1.Gateway getGateway( + com.google.cloud.apigateway.v1.GetGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Gateway in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createGateway( + com.google.cloud.apigateway.v1.CreateGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Gateway.
+     * 
+ */ + public com.google.longrunning.Operation updateGateway( + com.google.cloud.apigateway.v1.UpdateGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Gateway.
+     * 
+ */ + public com.google.longrunning.Operation deleteGateway( + com.google.cloud.apigateway.v1.DeleteGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Apis in a given project and location.
+     * 
+ */ + public com.google.cloud.apigateway.v1.ListApisResponse listApis( + com.google.cloud.apigateway.v1.ListApisRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListApisMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Api.
+     * 
+ */ + public com.google.cloud.apigateway.v1.Api getApi( + com.google.cloud.apigateway.v1.GetApiRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetApiMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Api in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createApi( + com.google.cloud.apigateway.v1.CreateApiRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateApiMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Api.
+     * 
+ */ + public com.google.longrunning.Operation updateApi( + com.google.cloud.apigateway.v1.UpdateApiRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateApiMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Api.
+     * 
+ */ + public com.google.longrunning.Operation deleteApi( + com.google.cloud.apigateway.v1.DeleteApiRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteApiMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists ApiConfigs in a given project and location.
+     * 
+ */ + public com.google.cloud.apigateway.v1.ListApiConfigsResponse listApiConfigs( + com.google.cloud.apigateway.v1.ListApiConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListApiConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single ApiConfig.
+     * 
+ */ + public com.google.cloud.apigateway.v1.ApiConfig getApiConfig( + com.google.cloud.apigateway.v1.GetApiConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetApiConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new ApiConfig in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createApiConfig( + com.google.cloud.apigateway.v1.CreateApiConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateApiConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single ApiConfig.
+     * 
+ */ + public com.google.longrunning.Operation updateApiConfig( + com.google.cloud.apigateway.v1.UpdateApiConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateApiConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single ApiConfig.
+     * 
+ */ + public com.google.longrunning.Operation deleteApiConfig( + com.google.cloud.apigateway.v1.DeleteApiConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteApiConfigMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * The API Gateway Service is the interface for managing API Gateways.
+   * 
+ */ + public static final class ApiGatewayServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ApiGatewayServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ApiGatewayServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ApiGatewayServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Gateways in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.apigateway.v1.ListGatewaysResponse> + listGateways(com.google.cloud.apigateway.v1.ListGatewaysRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGatewaysMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Gateway.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.apigateway.v1.Gateway> + getGateway(com.google.cloud.apigateway.v1.GetGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGatewayMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Gateway in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createGateway(com.google.cloud.apigateway.v1.CreateGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGatewayMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Gateway.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateGateway(com.google.cloud.apigateway.v1.UpdateGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateGatewayMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Gateway.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteGateway(com.google.cloud.apigateway.v1.DeleteGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGatewayMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Apis in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.apigateway.v1.ListApisResponse> + listApis(com.google.cloud.apigateway.v1.ListApisRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListApisMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Api.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getApi(com.google.cloud.apigateway.v1.GetApiRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetApiMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Api in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createApi(com.google.cloud.apigateway.v1.CreateApiRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateApiMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Api.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateApi(com.google.cloud.apigateway.v1.UpdateApiRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateApiMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Api.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteApi(com.google.cloud.apigateway.v1.DeleteApiRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteApiMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists ApiConfigs in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.apigateway.v1.ListApiConfigsResponse> + listApiConfigs(com.google.cloud.apigateway.v1.ListApiConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListApiConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single ApiConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.apigateway.v1.ApiConfig> + getApiConfig(com.google.cloud.apigateway.v1.GetApiConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetApiConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new ApiConfig in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createApiConfig(com.google.cloud.apigateway.v1.CreateApiConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateApiConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single ApiConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateApiConfig(com.google.cloud.apigateway.v1.UpdateApiConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateApiConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single ApiConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteApiConfig(com.google.cloud.apigateway.v1.DeleteApiConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteApiConfigMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_GATEWAYS = 0; + private static final int METHODID_GET_GATEWAY = 1; + private static final int METHODID_CREATE_GATEWAY = 2; + private static final int METHODID_UPDATE_GATEWAY = 3; + private static final int METHODID_DELETE_GATEWAY = 4; + private static final int METHODID_LIST_APIS = 5; + private static final int METHODID_GET_API = 6; + private static final int METHODID_CREATE_API = 7; + private static final int METHODID_UPDATE_API = 8; + private static final int METHODID_DELETE_API = 9; + private static final int METHODID_LIST_API_CONFIGS = 10; + private static final int METHODID_GET_API_CONFIG = 11; + private static final int METHODID_CREATE_API_CONFIG = 12; + private static final int METHODID_UPDATE_API_CONFIG = 13; + private static final int METHODID_DELETE_API_CONFIG = 14; + + 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 ApiGatewayServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ApiGatewayServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_GATEWAYS: + serviceImpl.listGateways( + (com.google.cloud.apigateway.v1.ListGatewaysRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_GATEWAY: + serviceImpl.getGateway( + (com.google.cloud.apigateway.v1.GetGatewayRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_GATEWAY: + serviceImpl.createGateway( + (com.google.cloud.apigateway.v1.CreateGatewayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_GATEWAY: + serviceImpl.updateGateway( + (com.google.cloud.apigateway.v1.UpdateGatewayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_GATEWAY: + serviceImpl.deleteGateway( + (com.google.cloud.apigateway.v1.DeleteGatewayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_APIS: + serviceImpl.listApis( + (com.google.cloud.apigateway.v1.ListApisRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_API: + serviceImpl.getApi( + (com.google.cloud.apigateway.v1.GetApiRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_API: + serviceImpl.createApi( + (com.google.cloud.apigateway.v1.CreateApiRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_API: + serviceImpl.updateApi( + (com.google.cloud.apigateway.v1.UpdateApiRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_API: + serviceImpl.deleteApi( + (com.google.cloud.apigateway.v1.DeleteApiRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_API_CONFIGS: + serviceImpl.listApiConfigs( + (com.google.cloud.apigateway.v1.ListApiConfigsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_API_CONFIG: + serviceImpl.getApiConfig( + (com.google.cloud.apigateway.v1.GetApiConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_API_CONFIG: + serviceImpl.createApiConfig( + (com.google.cloud.apigateway.v1.CreateApiConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_API_CONFIG: + serviceImpl.updateApiConfig( + (com.google.cloud.apigateway.v1.UpdateApiConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_API_CONFIG: + serviceImpl.deleteApiConfig( + (com.google.cloud.apigateway.v1.DeleteApiConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class ApiGatewayServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ApiGatewayServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.apigateway.v1.ApigatewayService.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ApiGatewayService"); + } + } + + private static final class ApiGatewayServiceFileDescriptorSupplier + extends ApiGatewayServiceBaseDescriptorSupplier { + ApiGatewayServiceFileDescriptorSupplier() {} + } + + private static final class ApiGatewayServiceMethodDescriptorSupplier + extends ApiGatewayServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ApiGatewayServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ApiGatewayServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ApiGatewayServiceFileDescriptorSupplier()) + .addMethod(getListGatewaysMethod()) + .addMethod(getGetGatewayMethod()) + .addMethod(getCreateGatewayMethod()) + .addMethod(getUpdateGatewayMethod()) + .addMethod(getDeleteGatewayMethod()) + .addMethod(getListApisMethod()) + .addMethod(getGetApiMethod()) + .addMethod(getCreateApiMethod()) + .addMethod(getUpdateApiMethod()) + .addMethod(getDeleteApiMethod()) + .addMethod(getListApiConfigsMethod()) + .addMethod(getGetApiConfigMethod()) + .addMethod(getCreateApiConfigMethod()) + .addMethod(getUpdateApiConfigMethod()) + .addMethod(getDeleteApiConfigMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java deleted file mode 100644 index 1b1c954..0000000 --- a/owl-bot-staging/v1/grpc-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiGatewayServiceGrpc.java +++ /dev/null @@ -1,1507 +0,0 @@ -package com.google.cloud.apigateway.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * The API Gateway Service is the interface for managing API Gateways.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/apigateway/v1/apigateway_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ApiGatewayServiceGrpc { - - private ApiGatewayServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.apigateway.v1.ApiGatewayService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListGatewaysMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListGateways", - requestType = com.google.cloud.apigateway.v1.ListGatewaysRequest.class, - responseType = com.google.cloud.apigateway.v1.ListGatewaysResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListGatewaysMethod() { - io.grpc.MethodDescriptor getListGatewaysMethod; - if ((getListGatewaysMethod = ApiGatewayServiceGrpc.getListGatewaysMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getListGatewaysMethod = ApiGatewayServiceGrpc.getListGatewaysMethod) == null) { - ApiGatewayServiceGrpc.getListGatewaysMethod = getListGatewaysMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGateways")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.ListGatewaysRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.ListGatewaysResponse.getDefaultInstance())) - .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("ListGateways")) - .build(); - } - } - } - return getListGatewaysMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetGatewayMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGateway", - requestType = com.google.cloud.apigateway.v1.GetGatewayRequest.class, - responseType = com.google.cloud.apigateway.v1.Gateway.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetGatewayMethod() { - io.grpc.MethodDescriptor getGetGatewayMethod; - if ((getGetGatewayMethod = ApiGatewayServiceGrpc.getGetGatewayMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getGetGatewayMethod = ApiGatewayServiceGrpc.getGetGatewayMethod) == null) { - ApiGatewayServiceGrpc.getGetGatewayMethod = getGetGatewayMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGateway")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.GetGatewayRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.Gateway.getDefaultInstance())) - .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("GetGateway")) - .build(); - } - } - } - return getGetGatewayMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateGatewayMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateGateway", - requestType = com.google.cloud.apigateway.v1.CreateGatewayRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateGatewayMethod() { - io.grpc.MethodDescriptor getCreateGatewayMethod; - if ((getCreateGatewayMethod = ApiGatewayServiceGrpc.getCreateGatewayMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getCreateGatewayMethod = ApiGatewayServiceGrpc.getCreateGatewayMethod) == null) { - ApiGatewayServiceGrpc.getCreateGatewayMethod = getCreateGatewayMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGateway")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.CreateGatewayRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("CreateGateway")) - .build(); - } - } - } - return getCreateGatewayMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateGatewayMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateGateway", - requestType = com.google.cloud.apigateway.v1.UpdateGatewayRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateGatewayMethod() { - io.grpc.MethodDescriptor getUpdateGatewayMethod; - if ((getUpdateGatewayMethod = ApiGatewayServiceGrpc.getUpdateGatewayMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getUpdateGatewayMethod = ApiGatewayServiceGrpc.getUpdateGatewayMethod) == null) { - ApiGatewayServiceGrpc.getUpdateGatewayMethod = getUpdateGatewayMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateGateway")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.UpdateGatewayRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("UpdateGateway")) - .build(); - } - } - } - return getUpdateGatewayMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteGatewayMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteGateway", - requestType = com.google.cloud.apigateway.v1.DeleteGatewayRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteGatewayMethod() { - io.grpc.MethodDescriptor getDeleteGatewayMethod; - if ((getDeleteGatewayMethod = ApiGatewayServiceGrpc.getDeleteGatewayMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getDeleteGatewayMethod = ApiGatewayServiceGrpc.getDeleteGatewayMethod) == null) { - ApiGatewayServiceGrpc.getDeleteGatewayMethod = getDeleteGatewayMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGateway")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.DeleteGatewayRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("DeleteGateway")) - .build(); - } - } - } - return getDeleteGatewayMethod; - } - - private static volatile io.grpc.MethodDescriptor getListApisMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListApis", - requestType = com.google.cloud.apigateway.v1.ListApisRequest.class, - responseType = com.google.cloud.apigateway.v1.ListApisResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListApisMethod() { - io.grpc.MethodDescriptor getListApisMethod; - if ((getListApisMethod = ApiGatewayServiceGrpc.getListApisMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getListApisMethod = ApiGatewayServiceGrpc.getListApisMethod) == null) { - ApiGatewayServiceGrpc.getListApisMethod = getListApisMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListApis")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.ListApisRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.ListApisResponse.getDefaultInstance())) - .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("ListApis")) - .build(); - } - } - } - return getListApisMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetApiMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetApi", - requestType = com.google.cloud.apigateway.v1.GetApiRequest.class, - responseType = com.google.cloud.apigateway.v1.Api.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetApiMethod() { - io.grpc.MethodDescriptor getGetApiMethod; - if ((getGetApiMethod = ApiGatewayServiceGrpc.getGetApiMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getGetApiMethod = ApiGatewayServiceGrpc.getGetApiMethod) == null) { - ApiGatewayServiceGrpc.getGetApiMethod = getGetApiMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetApi")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.GetApiRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.Api.getDefaultInstance())) - .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("GetApi")) - .build(); - } - } - } - return getGetApiMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateApiMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateApi", - requestType = com.google.cloud.apigateway.v1.CreateApiRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateApiMethod() { - io.grpc.MethodDescriptor getCreateApiMethod; - if ((getCreateApiMethod = ApiGatewayServiceGrpc.getCreateApiMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getCreateApiMethod = ApiGatewayServiceGrpc.getCreateApiMethod) == null) { - ApiGatewayServiceGrpc.getCreateApiMethod = getCreateApiMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateApi")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.CreateApiRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("CreateApi")) - .build(); - } - } - } - return getCreateApiMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateApiMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateApi", - requestType = com.google.cloud.apigateway.v1.UpdateApiRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateApiMethod() { - io.grpc.MethodDescriptor getUpdateApiMethod; - if ((getUpdateApiMethod = ApiGatewayServiceGrpc.getUpdateApiMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getUpdateApiMethod = ApiGatewayServiceGrpc.getUpdateApiMethod) == null) { - ApiGatewayServiceGrpc.getUpdateApiMethod = getUpdateApiMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateApi")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.UpdateApiRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("UpdateApi")) - .build(); - } - } - } - return getUpdateApiMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteApiMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteApi", - requestType = com.google.cloud.apigateway.v1.DeleteApiRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteApiMethod() { - io.grpc.MethodDescriptor getDeleteApiMethod; - if ((getDeleteApiMethod = ApiGatewayServiceGrpc.getDeleteApiMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getDeleteApiMethod = ApiGatewayServiceGrpc.getDeleteApiMethod) == null) { - ApiGatewayServiceGrpc.getDeleteApiMethod = getDeleteApiMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteApi")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.DeleteApiRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("DeleteApi")) - .build(); - } - } - } - return getDeleteApiMethod; - } - - private static volatile io.grpc.MethodDescriptor getListApiConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListApiConfigs", - requestType = com.google.cloud.apigateway.v1.ListApiConfigsRequest.class, - responseType = com.google.cloud.apigateway.v1.ListApiConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListApiConfigsMethod() { - io.grpc.MethodDescriptor getListApiConfigsMethod; - if ((getListApiConfigsMethod = ApiGatewayServiceGrpc.getListApiConfigsMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getListApiConfigsMethod = ApiGatewayServiceGrpc.getListApiConfigsMethod) == null) { - ApiGatewayServiceGrpc.getListApiConfigsMethod = getListApiConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListApiConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.ListApiConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.ListApiConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("ListApiConfigs")) - .build(); - } - } - } - return getListApiConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetApiConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetApiConfig", - requestType = com.google.cloud.apigateway.v1.GetApiConfigRequest.class, - responseType = com.google.cloud.apigateway.v1.ApiConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetApiConfigMethod() { - io.grpc.MethodDescriptor getGetApiConfigMethod; - if ((getGetApiConfigMethod = ApiGatewayServiceGrpc.getGetApiConfigMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getGetApiConfigMethod = ApiGatewayServiceGrpc.getGetApiConfigMethod) == null) { - ApiGatewayServiceGrpc.getGetApiConfigMethod = getGetApiConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetApiConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.GetApiConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance())) - .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("GetApiConfig")) - .build(); - } - } - } - return getGetApiConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateApiConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateApiConfig", - requestType = com.google.cloud.apigateway.v1.CreateApiConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateApiConfigMethod() { - io.grpc.MethodDescriptor getCreateApiConfigMethod; - if ((getCreateApiConfigMethod = ApiGatewayServiceGrpc.getCreateApiConfigMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getCreateApiConfigMethod = ApiGatewayServiceGrpc.getCreateApiConfigMethod) == null) { - ApiGatewayServiceGrpc.getCreateApiConfigMethod = getCreateApiConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateApiConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.CreateApiConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("CreateApiConfig")) - .build(); - } - } - } - return getCreateApiConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateApiConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateApiConfig", - requestType = com.google.cloud.apigateway.v1.UpdateApiConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateApiConfigMethod() { - io.grpc.MethodDescriptor getUpdateApiConfigMethod; - if ((getUpdateApiConfigMethod = ApiGatewayServiceGrpc.getUpdateApiConfigMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getUpdateApiConfigMethod = ApiGatewayServiceGrpc.getUpdateApiConfigMethod) == null) { - ApiGatewayServiceGrpc.getUpdateApiConfigMethod = getUpdateApiConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateApiConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.UpdateApiConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("UpdateApiConfig")) - .build(); - } - } - } - return getUpdateApiConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteApiConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteApiConfig", - requestType = com.google.cloud.apigateway.v1.DeleteApiConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteApiConfigMethod() { - io.grpc.MethodDescriptor getDeleteApiConfigMethod; - if ((getDeleteApiConfigMethod = ApiGatewayServiceGrpc.getDeleteApiConfigMethod) == null) { - synchronized (ApiGatewayServiceGrpc.class) { - if ((getDeleteApiConfigMethod = ApiGatewayServiceGrpc.getDeleteApiConfigMethod) == null) { - ApiGatewayServiceGrpc.getDeleteApiConfigMethod = getDeleteApiConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteApiConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigateway.v1.DeleteApiConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ApiGatewayServiceMethodDescriptorSupplier("DeleteApiConfig")) - .build(); - } - } - } - return getDeleteApiConfigMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ApiGatewayServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ApiGatewayServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApiGatewayServiceStub(channel, callOptions); - } - }; - return ApiGatewayServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ApiGatewayServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ApiGatewayServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApiGatewayServiceBlockingStub(channel, callOptions); - } - }; - return ApiGatewayServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ApiGatewayServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ApiGatewayServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApiGatewayServiceFutureStub(channel, callOptions); - } - }; - return ApiGatewayServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * The API Gateway Service is the interface for managing API Gateways.
-   * 
- */ - public static abstract class ApiGatewayServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists Gateways in a given project and location.
-     * 
- */ - public void listGateways(com.google.cloud.apigateway.v1.ListGatewaysRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGatewaysMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Gateway.
-     * 
- */ - public void getGateway(com.google.cloud.apigateway.v1.GetGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGatewayMethod(), responseObserver); - } - - /** - *
-     * Creates a new Gateway in a given project and location.
-     * 
- */ - public void createGateway(com.google.cloud.apigateway.v1.CreateGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateGatewayMethod(), responseObserver); - } - - /** - *
-     * Updates the parameters of a single Gateway.
-     * 
- */ - public void updateGateway(com.google.cloud.apigateway.v1.UpdateGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateGatewayMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Gateway.
-     * 
- */ - public void deleteGateway(com.google.cloud.apigateway.v1.DeleteGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGatewayMethod(), responseObserver); - } - - /** - *
-     * Lists Apis in a given project and location.
-     * 
- */ - public void listApis(com.google.cloud.apigateway.v1.ListApisRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListApisMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Api.
-     * 
- */ - public void getApi(com.google.cloud.apigateway.v1.GetApiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetApiMethod(), responseObserver); - } - - /** - *
-     * Creates a new Api in a given project and location.
-     * 
- */ - public void createApi(com.google.cloud.apigateway.v1.CreateApiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateApiMethod(), responseObserver); - } - - /** - *
-     * Updates the parameters of a single Api.
-     * 
- */ - public void updateApi(com.google.cloud.apigateway.v1.UpdateApiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateApiMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Api.
-     * 
- */ - public void deleteApi(com.google.cloud.apigateway.v1.DeleteApiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteApiMethod(), responseObserver); - } - - /** - *
-     * Lists ApiConfigs in a given project and location.
-     * 
- */ - public void listApiConfigs(com.google.cloud.apigateway.v1.ListApiConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListApiConfigsMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single ApiConfig.
-     * 
- */ - public void getApiConfig(com.google.cloud.apigateway.v1.GetApiConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetApiConfigMethod(), responseObserver); - } - - /** - *
-     * Creates a new ApiConfig in a given project and location.
-     * 
- */ - public void createApiConfig(com.google.cloud.apigateway.v1.CreateApiConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateApiConfigMethod(), responseObserver); - } - - /** - *
-     * Updates the parameters of a single ApiConfig.
-     * 
- */ - public void updateApiConfig(com.google.cloud.apigateway.v1.UpdateApiConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateApiConfigMethod(), responseObserver); - } - - /** - *
-     * Deletes a single ApiConfig.
-     * 
- */ - public void deleteApiConfig(com.google.cloud.apigateway.v1.DeleteApiConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteApiConfigMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListGatewaysMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.ListGatewaysRequest, - com.google.cloud.apigateway.v1.ListGatewaysResponse>( - this, METHODID_LIST_GATEWAYS))) - .addMethod( - getGetGatewayMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.GetGatewayRequest, - com.google.cloud.apigateway.v1.Gateway>( - this, METHODID_GET_GATEWAY))) - .addMethod( - getCreateGatewayMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.CreateGatewayRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_GATEWAY))) - .addMethod( - getUpdateGatewayMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.UpdateGatewayRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_GATEWAY))) - .addMethod( - getDeleteGatewayMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.DeleteGatewayRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_GATEWAY))) - .addMethod( - getListApisMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.ListApisRequest, - com.google.cloud.apigateway.v1.ListApisResponse>( - this, METHODID_LIST_APIS))) - .addMethod( - getGetApiMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.GetApiRequest, - com.google.cloud.apigateway.v1.Api>( - this, METHODID_GET_API))) - .addMethod( - getCreateApiMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.CreateApiRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_API))) - .addMethod( - getUpdateApiMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.UpdateApiRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_API))) - .addMethod( - getDeleteApiMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.DeleteApiRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_API))) - .addMethod( - getListApiConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.ListApiConfigsRequest, - com.google.cloud.apigateway.v1.ListApiConfigsResponse>( - this, METHODID_LIST_API_CONFIGS))) - .addMethod( - getGetApiConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.GetApiConfigRequest, - com.google.cloud.apigateway.v1.ApiConfig>( - this, METHODID_GET_API_CONFIG))) - .addMethod( - getCreateApiConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.CreateApiConfigRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_API_CONFIG))) - .addMethod( - getUpdateApiConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.UpdateApiConfigRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_API_CONFIG))) - .addMethod( - getDeleteApiConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigateway.v1.DeleteApiConfigRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_API_CONFIG))) - .build(); - } - } - - /** - *
-   * The API Gateway Service is the interface for managing API Gateways.
-   * 
- */ - public static final class ApiGatewayServiceStub extends io.grpc.stub.AbstractAsyncStub { - private ApiGatewayServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ApiGatewayServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApiGatewayServiceStub(channel, callOptions); - } - - /** - *
-     * Lists Gateways in a given project and location.
-     * 
- */ - public void listGateways(com.google.cloud.apigateway.v1.ListGatewaysRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGatewaysMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Gateway.
-     * 
- */ - public void getGateway(com.google.cloud.apigateway.v1.GetGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGatewayMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Gateway in a given project and location.
-     * 
- */ - public void createGateway(com.google.cloud.apigateway.v1.CreateGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGatewayMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the parameters of a single Gateway.
-     * 
- */ - public void updateGateway(com.google.cloud.apigateway.v1.UpdateGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateGatewayMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single Gateway.
-     * 
- */ - public void deleteGateway(com.google.cloud.apigateway.v1.DeleteGatewayRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGatewayMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists Apis in a given project and location.
-     * 
- */ - public void listApis(com.google.cloud.apigateway.v1.ListApisRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListApisMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Api.
-     * 
- */ - public void getApi(com.google.cloud.apigateway.v1.GetApiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetApiMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Api in a given project and location.
-     * 
- */ - public void createApi(com.google.cloud.apigateway.v1.CreateApiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateApiMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the parameters of a single Api.
-     * 
- */ - public void updateApi(com.google.cloud.apigateway.v1.UpdateApiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateApiMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single Api.
-     * 
- */ - public void deleteApi(com.google.cloud.apigateway.v1.DeleteApiRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteApiMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists ApiConfigs in a given project and location.
-     * 
- */ - public void listApiConfigs(com.google.cloud.apigateway.v1.ListApiConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListApiConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single ApiConfig.
-     * 
- */ - public void getApiConfig(com.google.cloud.apigateway.v1.GetApiConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetApiConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new ApiConfig in a given project and location.
-     * 
- */ - public void createApiConfig(com.google.cloud.apigateway.v1.CreateApiConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateApiConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the parameters of a single ApiConfig.
-     * 
- */ - public void updateApiConfig(com.google.cloud.apigateway.v1.UpdateApiConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateApiConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single ApiConfig.
-     * 
- */ - public void deleteApiConfig(com.google.cloud.apigateway.v1.DeleteApiConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteApiConfigMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * The API Gateway Service is the interface for managing API Gateways.
-   * 
- */ - public static final class ApiGatewayServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ApiGatewayServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ApiGatewayServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApiGatewayServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists Gateways in a given project and location.
-     * 
- */ - public com.google.cloud.apigateway.v1.ListGatewaysResponse listGateways(com.google.cloud.apigateway.v1.ListGatewaysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGatewaysMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Gateway.
-     * 
- */ - public com.google.cloud.apigateway.v1.Gateway getGateway(com.google.cloud.apigateway.v1.GetGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGatewayMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Gateway in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createGateway(com.google.cloud.apigateway.v1.CreateGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGatewayMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the parameters of a single Gateway.
-     * 
- */ - public com.google.longrunning.Operation updateGateway(com.google.cloud.apigateway.v1.UpdateGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateGatewayMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single Gateway.
-     * 
- */ - public com.google.longrunning.Operation deleteGateway(com.google.cloud.apigateway.v1.DeleteGatewayRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGatewayMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists Apis in a given project and location.
-     * 
- */ - public com.google.cloud.apigateway.v1.ListApisResponse listApis(com.google.cloud.apigateway.v1.ListApisRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListApisMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Api.
-     * 
- */ - public com.google.cloud.apigateway.v1.Api getApi(com.google.cloud.apigateway.v1.GetApiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetApiMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Api in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createApi(com.google.cloud.apigateway.v1.CreateApiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateApiMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the parameters of a single Api.
-     * 
- */ - public com.google.longrunning.Operation updateApi(com.google.cloud.apigateway.v1.UpdateApiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateApiMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single Api.
-     * 
- */ - public com.google.longrunning.Operation deleteApi(com.google.cloud.apigateway.v1.DeleteApiRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteApiMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists ApiConfigs in a given project and location.
-     * 
- */ - public com.google.cloud.apigateway.v1.ListApiConfigsResponse listApiConfigs(com.google.cloud.apigateway.v1.ListApiConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListApiConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single ApiConfig.
-     * 
- */ - public com.google.cloud.apigateway.v1.ApiConfig getApiConfig(com.google.cloud.apigateway.v1.GetApiConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetApiConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new ApiConfig in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createApiConfig(com.google.cloud.apigateway.v1.CreateApiConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateApiConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the parameters of a single ApiConfig.
-     * 
- */ - public com.google.longrunning.Operation updateApiConfig(com.google.cloud.apigateway.v1.UpdateApiConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateApiConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single ApiConfig.
-     * 
- */ - public com.google.longrunning.Operation deleteApiConfig(com.google.cloud.apigateway.v1.DeleteApiConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteApiConfigMethod(), getCallOptions(), request); - } - } - - /** - *
-   * The API Gateway Service is the interface for managing API Gateways.
-   * 
- */ - public static final class ApiGatewayServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private ApiGatewayServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ApiGatewayServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApiGatewayServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists Gateways in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listGateways( - com.google.cloud.apigateway.v1.ListGatewaysRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGatewaysMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Gateway.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getGateway( - com.google.cloud.apigateway.v1.GetGatewayRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGatewayMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Gateway in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createGateway( - com.google.cloud.apigateway.v1.CreateGatewayRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateGatewayMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the parameters of a single Gateway.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateGateway( - com.google.cloud.apigateway.v1.UpdateGatewayRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateGatewayMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single Gateway.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteGateway( - com.google.cloud.apigateway.v1.DeleteGatewayRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteGatewayMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists Apis in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listApis( - com.google.cloud.apigateway.v1.ListApisRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListApisMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Api.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getApi( - com.google.cloud.apigateway.v1.GetApiRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetApiMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Api in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createApi( - com.google.cloud.apigateway.v1.CreateApiRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateApiMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the parameters of a single Api.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateApi( - com.google.cloud.apigateway.v1.UpdateApiRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateApiMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single Api.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteApi( - com.google.cloud.apigateway.v1.DeleteApiRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteApiMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists ApiConfigs in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listApiConfigs( - com.google.cloud.apigateway.v1.ListApiConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListApiConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single ApiConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getApiConfig( - com.google.cloud.apigateway.v1.GetApiConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetApiConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new ApiConfig in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createApiConfig( - com.google.cloud.apigateway.v1.CreateApiConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateApiConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the parameters of a single ApiConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateApiConfig( - com.google.cloud.apigateway.v1.UpdateApiConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateApiConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single ApiConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteApiConfig( - com.google.cloud.apigateway.v1.DeleteApiConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteApiConfigMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_GATEWAYS = 0; - private static final int METHODID_GET_GATEWAY = 1; - private static final int METHODID_CREATE_GATEWAY = 2; - private static final int METHODID_UPDATE_GATEWAY = 3; - private static final int METHODID_DELETE_GATEWAY = 4; - private static final int METHODID_LIST_APIS = 5; - private static final int METHODID_GET_API = 6; - private static final int METHODID_CREATE_API = 7; - private static final int METHODID_UPDATE_API = 8; - private static final int METHODID_DELETE_API = 9; - private static final int METHODID_LIST_API_CONFIGS = 10; - private static final int METHODID_GET_API_CONFIG = 11; - private static final int METHODID_CREATE_API_CONFIG = 12; - private static final int METHODID_UPDATE_API_CONFIG = 13; - private static final int METHODID_DELETE_API_CONFIG = 14; - - 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 ApiGatewayServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ApiGatewayServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_GATEWAYS: - serviceImpl.listGateways((com.google.cloud.apigateway.v1.ListGatewaysRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_GATEWAY: - serviceImpl.getGateway((com.google.cloud.apigateway.v1.GetGatewayRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_GATEWAY: - serviceImpl.createGateway((com.google.cloud.apigateway.v1.CreateGatewayRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_GATEWAY: - serviceImpl.updateGateway((com.google.cloud.apigateway.v1.UpdateGatewayRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_GATEWAY: - serviceImpl.deleteGateway((com.google.cloud.apigateway.v1.DeleteGatewayRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_APIS: - serviceImpl.listApis((com.google.cloud.apigateway.v1.ListApisRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_API: - serviceImpl.getApi((com.google.cloud.apigateway.v1.GetApiRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_API: - serviceImpl.createApi((com.google.cloud.apigateway.v1.CreateApiRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_API: - serviceImpl.updateApi((com.google.cloud.apigateway.v1.UpdateApiRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_API: - serviceImpl.deleteApi((com.google.cloud.apigateway.v1.DeleteApiRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_API_CONFIGS: - serviceImpl.listApiConfigs((com.google.cloud.apigateway.v1.ListApiConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_API_CONFIG: - serviceImpl.getApiConfig((com.google.cloud.apigateway.v1.GetApiConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_API_CONFIG: - serviceImpl.createApiConfig((com.google.cloud.apigateway.v1.CreateApiConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_API_CONFIG: - serviceImpl.updateApiConfig((com.google.cloud.apigateway.v1.UpdateApiConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_API_CONFIG: - serviceImpl.deleteApiConfig((com.google.cloud.apigateway.v1.DeleteApiConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class ApiGatewayServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ApiGatewayServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.apigateway.v1.ApigatewayService.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ApiGatewayService"); - } - } - - private static final class ApiGatewayServiceFileDescriptorSupplier - extends ApiGatewayServiceBaseDescriptorSupplier { - ApiGatewayServiceFileDescriptorSupplier() {} - } - - private static final class ApiGatewayServiceMethodDescriptorSupplier - extends ApiGatewayServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ApiGatewayServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ApiGatewayServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ApiGatewayServiceFileDescriptorSupplier()) - .addMethod(getListGatewaysMethod()) - .addMethod(getGetGatewayMethod()) - .addMethod(getCreateGatewayMethod()) - .addMethod(getUpdateGatewayMethod()) - .addMethod(getDeleteGatewayMethod()) - .addMethod(getListApisMethod()) - .addMethod(getGetApiMethod()) - .addMethod(getCreateApiMethod()) - .addMethod(getUpdateApiMethod()) - .addMethod(getDeleteApiMethod()) - .addMethod(getListApiConfigsMethod()) - .addMethod(getGetApiConfigMethod()) - .addMethod(getCreateApiConfigMethod()) - .addMethod(getUpdateApiConfigMethod()) - .addMethod(getDeleteApiConfigMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Apigateway.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Apigateway.java deleted file mode 100644 index 703fe24..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Apigateway.java +++ /dev/null @@ -1,520 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/apigateway/v1/apigateway.proto - -package com.google.cloud.apigateway.v1; - -public final class Apigateway { - private Apigateway() {} - 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_apigateway_v1_Api_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_Api_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ApiConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ApiConfig_File_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_Gateway_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_Gateway_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_GetGatewayRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ListApisRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ListApisResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_GetApiRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_CreateApiRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_UpdateApiRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_DeleteApiRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_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/apigateway/v1/apigateway." + - "proto\022\032google.cloud.apigateway.v1\032\037googl" + - "e/api/field_behavior.proto\032\031google/api/r" + - "esource.proto\032 google/protobuf/field_mas" + - "k.proto\032\037google/protobuf/timestamp.proto" + - "\032\034google/api/annotations.proto\"\326\004\n\003Api\022\021" + - "\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032" + - ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + - "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + - "B\003\340A\003\022@\n\006labels\030\004 \003(\0132+.google.cloud.api" + - "gateway.v1.Api.LabelsEntryB\003\340A\001\022\031\n\014displ" + - "ay_name\030\005 \001(\tB\003\340A\001\022S\n\017managed_service\030\007 " + - "\001(\tB:\340A\005\340A\001\372A1\n/servicemanagement.google" + - "apis.com/ManagedService\0229\n\005state\030\014 \001(\0162%" + - ".google.cloud.apigateway.v1.Api.StateB\003\340" + - "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + - "\002 \001(\t:\0028\001\"`\n\005State\022\025\n\021STATE_UNSPECIFIED\020" + - "\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED\020\003\022" + - "\014\n\010DELETING\020\004\022\014\n\010UPDATING\020\005:R\352AO\n\035apigat" + - "eway.googleapis.com/Api\022.projects/{proje" + - "ct}/locations/global/apis/{api}\"\373\t\n\tApiC" + - "onfig\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030" + - "\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + - "\n\013update_time\030\003 \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\003\022F\n\006labels\030\004 \003(\01321.google.cl" + - "oud.apigateway.v1.ApiConfig.LabelsEntryB" + - "\003\340A\001\022\031\n\014display_name\030\005 \001(\tB\003\340A\001\022J\n\027gatew" + - "ay_service_account\030\016 \001(\tB)\340A\005\372A#\n!iam.go" + - "ogleapis.com/ServiceAccount\022K\n\021service_c" + - "onfig_id\030\014 \001(\tB0\340A\003\372A*\n(servicemanagemen" + - "t.googleapis.com/Service\022?\n\005state\030\010 \001(\0162" + - "+.google.cloud.apigateway.v1.ApiConfig.S" + - "tateB\003\340A\003\022U\n\021openapi_documents\030\t \003(\01325.g" + - "oogle.cloud.apigateway.v1.ApiConfig.Open" + - "ApiDocumentB\003\340A\001\022W\n\rgrpc_services\030\n \003(\0132" + - ";.google.cloud.apigateway.v1.ApiConfig.G" + - "rpcServiceDefinitionB\003\340A\001\022P\n\027managed_ser" + - "vice_configs\030\013 \003(\0132*.google.cloud.apigat" + - "eway.v1.ApiConfig.FileB\003\340A\001\032&\n\004File\022\014\n\004p" + - "ath\030\001 \001(\t\022\020\n\010contents\030\002 \001(\014\032O\n\017OpenApiDo" + - "cument\022<\n\010document\030\001 \001(\0132*.google.cloud." + - "apigateway.v1.ApiConfig.File\032\246\001\n\025GrpcSer" + - "viceDefinition\022L\n\023file_descriptor_set\030\001 " + - "\001(\0132*.google.cloud.apigateway.v1.ApiConf" + - "ig.FileB\003\340A\004\022?\n\006source\030\002 \003(\0132*.google.cl" + - "oud.apigateway.v1.ApiConfig.FileB\003\340A\001\032-\n" + - "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + - ":\0028\001\"p\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010" + - "CREATING\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED\020\003\022\014\n\010DE" + - "LETING\020\004\022\014\n\010UPDATING\020\005\022\016\n\nACTIVATING\020\006:m" + - "\352Aj\n#apigateway.googleapis.com/ApiConfig" + - "\022Cprojects/{project}/locations/global/ap" + - "is/{api}/configs/{api_config}\"\375\004\n\007Gatewa" + - "y\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(" + - "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + - "date_time\030\003 \001(\0132\032.google.protobuf.Timest" + - "ampB\003\340A\003\022D\n\006labels\030\004 \003(\0132/.google.cloud." + - "apigateway.v1.Gateway.LabelsEntryB\003\340A\001\022\031" + - "\n\014display_name\030\005 \001(\tB\003\340A\001\022?\n\napi_config\030" + - "\006 \001(\tB+\340A\002\372A%\n#apigateway.googleapis.com" + - "/ApiConfig\022=\n\005state\030\007 \001(\0162).google.cloud" + - ".apigateway.v1.Gateway.StateB\003\340A\003\022\035\n\020def" + - "ault_hostname\030\t \001(\tB\003\340A\003\032-\n\013LabelsEntry\022" + - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\005State" + - "\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n" + - "\006ACTIVE\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022\014\n\010U" + - "PDATING\020\005:b\352A_\n!apigateway.googleapis.co" + - "m/Gateway\022:projects/{project}/locations/" + - "{location}/gateways/{gateway}\"\231\001\n\023ListGa" + - "tewaysRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!l" + - "ocations.googleapis.com/Location\022\021\n\tpage" + - "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filte" + - "r\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\205\001\n\024ListGatewa" + - "ysResponse\0225\n\010gateways\030\001 \003(\0132#.google.cl" + - "oud.apigateway.v1.Gateway\022\027\n\017next_page_t" + - "oken\030\002 \001(\t\022\035\n\025unreachable_locations\030\003 \003(" + - "\t\"L\n\021GetGatewayRequest\0227\n\004name\030\001 \001(\tB)\340A" + - "\002\372A#\n!apigateway.googleapis.com/Gateway\"" + - "\245\001\n\024CreateGatewayRequest\0229\n\006parent\030\001 \001(\t" + - "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + - "ion\022\027\n\ngateway_id\030\002 \001(\tB\003\340A\002\0229\n\007gateway\030" + - "\003 \001(\0132#.google.cloud.apigateway.v1.Gatew" + - "ayB\003\340A\002\"\202\001\n\024UpdateGatewayRequest\022/\n\013upda" + - "te_mask\030\001 \001(\0132\032.google.protobuf.FieldMas" + - "k\0229\n\007gateway\030\002 \001(\0132#.google.cloud.apigat" + - "eway.v1.GatewayB\003\340A\002\"O\n\024DeleteGatewayReq" + - "uest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!apigateway.g" + - "oogleapis.com/Gateway\"\225\001\n\017ListApisReques" + - "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" + - "gleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022" + - "\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010o" + - "rder_by\030\005 \001(\t\"y\n\020ListApisResponse\022-\n\004api" + - "s\030\001 \003(\0132\037.google.cloud.apigateway.v1.Api" + - "\022\027\n\017next_page_token\030\002 \001(\t\022\035\n\025unreachable" + - "_locations\030\003 \003(\t\"D\n\rGetApiRequest\0223\n\004nam" + - "e\030\001 \001(\tB%\340A\002\372A\037\n\035apigateway.googleapis.c" + - "om/Api\"\225\001\n\020CreateApiRequest\0229\n\006parent\030\001 " + - "\001(\tB)\340A\002\372A#\n!locations.googleapis.com/Lo" + - "cation\022\023\n\006api_id\030\002 \001(\tB\003\340A\002\0221\n\003api\030\003 \001(\013" + - "2\037.google.cloud.apigateway.v1.ApiB\003\340A\002\"v" + - "\n\020UpdateApiRequest\022/\n\013update_mask\030\001 \001(\0132" + - "\032.google.protobuf.FieldMask\0221\n\003api\030\002 \001(\013" + - "2\037.google.cloud.apigateway.v1.ApiB\003\340A\002\"G" + - "\n\020DeleteApiRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037" + - "\n\035apigateway.googleapis.com/Api\"\227\001\n\025List" + - "ApiConfigsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A" + - "\037\n\035apigateway.googleapis.com/Api\022\021\n\tpage" + - "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filte" + - "r\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\214\001\n\026ListApiCon" + - "figsResponse\022:\n\013api_configs\030\001 \003(\0132%.goog" + - "le.cloud.apigateway.v1.ApiConfig\022\027\n\017next" + - "_page_token\030\002 \001(\t\022\035\n\025unreachable_locatio" + - "ns\030\003 \003(\t\"\332\001\n\023GetApiConfigRequest\0229\n\004name" + - "\030\001 \001(\tB+\340A\002\372A%\n#apigateway.googleapis.co" + - "m/ApiConfig\022H\n\004view\030\003 \001(\0162:.google.cloud" + - ".apigateway.v1.GetApiConfigRequest.Confi" + - "gView\">\n\nConfigView\022\033\n\027CONFIG_VIEW_UNSPE" + - "CIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002\"\253\001\n\026Create" + - "ApiConfigRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037" + - "\n\035apigateway.googleapis.com/Api\022\032\n\rapi_c" + - "onfig_id\030\002 \001(\tB\003\340A\002\022>\n\napi_config\030\003 \001(\0132" + - "%.google.cloud.apigateway.v1.ApiConfigB\003" + - "\340A\002\"\211\001\n\026UpdateApiConfigRequest\022/\n\013update" + - "_mask\030\001 \001(\0132\032.google.protobuf.FieldMask\022" + - ">\n\napi_config\030\002 \001(\0132%.google.cloud.apiga" + - "teway.v1.ApiConfigB\003\340A\002\"S\n\026DeleteApiConf" + - "igRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#apigate" + - "way.googleapis.com/ApiConfig\"\205\003\n\021Operati" + - "onMetadata\0224\n\013create_time\030\001 \001(\0132\032.google" + - ".protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001" + - "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006t" + - "arget\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016s" + - "tatus_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_ca" + - "ncellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001" + - "(\tB\003\340A\003\022R\n\013diagnostics\030\010 \003(\01328.google.cl" + - "oud.apigateway.v1.OperationMetadata.Diag" + - "nosticB\003\340A\003\032/\n\nDiagnostic\022\020\n\010location\030\001 " + - "\001(\t\022\017\n\007message\030\002 \001(\tB\270\003\n\036com.google.clou" + - "d.apigateway.v1P\001ZDgoogle.golang.org/gen" + - "proto/googleapis/cloud/apigateway/v1;api" + - "gateway\252\002\032Google.Cloud.ApiGateway.V1\312\002\032G" + - "oogle\\Cloud\\ApiGateway\\V1\352\002\035Google::Clou" + - "d::ApiGateway::V1\352AY\n!iam.googleapis.com" + - "/ServiceAccount\0224projects/{project}/serv" + - "iceAccounts/{service_account}\352AE\n/servic" + - "emanagement.googleapis.com/ManagedServic" + - "e\022\022services/{service}\352AO\n(servicemanagem" + - "ent.googleapis.com/Service\022#services/{se" + - "rvice}/configs/{config}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_apigateway_v1_Api_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_apigateway_v1_Api_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_Api_descriptor, - new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "ManagedService", "State", }); - internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_descriptor = - internal_static_google_cloud_apigateway_v1_Api_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_apigateway_v1_ApiConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor, - new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "GatewayServiceAccount", "ServiceConfigId", "State", "OpenapiDocuments", "GrpcServices", "ManagedServiceConfigs", }); - internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor = - internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_apigateway_v1_ApiConfig_File_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor, - new java.lang.String[] { "Path", "Contents", }); - internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor = - internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor, - new java.lang.String[] { "Document", }); - internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor = - internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor, - new java.lang.String[] { "FileDescriptorSet", "Source", }); - internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_descriptor = - internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_apigateway_v1_Gateway_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_apigateway_v1_Gateway_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_Gateway_descriptor, - new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "ApiConfig", "State", "DefaultHostname", }); - internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_descriptor = - internal_static_google_cloud_apigateway_v1_Gateway_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor, - new java.lang.String[] { "Gateways", "NextPageToken", "UnreachableLocations", }); - internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_apigateway_v1_GetGatewayRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor, - new java.lang.String[] { "Parent", "GatewayId", "Gateway", }); - internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor, - new java.lang.String[] { "UpdateMask", "Gateway", }); - internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_apigateway_v1_ListApisRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_apigateway_v1_ListApisResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor, - new java.lang.String[] { "Apis", "NextPageToken", "UnreachableLocations", }); - internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_apigateway_v1_GetApiRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_apigateway_v1_CreateApiRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor, - new java.lang.String[] { "Parent", "ApiId", "Api", }); - internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_apigateway_v1_UpdateApiRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor, - new java.lang.String[] { "UpdateMask", "Api", }); - internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_apigateway_v1_DeleteApiRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor, - new java.lang.String[] { "ApiConfigs", "NextPageToken", "UnreachableLocations", }); - internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor, - new java.lang.String[] { "Name", "View", }); - internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor, - new java.lang.String[] { "Parent", "ApiConfigId", "ApiConfig", }); - internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor, - new java.lang.String[] { "UpdateMask", "ApiConfig", }); - internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_apigateway_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", "Diagnostics", }); - internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor = - internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor, - new java.lang.String[] { "Location", "Message", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApigatewayService.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApigatewayService.java deleted file mode 100644 index d5d6b40..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApigatewayService.java +++ /dev/null @@ -1,138 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/apigateway/v1/apigateway_service.proto - -package com.google.cloud.apigateway.v1; - -public final class ApigatewayService { - private ApigatewayService() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/apigateway/v1/apigateway_" + - "service.proto\022\032google.cloud.apigateway.v" + - "1\032\034google/api/annotations.proto\032\027google/" + - "api/client.proto\032+google/cloud/apigatewa" + - "y/v1/apigateway.proto\032#google/longrunnin" + - "g/operations.proto2\340\027\n\021ApiGatewayService" + - "\022\260\001\n\014ListGateways\022/.google.cloud.apigate" + - "way.v1.ListGatewaysRequest\0320.google.clou" + - "d.apigateway.v1.ListGatewaysResponse\"=\202\323" + - "\344\223\002.\022,/v1/{parent=projects/*/locations/*" + - "}/gateways\332A\006parent\022\235\001\n\nGetGateway\022-.goo" + - "gle.cloud.apigateway.v1.GetGatewayReques" + - "t\032#.google.cloud.apigateway.v1.Gateway\";" + - "\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*" + - "/gateways/*}\332A\004name\022\332\001\n\rCreateGateway\0220." + - "google.cloud.apigateway.v1.CreateGateway" + - "Request\032\035.google.longrunning.Operation\"x" + - "\202\323\344\223\0027\",/v1/{parent=projects/*/locations" + - "/*}/gateways:\007gateway\332A\031parent,gateway,g" + - "ateway_id\312A\034\n\007Gateway\022\021OperationMetadata" + - "\022\334\001\n\rUpdateGateway\0220.google.cloud.apigat" + - "eway.v1.UpdateGatewayRequest\032\035.google.lo" + - "ngrunning.Operation\"z\202\323\344\223\002?24/v1/{gatewa" + - "y.name=projects/*/locations/*/gateways/*" + - "}:\007gateway\332A\023gateway,update_mask\312A\034\n\007Gat" + - "eway\022\021OperationMetadata\022\312\001\n\rDeleteGatewa" + - "y\0220.google.cloud.apigateway.v1.DeleteGat" + - "ewayRequest\032\035.google.longrunning.Operati" + - "on\"h\202\323\344\223\002.*,/v1/{name=projects/*/locatio" + - "ns/*/gateways/*}\332A\004name\312A*\n\025google.proto" + - "buf.Empty\022\021OperationMetadata\022\240\001\n\010ListApi" + - "s\022+.google.cloud.apigateway.v1.ListApisR" + - "equest\032,.google.cloud.apigateway.v1.List" + - "ApisResponse\"9\202\323\344\223\002*\022(/v1/{parent=projec" + - "ts/*/locations/*}/apis\332A\006parent\022\215\001\n\006GetA" + - "pi\022).google.cloud.apigateway.v1.GetApiRe" + - "quest\032\037.google.cloud.apigateway.v1.Api\"7" + - "\202\323\344\223\002*\022(/v1/{name=projects/*/locations/*" + - "/apis/*}\332A\004name\022\276\001\n\tCreateApi\022,.google.c" + - "loud.apigateway.v1.CreateApiRequest\032\035.go" + - "ogle.longrunning.Operation\"d\202\323\344\223\002/\"(/v1/" + - "{parent=projects/*/locations/*}/apis:\003ap" + - "i\332A\021parent,api,api_id\312A\030\n\003Api\022\021Operation" + - "Metadata\022\300\001\n\tUpdateApi\022,.google.cloud.ap" + - "igateway.v1.UpdateApiRequest\032\035.google.lo" + - "ngrunning.Operation\"f\202\323\344\223\00232,/v1/{api.na" + - "me=projects/*/locations/*/apis/*}:\003api\332A" + - "\017api,update_mask\312A\030\n\003Api\022\021OperationMetad" + - "ata\022\276\001\n\tDeleteApi\022,.google.cloud.apigate" + - "way.v1.DeleteApiRequest\032\035.google.longrun" + - "ning.Operation\"d\202\323\344\223\002**(/v1/{name=projec" + - "ts/*/locations/*/apis/*}\332A\004name\312A*\n\025goog" + - "le.protobuf.Empty\022\021OperationMetadata\022\274\001\n" + - "\016ListApiConfigs\0221.google.cloud.apigatewa" + - "y.v1.ListApiConfigsRequest\0322.google.clou" + - "d.apigateway.v1.ListApiConfigsResponse\"C" + - "\202\323\344\223\0024\0222/v1/{parent=projects/*/locations" + - "/*/apis/*}/configs\332A\006parent\022\251\001\n\014GetApiCo" + - "nfig\022/.google.cloud.apigateway.v1.GetApi" + - "ConfigRequest\032%.google.cloud.apigateway." + - "v1.ApiConfig\"A\202\323\344\223\0024\0222/v1/{name=projects" + - "/*/locations/*/apis/*/configs/*}\332A\004name\022" + - "\360\001\n\017CreateApiConfig\0222.google.cloud.apiga" + - "teway.v1.CreateApiConfigRequest\032\035.google" + - ".longrunning.Operation\"\211\001\202\323\344\223\002@\"2/v1/{pa" + - "rent=projects/*/locations/*/apis/*}/conf" + - "igs:\napi_config\332A\037parent,api_config,api_" + - "config_id\312A\036\n\tApiConfig\022\021OperationMetada" + - "ta\022\362\001\n\017UpdateApiConfig\0222.google.cloud.ap" + - "igateway.v1.UpdateApiConfigRequest\032\035.goo" + - "gle.longrunning.Operation\"\213\001\202\323\344\223\002K2=/v1/" + - "{api_config.name=projects/*/locations/*/" + - "apis/*/configs/*}:\napi_config\332A\026api_conf" + - "ig,update_mask\312A\036\n\tApiConfig\022\021OperationM" + - "etadata\022\324\001\n\017DeleteApiConfig\0222.google.clo" + - "ud.apigateway.v1.DeleteApiConfigRequest\032" + - "\035.google.longrunning.Operation\"n\202\323\344\223\0024*2" + - "/v1/{name=projects/*/locations/*/apis/*/" + - "configs/*}\332A\004name\312A*\n\025google.protobuf.Em" + - "pty\022\021OperationMetadata\032M\312A\031apigateway.go" + - "ogleapis.com\322A.https://www.googleapis.co" + - "m/auth/cloud-platformB\302\001\n\036com.google.clo" + - "ud.apigateway.v1P\001ZDgoogle.golang.org/ge" + - "nproto/googleapis/cloud/apigateway/v1;ap" + - "igateway\252\002\032Google.Cloud.ApiGateway.V1\312\002\032" + - "Google\\Cloud\\ApiGateway\\V1\352\002\035Google::Clo" + - "ud::ApiGateway::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.cloud.apigateway.v1.Apigateway.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.cloud.apigateway.v1.Apigateway.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequestOrBuilder.java deleted file mode 100644 index 5870e48..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/apigateway/v1/apigateway.proto - -package com.google.cloud.apigateway.v1; - -public interface DeleteApiConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.DeleteApiConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/global/apis/*/configs/*`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/global/apis/*/configs/*`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequestOrBuilder.java deleted file mode 100644 index 045b673..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/apigateway/v1/apigateway.proto - -package com.google.cloud.apigateway.v1; - -public interface DeleteApiRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.DeleteApiRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/global/apis/*`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/global/apis/*`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequestOrBuilder.java deleted file mode 100644 index 0951fff..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/apigateway/v1/apigateway.proto - -package com.google.cloud.apigateway.v1; - -public interface DeleteGatewayRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.DeleteGatewayRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/*/gateways/*`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/*/gateways/*`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequestOrBuilder.java deleted file mode 100644 index 7b673cd..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/apigateway/v1/apigateway.proto - -package com.google.cloud.apigateway.v1; - -public interface GetApiRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.GetApiRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/global/apis/*`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/global/apis/*`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequestOrBuilder.java deleted file mode 100644 index e811598..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/apigateway/v1/apigateway.proto - -package com.google.cloud.apigateway.v1; - -public interface GetGatewayRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.GetGatewayRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/*/gateways/*`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the form:
-   * `projects/*/locations/*/gateways/*`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Api.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Api.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Api.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Api.java index 6175d92..d1f5b87 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Api.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Api.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * An API that can be served by one or more Gateways.
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.Api} */ -public final class Api extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Api extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.Api) ApiOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Api.newBuilder() to construct. private Api(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Api() { name_ = ""; displayName_ = ""; @@ -28,16 +46,15 @@ private Api() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Api(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Api( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,76 +74,84 @@ private Api( 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: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + name_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + displayName_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - managedService_ = s; - break; - } - case 96: { - int rawValue = input.readEnum(); + managedService_ = s; + break; + } + case 96: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + state_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -134,48 +159,52 @@ private Api( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Api_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_Api_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Api_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_Api_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.Api.class, com.google.cloud.apigateway.v1.Api.Builder.class); + com.google.cloud.apigateway.v1.Api.class, + com.google.cloud.apigateway.v1.Api.Builder.class); } /** + * + * *
    * All the possible API states.
    * 
* * Protobuf enum {@code google.cloud.apigateway.v1.Api.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * API does not have a state yet.
      * 
@@ -184,6 +213,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * API is being created.
      * 
@@ -192,6 +223,8 @@ public enum State */ CREATING(1), /** + * + * *
      * API is active.
      * 
@@ -200,6 +233,8 @@ public enum State */ ACTIVE(2), /** + * + * *
      * API creation failed.
      * 
@@ -208,6 +243,8 @@ public enum State */ FAILED(3), /** + * + * *
      * API is being deleted.
      * 
@@ -216,6 +253,8 @@ public enum State */ DELETING(4), /** + * + * *
      * API is being updated.
      * 
@@ -227,6 +266,8 @@ public enum State ; /** + * + * *
      * API does not have a state yet.
      * 
@@ -235,6 +276,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * API is being created.
      * 
@@ -243,6 +286,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * API is active.
      * 
@@ -251,6 +296,8 @@ public enum State */ public static final int ACTIVE_VALUE = 2; /** + * + * *
      * API creation failed.
      * 
@@ -259,6 +306,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * API is being deleted.
      * 
@@ -267,6 +316,8 @@ public enum State */ public static final int DELETING_VALUE = 4; /** + * + * *
      * API is being updated.
      * 
@@ -275,7 +326,6 @@ public enum State */ public static final int UPDATING_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -300,52 +350,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return ACTIVE; - case 3: return FAILED; - case 4: return DELETING; - case 5: return UPDATING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return FAILED; + case 4: + return DELETING; + case 5: + return UPDATING; + 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< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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 State findValueByNumber(int number) { + return State.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.apigateway.v1.Api.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -365,12 +418,15 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Resource name of the API.
    * Format: projects/{project}/locations/global/apis/{api}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -379,30 +435,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; } } /** + * + * *
    * Output only. Resource name of the API.
    * Format: projects/{project}/locations/global/apis/{api}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -413,11 +469,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -425,11 +485,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -437,11 +501,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -451,11 +518,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -463,11 +534,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -475,11 +550,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -487,24 +565,23 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -513,6 +590,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -521,22 +600,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -546,11 +625,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -560,16 +640,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -579,12 +659,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -594,11 +673,14 @@ public java.lang.String getLabelsOrThrow(
   public static final int DISPLAY_NAME_FIELD_NUMBER = 5;
   private volatile java.lang.Object displayName_;
   /**
+   *
+   *
    * 
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ @java.lang.Override @@ -607,29 +689,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -640,6 +722,8 @@ public java.lang.String getDisplayName() { public static final int MANAGED_SERVICE_FIELD_NUMBER = 7; private volatile java.lang.Object managedService_; /** + * + * *
    * Optional. Immutable. The name of a Google Managed Service (
    * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -647,7 +731,10 @@ public java.lang.String getDisplayName() {
    * project as this API.
    * 
* - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The managedService. */ @java.lang.Override @@ -656,14 +743,15 @@ public java.lang.String getManagedService() { 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(); managedService_ = s; return s; } } /** + * + * *
    * Optional. Immutable. The name of a Google Managed Service (
    * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -671,17 +759,18 @@ public java.lang.String getManagedService() {
    * project as this API.
    * 
* - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for managedService. */ @java.lang.Override - public com.google.protobuf.ByteString - getManagedServiceBytes() { + public com.google.protobuf.ByteString getManagedServiceBytes() { java.lang.Object ref = managedService_; 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); managedService_ = b; return b; } else { @@ -692,31 +781,45 @@ public java.lang.String getManagedService() { public static final int STATE_FIELD_NUMBER = 12; private int state_; /** + * + * *
    * Output only. State of the API.
    * 
* - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. State of the API.
    * 
* - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.apigateway.v1.Api.State getState() { + @java.lang.Override + public com.google.cloud.apigateway.v1.Api.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.apigateway.v1.Api.State result = com.google.cloud.apigateway.v1.Api.State.valueOf(state_); + com.google.cloud.apigateway.v1.Api.State result = + com.google.cloud.apigateway.v1.Api.State.valueOf(state_); return result == null ? com.google.cloud.apigateway.v1.Api.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -728,8 +831,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_); } @@ -739,12 +841,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -767,22 +865,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); @@ -791,8 +887,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, managedService_); } if (state_ != com.google.cloud.apigateway.v1.Api.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -802,31 +897,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.apigateway.v1.Api)) { return super.equals(obj); } com.google.cloud.apigateway.v1.Api other = (com.google.cloud.apigateway.v1.Api) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getManagedService() - .equals(other.getManagedService())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getManagedService().equals(other.getManagedService())) return false; if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -864,140 +953,146 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.Api parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.Api parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.Api 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.apigateway.v1.Api parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.apigateway.v1.Api parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.Api 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.apigateway.v1.Api parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.Api 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.apigateway.v1.Api 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.apigateway.v1.Api 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.apigateway.v1.Api 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.apigateway.v1.Api 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.apigateway.v1.Api 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.apigateway.v1.Api 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.apigateway.v1.Api 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; } /** + * + * *
    * An API that can be served by one or more Gateways.
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.Api} */ - 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.apigateway.v1.Api) com.google.cloud.apigateway.v1.ApiOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Api_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_Api_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Api_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_Api_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.Api.class, com.google.cloud.apigateway.v1.Api.Builder.class); + com.google.cloud.apigateway.v1.Api.class, + com.google.cloud.apigateway.v1.Api.Builder.class); } // Construct using com.google.cloud.apigateway.v1.Api.newBuilder() @@ -1005,16 +1100,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(); @@ -1043,9 +1137,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Api_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_Api_descriptor; } @java.lang.Override @@ -1090,38 +1184,39 @@ public com.google.cloud.apigateway.v1.Api 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.apigateway.v1.Api) { - return mergeFrom((com.google.cloud.apigateway.v1.Api)other); + return mergeFrom((com.google.cloud.apigateway.v1.Api) other); } else { super.mergeFrom(other); return this; @@ -1140,8 +1235,7 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.Api other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); @@ -1181,23 +1275,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Resource name of the API.
      * Format: projects/{project}/locations/global/apis/{api}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1206,21 +1303,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the API.
      * Format: projects/{project}/locations/global/apis/{api}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1228,57 +1326,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the API.
      * Format: projects/{project}/locations/global/apis/{api}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; } /** + * + * *
      * Output only. Resource name of the API.
      * Format: projects/{project}/locations/global/apis/{api}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the API.
      * Format: projects/{project}/locations/global/apis/{api}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1286,39 +1391,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1334,14 +1458,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1352,17 +1479,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1374,11 +1505,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1392,48 +1527,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1441,39 +1592,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1489,14 +1659,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1507,17 +1680,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1529,11 +1706,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1547,69 +1728,84 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1621,6 +1817,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1629,22 +1827,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1654,11 +1852,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1668,16 +1867,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1687,12 +1887,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1700,11 +1899,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1713,23 +1913,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1738,19 +1936,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1759,28 +1958,27 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
 
     private java.lang.Object displayName_ = "";
     /**
+     *
+     *
      * 
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1789,20 +1987,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1810,54 +2009,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1865,6 +2071,8 @@ public Builder setDisplayNameBytes( private java.lang.Object managedService_ = ""; /** + * + * *
      * Optional. Immutable. The name of a Google Managed Service (
      * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -1872,14 +2080,16 @@ public Builder setDisplayNameBytes(
      * project as this API.
      * 
* - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The managedService. */ public java.lang.String getManagedService() { java.lang.Object ref = managedService_; 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(); managedService_ = s; return s; @@ -1888,6 +2098,8 @@ public java.lang.String getManagedService() { } } /** + * + * *
      * Optional. Immutable. The name of a Google Managed Service (
      * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -1895,16 +2107,17 @@ public java.lang.String getManagedService() {
      * project as this API.
      * 
* - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for managedService. */ - public com.google.protobuf.ByteString - getManagedServiceBytes() { + public com.google.protobuf.ByteString getManagedServiceBytes() { java.lang.Object ref = managedService_; 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); managedService_ = b; return b; } else { @@ -1912,6 +2125,8 @@ public java.lang.String getManagedService() { } } /** + * + * *
      * Optional. Immutable. The name of a Google Managed Service (
      * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -1919,21 +2134,25 @@ public java.lang.String getManagedService() {
      * project as this API.
      * 
* - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The managedService to set. * @return This builder for chaining. */ - public Builder setManagedService( - java.lang.String value) { + public Builder setManagedService(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + managedService_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Immutable. The name of a Google Managed Service (
      * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -1941,16 +2160,21 @@ public Builder setManagedService(
      * project as this API.
      * 
* - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearManagedService() { - + managedService_ = getDefaultInstance().getManagedService(); onChanged(); return this; } /** + * + * *
      * Optional. Immutable. The name of a Google Managed Service (
      * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -1958,17 +2182,19 @@ public Builder clearManagedService() {
      * project as this API.
      * 
* - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for managedService to set. * @return This builder for chaining. */ - public Builder setManagedServiceBytes( - com.google.protobuf.ByteString value) { + public Builder setManagedServiceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + managedService_ = value; onChanged(); return this; @@ -1976,51 +2202,73 @@ public Builder setManagedServiceBytes( private int state_ = 0; /** + * + * *
      * Output only. State of the API.
      * 
* - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. State of the API.
      * 
* - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. State of the API.
      * 
* - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.apigateway.v1.Api.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.apigateway.v1.Api.State result = com.google.cloud.apigateway.v1.Api.State.valueOf(state_); + com.google.cloud.apigateway.v1.Api.State result = + com.google.cloud.apigateway.v1.Api.State.valueOf(state_); return result == null ? com.google.cloud.apigateway.v1.Api.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. State of the API.
      * 
* - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2028,28 +2276,33 @@ public Builder setState(com.google.cloud.apigateway.v1.Api.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. State of the API.
      * 
* - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 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); } @@ -2059,12 +2312,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.Api) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.Api) private static final com.google.cloud.apigateway.v1.Api DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.Api(); } @@ -2073,16 +2326,16 @@ public static com.google.cloud.apigateway.v1.Api getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Api parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Api(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Api parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Api(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2097,6 +2350,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.Api getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfig.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfig.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfig.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfig.java index 08ce5dc..cdf0455 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfig.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfig.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * An API Configuration is a combination of settings for both the Managed
  * Service and Gateways serving this API Config.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.apigateway.v1.ApiConfig}
  */
-public final class ApiConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ApiConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ApiConfig)
     ApiConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ApiConfig.newBuilder() to construct.
   private ApiConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ApiConfig() {
     name_ = "";
     displayName_ = "";
@@ -33,16 +51,15 @@ private ApiConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ApiConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ApiConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -62,109 +79,131 @@ private ApiConfig(
           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: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              name_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              displayName_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            displayName_ = s;
-            break;
-          }
-          case 64: {
-            int rawValue = input.readEnum();
+          case 64:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          case 74: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              openapiDocuments_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              state_ = rawValue;
+              break;
             }
-            openapiDocuments_.add(
-                input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.parser(), extensionRegistry));
-            break;
-          }
-          case 82: {
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              grpcServices_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
+          case 74:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                openapiDocuments_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument>();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              openapiDocuments_.add(
+                  input.readMessage(
+                      com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.parser(),
+                      extensionRegistry));
+              break;
             }
-            grpcServices_.add(
-                input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.parser(), extensionRegistry));
-            break;
-          }
-          case 90: {
-            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
-              managedServiceConfigs_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000008;
+          case 82:
+            {
+              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                grpcServices_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition>();
+                mutable_bitField0_ |= 0x00000004;
+              }
+              grpcServices_.add(
+                  input.readMessage(
+                      com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.parser(),
+                      extensionRegistry));
+              break;
             }
-            managedServiceConfigs_.add(
-                input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.File.parser(), extensionRegistry));
-            break;
-          }
-          case 98: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 90:
+            {
+              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+                managedServiceConfigs_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000008;
+              }
+              managedServiceConfigs_.add(
+                  input.readMessage(
+                      com.google.cloud.apigateway.v1.ApiConfig.File.parser(), extensionRegistry));
+              break;
+            }
+          case 98:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            serviceConfigId_ = s;
-            break;
-          }
-          case 114: {
-            java.lang.String s = input.readStringRequireUtf8();
+              serviceConfigId_ = s;
+              break;
+            }
+          case 114:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            gatewayServiceAccount_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              gatewayServiceAccount_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -172,8 +211,7 @@ private ApiConfig(
     } 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_ & 0x00000002) != 0)) {
         openapiDocuments_ = java.util.Collections.unmodifiableList(openapiDocuments_);
@@ -188,41 +226,46 @@ private ApiConfig(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.apigateway.v1.Apigateway
+        .internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_fieldAccessorTable
+    return com.google.cloud.apigateway.v1.Apigateway
+        .internal_static_google_cloud_apigateway_v1_ApiConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.apigateway.v1.ApiConfig.class, com.google.cloud.apigateway.v1.ApiConfig.Builder.class);
+            com.google.cloud.apigateway.v1.ApiConfig.class,
+            com.google.cloud.apigateway.v1.ApiConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * All the possible API Config states.
    * 
* * Protobuf enum {@code google.cloud.apigateway.v1.ApiConfig.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * API Config does not have a state yet.
      * 
@@ -231,6 +274,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * API Config is being created and deployed to the API Controller.
      * 
@@ -239,6 +284,8 @@ public enum State */ CREATING(1), /** + * + * *
      * API Config is ready for use by Gateways.
      * 
@@ -247,6 +294,8 @@ public enum State */ ACTIVE(2), /** + * + * *
      * API Config creation failed.
      * 
@@ -255,6 +304,8 @@ public enum State */ FAILED(3), /** + * + * *
      * API Config is being deleted.
      * 
@@ -263,6 +314,8 @@ public enum State */ DELETING(4), /** + * + * *
      * API Config is being updated.
      * 
@@ -271,6 +324,8 @@ public enum State */ UPDATING(5), /** + * + * *
      * API Config settings are being activated in downstream systems.
      * API Configs in this state cannot be used by Gateways.
@@ -283,6 +338,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * API Config does not have a state yet.
      * 
@@ -291,6 +348,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * API Config is being created and deployed to the API Controller.
      * 
@@ -299,6 +358,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * API Config is ready for use by Gateways.
      * 
@@ -307,6 +368,8 @@ public enum State */ public static final int ACTIVE_VALUE = 2; /** + * + * *
      * API Config creation failed.
      * 
@@ -315,6 +378,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * API Config is being deleted.
      * 
@@ -323,6 +388,8 @@ public enum State */ public static final int DELETING_VALUE = 4; /** + * + * *
      * API Config is being updated.
      * 
@@ -331,6 +398,8 @@ public enum State */ public static final int UPDATING_VALUE = 5; /** + * + * *
      * API Config settings are being activated in downstream systems.
      * API Configs in this state cannot be used by Gateways.
@@ -340,7 +409,6 @@ public enum State
      */
     public static final int ACTIVATING_VALUE = 6;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -365,53 +433,57 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return CREATING;
-        case 2: return ACTIVE;
-        case 3: return FAILED;
-        case 4: return DELETING;
-        case 5: return UPDATING;
-        case 6: return ACTIVATING;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return CREATING;
+        case 2:
+          return ACTIVE;
+        case 3:
+          return FAILED;
+        case 4:
+          return DELETING;
+        case 5:
+          return UPDATING;
+        case 6:
+          return ACTIVATING;
+        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<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.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 State findValueByNumber(int number) {
+            return State.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.apigateway.v1.ApiConfig.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State 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;
@@ -428,58 +500,70 @@ private State(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.apigateway.v1.ApiConfig.State)
   }
 
-  public interface FileOrBuilder extends
+  public interface FileOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ApiConfig.File)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The file path (full or relative path). This is typically the path of the
      * file when it is uploaded.
      * 
* * string path = 1; + * * @return The path. */ java.lang.String getPath(); /** + * + * *
      * The file path (full or relative path). This is typically the path of the
      * file when it is uploaded.
      * 
* * string path = 1; + * * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); /** + * + * *
      * The bytes that constitute the file.
      * 
* * bytes contents = 2; + * * @return The contents. */ com.google.protobuf.ByteString getContents(); } /** + * + * *
    * A lightweight description of a file.
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ApiConfig.File} */ - public static final class File extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class File extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ApiConfig.File) FileOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use File.newBuilder() to construct. private File(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private File() { path_ = ""; contents_ = com.google.protobuf.ByteString.EMPTY; @@ -487,16 +571,15 @@ private File() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new File(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private File( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -515,24 +598,25 @@ private File( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - path_ = s; - break; - } - case 18: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - contents_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + path_ = s; + break; + } + case 18: + { + contents_ = input.readBytes(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -540,35 +624,40 @@ private File( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_File_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ApiConfig_File_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ApiConfig.File.class, com.google.cloud.apigateway.v1.ApiConfig.File.Builder.class); + com.google.cloud.apigateway.v1.ApiConfig.File.class, + com.google.cloud.apigateway.v1.ApiConfig.File.Builder.class); } public static final int PATH_FIELD_NUMBER = 1; private volatile java.lang.Object path_; /** + * + * *
      * The file path (full or relative path). This is typically the path of the
      * file when it is uploaded.
      * 
* * string path = 1; + * * @return The path. */ @java.lang.Override @@ -577,30 +666,30 @@ 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; } } /** + * + * *
      * The file path (full or relative path). This is typically the path of the
      * file when it is uploaded.
      * 
* * string path = 1; + * * @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 { @@ -611,11 +700,14 @@ public java.lang.String getPath() { public static final int CONTENTS_FIELD_NUMBER = 2; private com.google.protobuf.ByteString contents_; /** + * + * *
      * The bytes that constitute the file.
      * 
* * bytes contents = 2; + * * @return The contents. */ @java.lang.Override @@ -624,6 +716,7 @@ public com.google.protobuf.ByteString getContents() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -635,8 +728,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(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -656,8 +748,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } if (!contents_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, contents_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, contents_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -667,17 +758,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.apigateway.v1.ApiConfig.File)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ApiConfig.File other = (com.google.cloud.apigateway.v1.ApiConfig.File) obj; + com.google.cloud.apigateway.v1.ApiConfig.File other = + (com.google.cloud.apigateway.v1.ApiConfig.File) obj; - if (!getPath() - .equals(other.getPath())) return false; - if (!getContents() - .equals(other.getContents())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!getContents().equals(other.getContents())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -698,88 +788,94 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.ApiConfig.File parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.ApiConfig.File parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ApiConfig.File 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.apigateway.v1.ApiConfig.File parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ApiConfig.File 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.apigateway.v1.ApiConfig.File parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ApiConfig.File 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.apigateway.v1.ApiConfig.File 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.apigateway.v1.ApiConfig.File 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.apigateway.v1.ApiConfig.File parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.ApiConfig.File parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.ApiConfig.File 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.apigateway.v1.ApiConfig.File 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.apigateway.v1.ApiConfig.File 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.apigateway.v1.ApiConfig.File 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 @@ -789,27 +885,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A lightweight description of a file.
      * 
* * Protobuf type {@code google.cloud.apigateway.v1.ApiConfig.File} */ - 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.apigateway.v1.ApiConfig.File) com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_File_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ApiConfig_File_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ApiConfig.File.class, com.google.cloud.apigateway.v1.ApiConfig.File.Builder.class); + com.google.cloud.apigateway.v1.ApiConfig.File.class, + com.google.cloud.apigateway.v1.ApiConfig.File.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ApiConfig.File.newBuilder() @@ -817,16 +918,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(); @@ -838,9 +938,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor; } @java.lang.Override @@ -859,7 +959,8 @@ public com.google.cloud.apigateway.v1.ApiConfig.File build() { @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.File buildPartial() { - com.google.cloud.apigateway.v1.ApiConfig.File result = new com.google.cloud.apigateway.v1.ApiConfig.File(this); + com.google.cloud.apigateway.v1.ApiConfig.File result = + new com.google.cloud.apigateway.v1.ApiConfig.File(this); result.path_ = path_; result.contents_ = contents_; onBuilt(); @@ -870,38 +971,41 @@ public com.google.cloud.apigateway.v1.ApiConfig.File 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) { + 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.apigateway.v1.ApiConfig.File) { - return mergeFrom((com.google.cloud.apigateway.v1.ApiConfig.File)other); + return mergeFrom((com.google.cloud.apigateway.v1.ApiConfig.File) other); } else { super.mergeFrom(other); return this; @@ -909,7 +1013,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.ApiConfig.File other) { - if (other == com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()) + return this; if (!other.getPath().isEmpty()) { path_ = other.path_; onChanged(); @@ -948,19 +1053,21 @@ public Builder mergeFrom( private java.lang.Object path_ = ""; /** + * + * *
        * The file path (full or relative path). This is typically the path of the
        * file when it is uploaded.
        * 
* * string path = 1; + * * @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; @@ -969,21 +1076,22 @@ public java.lang.String getPath() { } } /** + * + * *
        * The file path (full or relative path). This is typically the path of the
        * file when it is uploaded.
        * 
* * string path = 1; + * * @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 { @@ -991,57 +1099,64 @@ public java.lang.String getPath() { } } /** + * + * *
        * The file path (full or relative path). This is typically the path of the
        * file when it is uploaded.
        * 
* * string path = 1; + * * @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; } /** + * + * *
        * The file path (full or relative path). This is typically the path of the
        * file when it is uploaded.
        * 
* * string path = 1; + * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** + * + * *
        * The file path (full or relative path). This is typically the path of the
        * file when it is uploaded.
        * 
* * string path = 1; + * * @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; @@ -1049,11 +1164,14 @@ public Builder setPathBytes( private com.google.protobuf.ByteString contents_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
        * The bytes that constitute the file.
        * 
* * bytes contents = 2; + * * @return The contents. */ @java.lang.Override @@ -1061,37 +1179,44 @@ public com.google.protobuf.ByteString getContents() { return contents_; } /** + * + * *
        * The bytes that constitute the file.
        * 
* * bytes contents = 2; + * * @param value The contents to set. * @return This builder for chaining. */ public Builder setContents(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contents_ = value; onChanged(); return this; } /** + * + * *
        * The bytes that constitute the file.
        * 
* * bytes contents = 2; + * * @return This builder for chaining. */ public Builder clearContents() { - + contents_ = getDefaultInstance().getContents(); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1104,12 +1229,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ApiConfig.File) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ApiConfig.File) private static final com.google.cloud.apigateway.v1.ApiConfig.File DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ApiConfig.File(); } @@ -1118,16 +1243,16 @@ public static com.google.cloud.apigateway.v1.ApiConfig.File getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public File parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new File(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public File parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new File(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1142,32 +1267,40 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ApiConfig.File getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface OpenApiDocumentOrBuilder extends + public interface OpenApiDocumentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The OpenAPI Specification document file.
      * 
* * .google.cloud.apigateway.v1.ApiConfig.File document = 1; + * * @return Whether the document field is set. */ boolean hasDocument(); /** + * + * *
      * The OpenAPI Specification document file.
      * 
* * .google.cloud.apigateway.v1.ApiConfig.File document = 1; + * * @return The document. */ com.google.cloud.apigateway.v1.ApiConfig.File getDocument(); /** + * + * *
      * The OpenAPI Specification document file.
      * 
@@ -1177,36 +1310,37 @@ public interface OpenApiDocumentOrBuilder extends com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getDocumentOrBuilder(); } /** + * + * *
    * An OpenAPI Specification Document describing an API.
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ApiConfig.OpenApiDocument} */ - public static final class OpenApiDocument extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class OpenApiDocument extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) OpenApiDocumentOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OpenApiDocument.newBuilder() to construct. private OpenApiDocument(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OpenApiDocument() { - } + + private OpenApiDocument() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OpenApiDocument(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OpenApiDocument( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1225,26 +1359,29 @@ private OpenApiDocument( case 0: done = true; break; - case 10: { - com.google.cloud.apigateway.v1.ApiConfig.File.Builder subBuilder = null; - if (document_ != null) { - subBuilder = document_.toBuilder(); - } - document_ = input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.File.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(document_); - document_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.apigateway.v1.ApiConfig.File.Builder subBuilder = null; + if (document_ != null) { + subBuilder = document_.toBuilder(); + } + document_ = + input.readMessage( + com.google.cloud.apigateway.v1.ApiConfig.File.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(document_); + document_ = 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) { @@ -1252,34 +1389,39 @@ private OpenApiDocument( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.class, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder.class); + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.class, + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder.class); } public static final int DOCUMENT_FIELD_NUMBER = 1; private com.google.cloud.apigateway.v1.ApiConfig.File document_; /** + * + * *
      * The OpenAPI Specification document file.
      * 
* * .google.cloud.apigateway.v1.ApiConfig.File document = 1; + * * @return Whether the document field is set. */ @java.lang.Override @@ -1287,18 +1429,25 @@ public boolean hasDocument() { return document_ != null; } /** + * + * *
      * The OpenAPI Specification document file.
      * 
* * .google.cloud.apigateway.v1.ApiConfig.File document = 1; + * * @return The document. */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.File getDocument() { - return document_ == null ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() + : document_; } /** + * + * *
      * The OpenAPI Specification document file.
      * 
@@ -1311,6 +1460,7 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getDocumentOrBuild } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1322,8 +1472,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 (document_ != null) { output.writeMessage(1, getDocument()); } @@ -1337,8 +1486,7 @@ public int getSerializedSize() { size = 0; if (document_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDocument()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDocument()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1348,17 +1496,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.apigateway.v1.ApiConfig.OpenApiDocument)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument other = (com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) obj; + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument other = + (com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) obj; if (hasDocument() != other.hasDocument()) return false; if (hasDocument()) { - if (!getDocument() - .equals(other.getDocument())) return false; + if (!getDocument().equals(other.getDocument())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1381,87 +1529,94 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument 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.apigateway.v1.ApiConfig.OpenApiDocument 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.apigateway.v1.ApiConfig.OpenApiDocument parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument 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.apigateway.v1.ApiConfig.OpenApiDocument parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument 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.apigateway.v1.ApiConfig.OpenApiDocument parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument 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.apigateway.v1.ApiConfig.OpenApiDocument parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument 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.apigateway.v1.ApiConfig.OpenApiDocument 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.apigateway.v1.ApiConfig.OpenApiDocument 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.apigateway.v1.ApiConfig.OpenApiDocument prototype) { + + public static Builder newBuilder( + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument 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 @@ -1471,27 +1626,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An OpenAPI Specification Document describing an API.
      * 
* * Protobuf type {@code google.cloud.apigateway.v1.ApiConfig.OpenApiDocument} */ - 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.apigateway.v1.ApiConfig.OpenApiDocument) com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.class, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder.class); + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.class, + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.newBuilder() @@ -1499,16 +1659,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(); @@ -1522,9 +1681,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor; } @java.lang.Override @@ -1543,7 +1702,8 @@ public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument build() { @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument buildPartial() { - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument result = new com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument(this); + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument result = + new com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument(this); if (documentBuilder_ == null) { result.document_ = document_; } else { @@ -1557,38 +1717,41 @@ public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument 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) { + 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.apigateway.v1.ApiConfig.OpenApiDocument) { - return mergeFrom((com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument)other); + return mergeFrom((com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) other); } else { super.mergeFrom(other); return this; @@ -1596,7 +1759,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument other) { - if (other == com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.getDefaultInstance()) + return this; if (other.hasDocument()) { mergeDocument(other.getDocument()); } @@ -1619,7 +1783,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1631,34 +1796,47 @@ public Builder mergeFrom( private com.google.cloud.apigateway.v1.ApiConfig.File document_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> documentBuilder_; + com.google.cloud.apigateway.v1.ApiConfig.File, + com.google.cloud.apigateway.v1.ApiConfig.File.Builder, + com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> + documentBuilder_; /** + * + * *
        * The OpenAPI Specification document file.
        * 
* * .google.cloud.apigateway.v1.ApiConfig.File document = 1; + * * @return Whether the document field is set. */ public boolean hasDocument() { return documentBuilder_ != null || document_ != null; } /** + * + * *
        * The OpenAPI Specification document file.
        * 
* * .google.cloud.apigateway.v1.ApiConfig.File document = 1; + * * @return The document. */ public com.google.cloud.apigateway.v1.ApiConfig.File getDocument() { if (documentBuilder_ == null) { - return document_ == null ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() + : document_; } else { return documentBuilder_.getMessage(); } } /** + * + * *
        * The OpenAPI Specification document file.
        * 
@@ -1679,6 +1857,8 @@ public Builder setDocument(com.google.cloud.apigateway.v1.ApiConfig.File value) return this; } /** + * + * *
        * The OpenAPI Specification document file.
        * 
@@ -1697,6 +1877,8 @@ public Builder setDocument( return this; } /** + * + * *
        * The OpenAPI Specification document file.
        * 
@@ -1707,7 +1889,9 @@ public Builder mergeDocument(com.google.cloud.apigateway.v1.ApiConfig.File value if (documentBuilder_ == null) { if (document_ != null) { document_ = - com.google.cloud.apigateway.v1.ApiConfig.File.newBuilder(document_).mergeFrom(value).buildPartial(); + com.google.cloud.apigateway.v1.ApiConfig.File.newBuilder(document_) + .mergeFrom(value) + .buildPartial(); } else { document_ = value; } @@ -1719,6 +1903,8 @@ public Builder mergeDocument(com.google.cloud.apigateway.v1.ApiConfig.File value return this; } /** + * + * *
        * The OpenAPI Specification document file.
        * 
@@ -1737,6 +1923,8 @@ public Builder clearDocument() { return this; } /** + * + * *
        * The OpenAPI Specification document file.
        * 
@@ -1744,11 +1932,13 @@ public Builder clearDocument() { * .google.cloud.apigateway.v1.ApiConfig.File document = 1; */ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getDocumentBuilder() { - + onChanged(); return getDocumentFieldBuilder().getBuilder(); } /** + * + * *
        * The OpenAPI Specification document file.
        * 
@@ -1759,11 +1949,14 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getDocumentOrBuild if (documentBuilder_ != null) { return documentBuilder_.getMessageOrBuilder(); } else { - return document_ == null ? - com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() : document_; + return document_ == null + ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() + : document_; } } /** + * + * *
        * The OpenAPI Specification document file.
        * 
@@ -1771,18 +1964,22 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getDocumentOrBuild * .google.cloud.apigateway.v1.ApiConfig.File document = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig.File, + com.google.cloud.apigateway.v1.ApiConfig.File.Builder, + com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> getDocumentFieldBuilder() { if (documentBuilder_ == null) { - documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>( - getDocument(), - getParentForChildren(), - isClean()); + documentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig.File, + com.google.cloud.apigateway.v1.ApiConfig.File.Builder, + com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>( + getDocument(), getParentForChildren(), isClean()); document_ = null; } return documentBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1795,12 +1992,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ApiConfig.OpenApiDocument) private static final com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument(); } @@ -1809,16 +2006,16 @@ public static com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OpenApiDocument parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OpenApiDocument(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenApiDocument parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OpenApiDocument(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1833,14 +2030,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface GrpcServiceDefinitionOrBuilder extends + public interface GrpcServiceDefinitionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Input only. File descriptor set, generated by protoc.
      * To generate, use protoc with imports and source info included.
@@ -1849,11 +2048,16 @@ public interface GrpcServiceDefinitionOrBuilder extends
      * $ protoc --include_imports --include_source_info test.proto -o out.pb
      * 
* - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the fileDescriptorSet field is set. */ boolean hasFileDescriptorSet(); /** + * + * *
      * Input only. File descriptor set, generated by protoc.
      * To generate, use protoc with imports and source info included.
@@ -1862,11 +2066,16 @@ public interface GrpcServiceDefinitionOrBuilder extends
      * $ protoc --include_imports --include_source_info test.proto -o out.pb
      * 
* - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The fileDescriptorSet. */ com.google.cloud.apigateway.v1.ApiConfig.File getFileDescriptorSet(); /** + * + * *
      * Input only. File descriptor set, generated by protoc.
      * To generate, use protoc with imports and source info included.
@@ -1875,11 +2084,15 @@ public interface GrpcServiceDefinitionOrBuilder extends
      * $ protoc --include_imports --include_source_info test.proto -o out.pb
      * 
* - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getFileDescriptorSetOrBuilder(); /** + * + * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -1887,11 +2100,14 @@ public interface GrpcServiceDefinitionOrBuilder extends
      * file_descriptor_set.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getSourceList(); + java.util.List getSourceList(); /** + * + * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -1899,10 +2115,14 @@ public interface GrpcServiceDefinitionOrBuilder extends
      * file_descriptor_set.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.apigateway.v1.ApiConfig.File getSource(int index); /** + * + * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -1910,10 +2130,14 @@ public interface GrpcServiceDefinitionOrBuilder extends
      * file_descriptor_set.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getSourceCount(); /** + * + * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -1921,11 +2145,15 @@ public interface GrpcServiceDefinitionOrBuilder extends
      * file_descriptor_set.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getSourceOrBuilderList(); /** + * + * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -1933,43 +2161,46 @@ public interface GrpcServiceDefinitionOrBuilder extends
      * file_descriptor_set.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder( - int index); + com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder(int index); } /** + * + * *
    * A gRPC service definition.
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition} */ - public static final class GrpcServiceDefinition extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GrpcServiceDefinition extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) GrpcServiceDefinitionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GrpcServiceDefinition.newBuilder() to construct. private GrpcServiceDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GrpcServiceDefinition() { source_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GrpcServiceDefinition(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GrpcServiceDefinition( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1989,35 +2220,41 @@ private GrpcServiceDefinition( case 0: done = true; break; - case 10: { - com.google.cloud.apigateway.v1.ApiConfig.File.Builder subBuilder = null; - if (fileDescriptorSet_ != null) { - subBuilder = fileDescriptorSet_.toBuilder(); + case 10: + { + com.google.cloud.apigateway.v1.ApiConfig.File.Builder subBuilder = null; + if (fileDescriptorSet_ != null) { + subBuilder = fileDescriptorSet_.toBuilder(); + } + fileDescriptorSet_ = + input.readMessage( + com.google.cloud.apigateway.v1.ApiConfig.File.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fileDescriptorSet_); + fileDescriptorSet_ = subBuilder.buildPartial(); + } + + break; } - fileDescriptorSet_ = input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.File.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fileDescriptorSet_); - fileDescriptorSet_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - source_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + source_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + source_.add( + input.readMessage( + com.google.cloud.apigateway.v1.ApiConfig.File.parser(), extensionRegistry)); + break; } - source_.add( - input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.File.parser(), extensionRegistry)); - 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) { @@ -2025,8 +2262,7 @@ private GrpcServiceDefinition( } 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)) { source_ = java.util.Collections.unmodifiableList(source_); @@ -2035,22 +2271,27 @@ private GrpcServiceDefinition( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.class, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder.class); + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.class, + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder.class); } public static final int FILE_DESCRIPTOR_SET_FIELD_NUMBER = 1; private com.google.cloud.apigateway.v1.ApiConfig.File fileDescriptorSet_; /** + * + * *
      * Input only. File descriptor set, generated by protoc.
      * To generate, use protoc with imports and source info included.
@@ -2059,7 +2300,10 @@ private GrpcServiceDefinition(
      * $ protoc --include_imports --include_source_info test.proto -o out.pb
      * 
* - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the fileDescriptorSet field is set. */ @java.lang.Override @@ -2067,6 +2311,8 @@ public boolean hasFileDescriptorSet() { return fileDescriptorSet_ != null; } /** + * + * *
      * Input only. File descriptor set, generated by protoc.
      * To generate, use protoc with imports and source info included.
@@ -2075,14 +2321,21 @@ public boolean hasFileDescriptorSet() {
      * $ protoc --include_imports --include_source_info test.proto -o out.pb
      * 
* - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The fileDescriptorSet. */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.File getFileDescriptorSet() { - return fileDescriptorSet_ == null ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() : fileDescriptorSet_; + return fileDescriptorSet_ == null + ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() + : fileDescriptorSet_; } /** + * + * *
      * Input only. File descriptor set, generated by protoc.
      * To generate, use protoc with imports and source info included.
@@ -2091,7 +2344,9 @@ public com.google.cloud.apigateway.v1.ApiConfig.File getFileDescriptorSet() {
      * $ protoc --include_imports --include_source_info test.proto -o out.pb
      * 
* - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getFileDescriptorSetOrBuilder() { @@ -2101,6 +2356,8 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getFileDescriptorS public static final int SOURCE_FIELD_NUMBER = 2; private java.util.List source_; /** + * + * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -2108,13 +2365,17 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getFileDescriptorS
      * file_descriptor_set.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getSourceList() { return source_; } /** + * + * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -2122,14 +2383,18 @@ public java.util.List getSourceLi
      * file_descriptor_set.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getSourceOrBuilderList() { return source_; } /** + * + * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -2137,13 +2402,17 @@ public java.util.List getSourceLi
      * file_descriptor_set.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getSourceCount() { return source_.size(); } /** + * + * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -2151,13 +2420,17 @@ public int getSourceCount() {
      * file_descriptor_set.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.File getSource(int index) { return source_.get(index); } /** + * + * *
      * Optional. Uncompiled proto files associated with the descriptor set, used for
      * display purposes (server-side compilation is not supported). These
@@ -2165,15 +2438,17 @@ public com.google.cloud.apigateway.v1.ApiConfig.File getSource(int index) {
      * file_descriptor_set.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder( - int index) { + public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder(int index) { return source_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2185,8 +2460,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 (fileDescriptorSet_ != null) { output.writeMessage(1, getFileDescriptorSet()); } @@ -2203,12 +2477,10 @@ public int getSerializedSize() { size = 0; if (fileDescriptorSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFileDescriptorSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFileDescriptorSet()); } for (int i = 0; i < source_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, source_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, source_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2218,20 +2490,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.apigateway.v1.ApiConfig.GrpcServiceDefinition)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition other = (com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) obj; + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition other = + (com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) obj; if (hasFileDescriptorSet() != other.hasFileDescriptorSet()) return false; if (hasFileDescriptorSet()) { - if (!getFileDescriptorSet() - .equals(other.getFileDescriptorSet())) return false; + if (!getFileDescriptorSet().equals(other.getFileDescriptorSet())) return false; } - if (!getSourceList() - .equals(other.getSourceList())) return false; + if (!getSourceList().equals(other.getSourceList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2257,87 +2528,94 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition 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.apigateway.v1.ApiConfig.GrpcServiceDefinition 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.apigateway.v1.ApiConfig.GrpcServiceDefinition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition 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.apigateway.v1.ApiConfig.GrpcServiceDefinition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition 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.apigateway.v1.ApiConfig.GrpcServiceDefinition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition 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.apigateway.v1.ApiConfig.GrpcServiceDefinition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition 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.apigateway.v1.ApiConfig.GrpcServiceDefinition 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.apigateway.v1.ApiConfig.GrpcServiceDefinition 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.apigateway.v1.ApiConfig.GrpcServiceDefinition prototype) { + + public static Builder newBuilder( + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition 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 @@ -2347,27 +2625,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A gRPC service definition.
      * 
* * Protobuf type {@code google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition} */ - 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.apigateway.v1.ApiConfig.GrpcServiceDefinition) com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.class, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder.class); + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.class, + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.newBuilder() @@ -2375,17 +2658,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) { getSourceFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2405,13 +2688,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor; } @java.lang.Override - public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getDefaultInstanceForType() { + public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition + getDefaultInstanceForType() { return com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.getDefaultInstance(); } @@ -2426,7 +2710,8 @@ public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition build() { @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition buildPartial() { - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition result = new com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition(this); + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition result = + new com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition(this); int from_bitField0_ = bitField0_; if (fileDescriptorSetBuilder_ == null) { result.fileDescriptorSet_ = fileDescriptorSet_; @@ -2450,46 +2735,52 @@ public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) { - return mergeFrom((com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition)other); + return mergeFrom((com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition other) { - if (other == com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition other) { + if (other + == com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.getDefaultInstance()) + return this; if (other.hasFileDescriptorSet()) { mergeFileDescriptorSet(other.getFileDescriptorSet()); } @@ -2511,9 +2802,10 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDef sourceBuilder_ = null; source_ = other.source_; bitField0_ = (bitField0_ & ~0x00000001); - sourceBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSourceFieldBuilder() : null; + sourceBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSourceFieldBuilder() + : null; } else { sourceBuilder_.addAllMessages(other.source_); } @@ -2538,7 +2830,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2547,12 +2841,18 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.apigateway.v1.ApiConfig.File fileDescriptorSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> fileDescriptorSetBuilder_; + com.google.cloud.apigateway.v1.ApiConfig.File, + com.google.cloud.apigateway.v1.ApiConfig.File.Builder, + com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> + fileDescriptorSetBuilder_; /** + * + * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -2561,13 +2861,18 @@ public Builder mergeFrom(
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the fileDescriptorSet field is set. */ public boolean hasFileDescriptorSet() { return fileDescriptorSetBuilder_ != null || fileDescriptorSet_ != null; } /** + * + * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -2576,17 +2881,24 @@ public boolean hasFileDescriptorSet() {
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The fileDescriptorSet. */ public com.google.cloud.apigateway.v1.ApiConfig.File getFileDescriptorSet() { if (fileDescriptorSetBuilder_ == null) { - return fileDescriptorSet_ == null ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() : fileDescriptorSet_; + return fileDescriptorSet_ == null + ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() + : fileDescriptorSet_; } else { return fileDescriptorSetBuilder_.getMessage(); } } /** + * + * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -2595,7 +2907,9 @@ public com.google.cloud.apigateway.v1.ApiConfig.File getFileDescriptorSet() {
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setFileDescriptorSet(com.google.cloud.apigateway.v1.ApiConfig.File value) { if (fileDescriptorSetBuilder_ == null) { @@ -2611,6 +2925,8 @@ public Builder setFileDescriptorSet(com.google.cloud.apigateway.v1.ApiConfig.Fil return this; } /** + * + * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -2619,7 +2935,9 @@ public Builder setFileDescriptorSet(com.google.cloud.apigateway.v1.ApiConfig.Fil
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setFileDescriptorSet( com.google.cloud.apigateway.v1.ApiConfig.File.Builder builderForValue) { @@ -2633,6 +2951,8 @@ public Builder setFileDescriptorSet( return this; } /** + * + * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -2641,13 +2961,17 @@ public Builder setFileDescriptorSet(
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder mergeFileDescriptorSet(com.google.cloud.apigateway.v1.ApiConfig.File value) { if (fileDescriptorSetBuilder_ == null) { if (fileDescriptorSet_ != null) { fileDescriptorSet_ = - com.google.cloud.apigateway.v1.ApiConfig.File.newBuilder(fileDescriptorSet_).mergeFrom(value).buildPartial(); + com.google.cloud.apigateway.v1.ApiConfig.File.newBuilder(fileDescriptorSet_) + .mergeFrom(value) + .buildPartial(); } else { fileDescriptorSet_ = value; } @@ -2659,6 +2983,8 @@ public Builder mergeFileDescriptorSet(com.google.cloud.apigateway.v1.ApiConfig.F return this; } /** + * + * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -2667,7 +2993,9 @@ public Builder mergeFileDescriptorSet(com.google.cloud.apigateway.v1.ApiConfig.F
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder clearFileDescriptorSet() { if (fileDescriptorSetBuilder_ == null) { @@ -2681,6 +3009,8 @@ public Builder clearFileDescriptorSet() { return this; } /** + * + * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -2689,14 +3019,18 @@ public Builder clearFileDescriptorSet() {
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getFileDescriptorSetBuilder() { - + onChanged(); return getFileDescriptorSetFieldBuilder().getBuilder(); } /** + * + * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -2705,17 +3039,23 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getFileDescriptorSe
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getFileDescriptorSetOrBuilder() { + public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder + getFileDescriptorSetOrBuilder() { if (fileDescriptorSetBuilder_ != null) { return fileDescriptorSetBuilder_.getMessageOrBuilder(); } else { - return fileDescriptorSet_ == null ? - com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() : fileDescriptorSet_; + return fileDescriptorSet_ == null + ? com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance() + : fileDescriptorSet_; } } /** + * + * *
        * Input only. File descriptor set, generated by protoc.
        * To generate, use protoc with imports and source info included.
@@ -2724,35 +3064,46 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getFileDescriptorS
        * $ protoc --include_imports --include_source_info test.proto -o out.pb
        * 
* - * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig.File, + com.google.cloud.apigateway.v1.ApiConfig.File.Builder, + com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> getFileDescriptorSetFieldBuilder() { if (fileDescriptorSetBuilder_ == null) { - fileDescriptorSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>( - getFileDescriptorSet(), - getParentForChildren(), - isClean()); + fileDescriptorSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig.File, + com.google.cloud.apigateway.v1.ApiConfig.File.Builder, + com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>( + getFileDescriptorSet(), getParentForChildren(), isClean()); fileDescriptorSet_ = null; } return fileDescriptorSetBuilder_; } private java.util.List source_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSourceIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { source_ = new java.util.ArrayList(source_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> sourceBuilder_; + com.google.cloud.apigateway.v1.ApiConfig.File, + com.google.cloud.apigateway.v1.ApiConfig.File.Builder, + com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> + sourceBuilder_; /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -2760,7 +3111,9 @@ private void ensureSourceIsMutable() {
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getSourceList() { if (sourceBuilder_ == null) { @@ -2770,6 +3123,8 @@ public java.util.List getSourceLi } } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -2777,7 +3132,9 @@ public java.util.List getSourceLi
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getSourceCount() { if (sourceBuilder_ == null) { @@ -2787,6 +3144,8 @@ public int getSourceCount() { } } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -2794,7 +3153,9 @@ public int getSourceCount() {
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.apigateway.v1.ApiConfig.File getSource(int index) { if (sourceBuilder_ == null) { @@ -2804,6 +3165,8 @@ public com.google.cloud.apigateway.v1.ApiConfig.File getSource(int index) { } } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -2811,10 +3174,11 @@ public com.google.cloud.apigateway.v1.ApiConfig.File getSource(int index) {
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSource( - int index, com.google.cloud.apigateway.v1.ApiConfig.File value) { + public Builder setSource(int index, com.google.cloud.apigateway.v1.ApiConfig.File value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2828,6 +3192,8 @@ public Builder setSource( return this; } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -2835,7 +3201,9 @@ public Builder setSource(
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSource( int index, com.google.cloud.apigateway.v1.ApiConfig.File.Builder builderForValue) { @@ -2849,6 +3217,8 @@ public Builder setSource( return this; } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -2856,7 +3226,9 @@ public Builder setSource(
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSource(com.google.cloud.apigateway.v1.ApiConfig.File value) { if (sourceBuilder_ == null) { @@ -2872,6 +3244,8 @@ public Builder addSource(com.google.cloud.apigateway.v1.ApiConfig.File value) { return this; } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -2879,10 +3253,11 @@ public Builder addSource(com.google.cloud.apigateway.v1.ApiConfig.File value) {
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addSource( - int index, com.google.cloud.apigateway.v1.ApiConfig.File value) { + public Builder addSource(int index, com.google.cloud.apigateway.v1.ApiConfig.File value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2896,6 +3271,8 @@ public Builder addSource( return this; } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -2903,7 +3280,9 @@ public Builder addSource(
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSource( com.google.cloud.apigateway.v1.ApiConfig.File.Builder builderForValue) { @@ -2917,6 +3296,8 @@ public Builder addSource( return this; } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -2924,7 +3305,9 @@ public Builder addSource(
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSource( int index, com.google.cloud.apigateway.v1.ApiConfig.File.Builder builderForValue) { @@ -2938,6 +3321,8 @@ public Builder addSource( return this; } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -2945,14 +3330,15 @@ public Builder addSource(
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllSource( java.lang.Iterable values) { if (sourceBuilder_ == null) { ensureSourceIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, source_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, source_); onChanged(); } else { sourceBuilder_.addAllMessages(values); @@ -2960,6 +3346,8 @@ public Builder addAllSource( return this; } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -2967,7 +3355,9 @@ public Builder addAllSource(
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSource() { if (sourceBuilder_ == null) { @@ -2980,6 +3370,8 @@ public Builder clearSource() { return this; } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -2987,7 +3379,9 @@ public Builder clearSource() {
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeSource(int index) { if (sourceBuilder_ == null) { @@ -3000,6 +3394,8 @@ public Builder removeSource(int index) { return this; } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3007,13 +3403,16 @@ public Builder removeSource(int index) {
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getSourceBuilder( - int index) { + public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getSourceBuilder(int index) { return getSourceFieldBuilder().getBuilder(index); } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3021,16 +3420,20 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getSourceBuilder(
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder( - int index) { + public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder(int index) { if (sourceBuilder_ == null) { - return source_.get(index); } else { + return source_.get(index); + } else { return sourceBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3038,10 +3441,12 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getSourceOrBuilderList() { + public java.util.List + getSourceOrBuilderList() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilderList(); } else { @@ -3049,6 +3454,8 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder } } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3056,13 +3463,17 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getSourceOrBuilder
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addSourceBuilder() { - return getSourceFieldBuilder().addBuilder( - com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()); + return getSourceFieldBuilder() + .addBuilder(com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()); } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3070,14 +3481,17 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addSourceBuilder()
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addSourceBuilder( - int index) { - return getSourceFieldBuilder().addBuilder( - index, com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()); + public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addSourceBuilder(int index) { + return getSourceFieldBuilder() + .addBuilder(index, com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()); } /** + * + * *
        * Optional. Uncompiled proto files associated with the descriptor set, used for
        * display purposes (server-side compilation is not supported). These
@@ -3085,26 +3499,32 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addSourceBuilder(
        * file_descriptor_set.
        * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getSourceBuilderList() { + public java.util.List + getSourceBuilderList() { return getSourceFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig.File, + com.google.cloud.apigateway.v1.ApiConfig.File.Builder, + com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { - sourceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>( - source_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + sourceBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig.File, + com.google.cloud.apigateway.v1.ApiConfig.File.Builder, + com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>( + source_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3117,30 +3537,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition) - private static final com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition DEFAULT_INSTANCE; + private static final com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition(); } - public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getDefaultInstance() { + public static com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GrpcServiceDefinition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GrpcServiceDefinition(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GrpcServiceDefinition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GrpcServiceDefinition(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3152,21 +3574,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getDefaultInstanceForType() { + public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Resource name of the API Config.
    * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -3175,30 +3600,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; } } /** + * + * *
    * Output only. Resource name of the API Config.
    * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -3209,11 +3634,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -3221,11 +3650,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -3233,11 +3666,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -3247,11 +3683,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -3259,11 +3699,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -3271,11 +3715,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -3283,24 +3730,23 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -3309,6 +3755,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -3317,22 +3765,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -3342,11 +3790,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -3356,16 +3805,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -3375,12 +3824,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -3390,11 +3838,14 @@ public java.lang.String getLabelsOrThrow(
   public static final int DISPLAY_NAME_FIELD_NUMBER = 5;
   private volatile java.lang.Object displayName_;
   /**
+   *
+   *
    * 
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ @java.lang.Override @@ -3403,29 +3854,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -3436,6 +3887,8 @@ public java.lang.String getDisplayName() { public static final int GATEWAY_SERVICE_ACCOUNT_FIELD_NUMBER = 14; private volatile java.lang.Object gatewayServiceAccount_; /** + * + * *
    * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
    * should use to authenticate to other services. This may either be the
@@ -3446,7 +3899,10 @@ public java.lang.String getDisplayName() {
    * IAP-secured service.
    * 
* - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The gatewayServiceAccount. */ @java.lang.Override @@ -3455,14 +3911,15 @@ public java.lang.String getGatewayServiceAccount() { 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(); gatewayServiceAccount_ = s; return s; } } /** + * + * *
    * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
    * should use to authenticate to other services. This may either be the
@@ -3473,17 +3930,18 @@ public java.lang.String getGatewayServiceAccount() {
    * IAP-secured service.
    * 
* - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for gatewayServiceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getGatewayServiceAccountBytes() { + public com.google.protobuf.ByteString getGatewayServiceAccountBytes() { java.lang.Object ref = gatewayServiceAccount_; 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); gatewayServiceAccount_ = b; return b; } else { @@ -3494,12 +3952,17 @@ public java.lang.String getGatewayServiceAccount() { public static final int SERVICE_CONFIG_ID_FIELD_NUMBER = 12; private volatile java.lang.Object serviceConfigId_; /** + * + * *
    * Output only. The ID of the associated Service Config (
    * https://cloud.google.com/service-infrastructure/docs/glossary#config).
    * 
* - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The serviceConfigId. */ @java.lang.Override @@ -3508,30 +3971,32 @@ public java.lang.String getServiceConfigId() { 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(); serviceConfigId_ = s; return s; } } /** + * + * *
    * Output only. The ID of the associated Service Config (
    * https://cloud.google.com/service-infrastructure/docs/glossary#config).
    * 
* - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for serviceConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceConfigIdBytes() { + public com.google.protobuf.ByteString getServiceConfigIdBytes() { java.lang.Object ref = serviceConfigId_; 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); serviceConfigId_ = b; return b; } else { @@ -3542,163 +4007,223 @@ public java.lang.String getServiceConfigId() { public static final int STATE_FIELD_NUMBER = 8; private int state_; /** + * + * *
    * Output only. State of the API Config.
    * 
* - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. State of the API Config.
    * 
* - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.State getState() { + @java.lang.Override + public com.google.cloud.apigateway.v1.ApiConfig.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.apigateway.v1.ApiConfig.State result = com.google.cloud.apigateway.v1.ApiConfig.State.valueOf(state_); + com.google.cloud.apigateway.v1.ApiConfig.State result = + com.google.cloud.apigateway.v1.ApiConfig.State.valueOf(state_); return result == null ? com.google.cloud.apigateway.v1.ApiConfig.State.UNRECOGNIZED : result; } public static final int OPENAPI_DOCUMENTS_FIELD_NUMBER = 9; - private java.util.List openapiDocuments_; + private java.util.List + openapiDocuments_; /** + * + * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getOpenapiDocumentsList() { + public java.util.List + getOpenapiDocumentsList() { return openapiDocuments_; } /** + * + * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getOpenapiDocumentsOrBuilderList() { return openapiDocuments_; } /** + * + * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getOpenapiDocumentsCount() { return openapiDocuments_.size(); } /** + * + * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument getOpenapiDocuments(int index) { return openapiDocuments_.get(index); } /** + * + * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder getOpenapiDocumentsOrBuilder( - int index) { + public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder + getOpenapiDocumentsOrBuilder(int index) { return openapiDocuments_.get(index); } public static final int GRPC_SERVICES_FIELD_NUMBER = 10; - private java.util.List grpcServices_; + private java.util.List + grpcServices_; /** + * + * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getGrpcServicesList() { + public java.util.List + getGrpcServicesList() { return grpcServices_; } /** + * + * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder> getGrpcServicesOrBuilderList() { return grpcServices_; } /** + * + * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getGrpcServicesCount() { return grpcServices_.size(); } /** + * + * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getGrpcServices(int index) { return grpcServices_.get(index); } /** + * + * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder getGrpcServicesOrBuilder( - int index) { + public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder + getGrpcServicesOrBuilder(int index) { return grpcServices_.get(index); } public static final int MANAGED_SERVICE_CONFIGS_FIELD_NUMBER = 11; private java.util.List managedServiceConfigs_; /** + * + * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -3713,13 +4238,18 @@ public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder g
    * fields.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getManagedServiceConfigsList() { + public java.util.List + getManagedServiceConfigsList() { return managedServiceConfigs_; } /** + * + * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -3734,14 +4264,18 @@ public java.util.List getManagedS
    * fields.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getManagedServiceConfigsOrBuilderList() { return managedServiceConfigs_; } /** + * + * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -3756,13 +4290,17 @@ public java.util.List getManagedS
    * fields.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getManagedServiceConfigsCount() { return managedServiceConfigs_.size(); } /** + * + * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -3777,13 +4315,17 @@ public int getManagedServiceConfigsCount() {
    * fields.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.File getManagedServiceConfigs(int index) { return managedServiceConfigs_.get(index); } /** + * + * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -3798,7 +4340,9 @@ public com.google.cloud.apigateway.v1.ApiConfig.File getManagedServiceConfigs(in
    * fields.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getManagedServiceConfigsOrBuilder( @@ -3807,6 +4351,7 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getManagedServiceC } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3818,8 +4363,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_); } @@ -3829,12 +4373,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -3869,41 +4409,37 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (state_ != com.google.cloud.apigateway.v1.ApiConfig.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); } for (int i = 0; i < openapiDocuments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, openapiDocuments_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, openapiDocuments_.get(i)); } for (int i = 0; i < grpcServices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, grpcServices_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, grpcServices_.get(i)); } for (int i = 0; i < managedServiceConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, managedServiceConfigs_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, managedServiceConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceConfigId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, serviceConfigId_); @@ -3919,40 +4455,30 @@ 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.apigateway.v1.ApiConfig)) { return super.equals(obj); } com.google.cloud.apigateway.v1.ApiConfig other = (com.google.cloud.apigateway.v1.ApiConfig) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getGatewayServiceAccount() - .equals(other.getGatewayServiceAccount())) return false; - if (!getServiceConfigId() - .equals(other.getServiceConfigId())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getGatewayServiceAccount().equals(other.getGatewayServiceAccount())) return false; + if (!getServiceConfigId().equals(other.getServiceConfigId())) return false; if (state_ != other.state_) return false; - if (!getOpenapiDocumentsList() - .equals(other.getOpenapiDocumentsList())) return false; - if (!getGrpcServicesList() - .equals(other.getGrpcServicesList())) return false; - if (!getManagedServiceConfigsList() - .equals(other.getManagedServiceConfigsList())) return false; + if (!getOpenapiDocumentsList().equals(other.getOpenapiDocumentsList())) return false; + if (!getGrpcServicesList().equals(other.getGrpcServicesList())) return false; + if (!getManagedServiceConfigsList().equals(other.getManagedServiceConfigsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4003,97 +4529,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.ApiConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.ApiConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.ApiConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig 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; } /** + * + * *
    * An API Configuration is a combination of settings for both the Managed
    * Service and Gateways serving this API Config.
@@ -4101,43 +4634,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.apigateway.v1.ApiConfig}
    */
-  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.apigateway.v1.ApiConfig)
       com.google.cloud.apigateway.v1.ApiConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.apigateway.v1.Apigateway
+          .internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_fieldAccessorTable
+      return com.google.cloud.apigateway.v1.Apigateway
+          .internal_static_google_cloud_apigateway_v1_ApiConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.apigateway.v1.ApiConfig.class, com.google.cloud.apigateway.v1.ApiConfig.Builder.class);
+              com.google.cloud.apigateway.v1.ApiConfig.class,
+              com.google.cloud.apigateway.v1.ApiConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.apigateway.v1.ApiConfig.newBuilder()
@@ -4145,19 +4678,19 @@ 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) {
         getOpenapiDocumentsFieldBuilder();
         getGrpcServicesFieldBuilder();
         getManagedServiceConfigsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -4206,9 +4739,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.apigateway.v1.Apigateway
+          .internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor;
     }
 
     @java.lang.Override
@@ -4227,7 +4760,8 @@ public com.google.cloud.apigateway.v1.ApiConfig build() {
 
     @java.lang.Override
     public com.google.cloud.apigateway.v1.ApiConfig buildPartial() {
-      com.google.cloud.apigateway.v1.ApiConfig result = new com.google.cloud.apigateway.v1.ApiConfig(this);
+      com.google.cloud.apigateway.v1.ApiConfig result =
+          new com.google.cloud.apigateway.v1.ApiConfig(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (createTimeBuilder_ == null) {
@@ -4281,38 +4815,39 @@ public com.google.cloud.apigateway.v1.ApiConfig 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.apigateway.v1.ApiConfig) {
-        return mergeFrom((com.google.cloud.apigateway.v1.ApiConfig)other);
+        return mergeFrom((com.google.cloud.apigateway.v1.ApiConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -4331,8 +4866,7 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.ApiConfig other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
         onChanged();
@@ -4366,9 +4900,10 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.ApiConfig other) {
             openapiDocumentsBuilder_ = null;
             openapiDocuments_ = other.openapiDocuments_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            openapiDocumentsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getOpenapiDocumentsFieldBuilder() : null;
+            openapiDocumentsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getOpenapiDocumentsFieldBuilder()
+                    : null;
           } else {
             openapiDocumentsBuilder_.addAllMessages(other.openapiDocuments_);
           }
@@ -4392,9 +4927,10 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.ApiConfig other) {
             grpcServicesBuilder_ = null;
             grpcServices_ = other.grpcServices_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            grpcServicesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getGrpcServicesFieldBuilder() : null;
+            grpcServicesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getGrpcServicesFieldBuilder()
+                    : null;
           } else {
             grpcServicesBuilder_.addAllMessages(other.grpcServices_);
           }
@@ -4418,9 +4954,10 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.ApiConfig other) {
             managedServiceConfigsBuilder_ = null;
             managedServiceConfigs_ = other.managedServiceConfigs_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            managedServiceConfigsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getManagedServiceConfigsFieldBuilder() : null;
+            managedServiceConfigsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getManagedServiceConfigsFieldBuilder()
+                    : null;
           } else {
             managedServiceConfigsBuilder_.addAllMessages(other.managedServiceConfigs_);
           }
@@ -4454,23 +4991,26 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Resource name of the API Config.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -4479,21 +5019,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the API Config.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -4501,57 +5042,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the API Config.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; } /** + * + * *
      * Output only. Resource name of the API Config.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the API Config.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -4559,39 +5107,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4607,14 +5174,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -4625,17 +5195,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -4647,11 +5221,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -4665,48 +5243,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -4714,39 +5308,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4762,14 +5375,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -4780,17 +5396,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -4802,11 +5422,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -4820,69 +5444,84 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -4894,6 +5533,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -4902,22 +5543,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -4927,11 +5568,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -4941,16 +5583,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -4960,12 +5603,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -4973,11 +5615,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -4986,23 +5629,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -5011,19 +5652,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -5032,28 +5674,27 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
 
     private java.lang.Object displayName_ = "";
     /**
+     *
+     *
      * 
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -5062,20 +5703,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -5083,54 +5725,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -5138,6 +5787,8 @@ public Builder setDisplayNameBytes( private java.lang.Object gatewayServiceAccount_ = ""; /** + * + * *
      * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
      * should use to authenticate to other services. This may either be the
@@ -5148,14 +5799,16 @@ public Builder setDisplayNameBytes(
      * IAP-secured service.
      * 
* - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The gatewayServiceAccount. */ public java.lang.String getGatewayServiceAccount() { java.lang.Object ref = gatewayServiceAccount_; 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(); gatewayServiceAccount_ = s; return s; @@ -5164,6 +5817,8 @@ public java.lang.String getGatewayServiceAccount() { } } /** + * + * *
      * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
      * should use to authenticate to other services. This may either be the
@@ -5174,16 +5829,17 @@ public java.lang.String getGatewayServiceAccount() {
      * IAP-secured service.
      * 
* - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for gatewayServiceAccount. */ - public com.google.protobuf.ByteString - getGatewayServiceAccountBytes() { + public com.google.protobuf.ByteString getGatewayServiceAccountBytes() { java.lang.Object ref = gatewayServiceAccount_; 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); gatewayServiceAccount_ = b; return b; } else { @@ -5191,6 +5847,8 @@ public java.lang.String getGatewayServiceAccount() { } } /** + * + * *
      * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
      * should use to authenticate to other services. This may either be the
@@ -5201,21 +5859,25 @@ public java.lang.String getGatewayServiceAccount() {
      * IAP-secured service.
      * 
* - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @param value The gatewayServiceAccount to set. * @return This builder for chaining. */ - public Builder setGatewayServiceAccount( - java.lang.String value) { + public Builder setGatewayServiceAccount(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gatewayServiceAccount_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
      * should use to authenticate to other services. This may either be the
@@ -5226,16 +5888,21 @@ public Builder setGatewayServiceAccount(
      * IAP-secured service.
      * 
* - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearGatewayServiceAccount() { - + gatewayServiceAccount_ = getDefaultInstance().getGatewayServiceAccount(); onChanged(); return this; } /** + * + * *
      * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
      * should use to authenticate to other services. This may either be the
@@ -5246,17 +5913,19 @@ public Builder clearGatewayServiceAccount() {
      * IAP-secured service.
      * 
* - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for gatewayServiceAccount to set. * @return This builder for chaining. */ - public Builder setGatewayServiceAccountBytes( - com.google.protobuf.ByteString value) { + public Builder setGatewayServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gatewayServiceAccount_ = value; onChanged(); return this; @@ -5264,19 +5933,23 @@ public Builder setGatewayServiceAccountBytes( private java.lang.Object serviceConfigId_ = ""; /** + * + * *
      * Output only. The ID of the associated Service Config (
      * https://cloud.google.com/service-infrastructure/docs/glossary#config).
      * 
* - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The serviceConfigId. */ public java.lang.String getServiceConfigId() { java.lang.Object ref = serviceConfigId_; 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(); serviceConfigId_ = s; return s; @@ -5285,21 +5958,24 @@ public java.lang.String getServiceConfigId() { } } /** + * + * *
      * Output only. The ID of the associated Service Config (
      * https://cloud.google.com/service-infrastructure/docs/glossary#config).
      * 
* - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for serviceConfigId. */ - public com.google.protobuf.ByteString - getServiceConfigIdBytes() { + public com.google.protobuf.ByteString getServiceConfigIdBytes() { java.lang.Object ref = serviceConfigId_; 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); serviceConfigId_ = b; return b; } else { @@ -5307,57 +5983,70 @@ public java.lang.String getServiceConfigId() { } } /** + * + * *
      * Output only. The ID of the associated Service Config (
      * https://cloud.google.com/service-infrastructure/docs/glossary#config).
      * 
* - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The serviceConfigId to set. * @return This builder for chaining. */ - public Builder setServiceConfigId( - java.lang.String value) { + public Builder setServiceConfigId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceConfigId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The ID of the associated Service Config (
      * https://cloud.google.com/service-infrastructure/docs/glossary#config).
      * 
* - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearServiceConfigId() { - + serviceConfigId_ = getDefaultInstance().getServiceConfigId(); onChanged(); return this; } /** + * + * *
      * Output only. The ID of the associated Service Config (
      * https://cloud.google.com/service-infrastructure/docs/glossary#config).
      * 
* - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for serviceConfigId to set. * @return This builder for chaining. */ - public Builder setServiceConfigIdBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceConfigIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceConfigId_ = value; onChanged(); return this; @@ -5365,51 +6054,73 @@ public Builder setServiceConfigIdBytes( private int state_ = 0; /** + * + * *
      * Output only. State of the API Config.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. State of the API Config.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. State of the API Config.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.apigateway.v1.ApiConfig.State result = com.google.cloud.apigateway.v1.ApiConfig.State.valueOf(state_); + com.google.cloud.apigateway.v1.ApiConfig.State result = + com.google.cloud.apigateway.v1.ApiConfig.State.valueOf(state_); return result == null ? com.google.cloud.apigateway.v1.ApiConfig.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. State of the API Config.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -5417,47 +6128,63 @@ public Builder setState(com.google.cloud.apigateway.v1.ApiConfig.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. State of the API Config.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private java.util.List openapiDocuments_ = - java.util.Collections.emptyList(); + private java.util.List + openapiDocuments_ = java.util.Collections.emptyList(); + private void ensureOpenapiDocumentsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - openapiDocuments_ = new java.util.ArrayList(openapiDocuments_); + openapiDocuments_ = + new java.util.ArrayList( + openapiDocuments_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder> openapiDocumentsBuilder_; + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument, + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder, + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder> + openapiDocumentsBuilder_; /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getOpenapiDocumentsList() { + public java.util.List + getOpenapiDocumentsList() { if (openapiDocumentsBuilder_ == null) { return java.util.Collections.unmodifiableList(openapiDocuments_); } else { @@ -5465,12 +6192,16 @@ public java.util.List } } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getOpenapiDocumentsCount() { if (openapiDocumentsBuilder_ == null) { @@ -5480,12 +6211,16 @@ public int getOpenapiDocumentsCount() { } } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument getOpenapiDocuments(int index) { if (openapiDocumentsBuilder_ == null) { @@ -5495,12 +6230,16 @@ public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument getOpenapiDocume } } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOpenapiDocuments( int index, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument value) { @@ -5517,15 +6256,20 @@ public Builder setOpenapiDocuments( return this; } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOpenapiDocuments( - int index, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder builderForValue) { + int index, + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder builderForValue) { if (openapiDocumentsBuilder_ == null) { ensureOpenapiDocumentsIsMutable(); openapiDocuments_.set(index, builderForValue.build()); @@ -5536,14 +6280,19 @@ public Builder setOpenapiDocuments( return this; } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addOpenapiDocuments(com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument value) { + public Builder addOpenapiDocuments( + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument value) { if (openapiDocumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5557,12 +6306,16 @@ public Builder addOpenapiDocuments(com.google.cloud.apigateway.v1.ApiConfig.Open return this; } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addOpenapiDocuments( int index, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument value) { @@ -5579,12 +6332,16 @@ public Builder addOpenapiDocuments( return this; } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addOpenapiDocuments( com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder builderForValue) { @@ -5598,15 +6355,20 @@ public Builder addOpenapiDocuments( return this; } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addOpenapiDocuments( - int index, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder builderForValue) { + int index, + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder builderForValue) { if (openapiDocumentsBuilder_ == null) { ensureOpenapiDocumentsIsMutable(); openapiDocuments_.add(index, builderForValue.build()); @@ -5617,19 +6379,23 @@ public Builder addOpenapiDocuments( return this; } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllOpenapiDocuments( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (openapiDocumentsBuilder_ == null) { ensureOpenapiDocumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, openapiDocuments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, openapiDocuments_); onChanged(); } else { openapiDocumentsBuilder_.addAllMessages(values); @@ -5637,12 +6403,16 @@ public Builder addAllOpenapiDocuments( return this; } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOpenapiDocuments() { if (openapiDocumentsBuilder_ == null) { @@ -5655,12 +6425,16 @@ public Builder clearOpenapiDocuments() { return this; } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeOpenapiDocuments(int index) { if (openapiDocumentsBuilder_ == null) { @@ -5673,42 +6447,56 @@ public Builder removeOpenapiDocuments(int index) { return this; } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder getOpenapiDocumentsBuilder( - int index) { + public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder + getOpenapiDocumentsBuilder(int index) { return getOpenapiDocumentsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder getOpenapiDocumentsOrBuilder( - int index) { + public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder + getOpenapiDocumentsOrBuilder(int index) { if (openapiDocumentsBuilder_ == null) { - return openapiDocuments_.get(index); } else { + return openapiDocuments_.get(index); + } else { return openapiDocumentsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getOpenapiDocumentsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder> + getOpenapiDocumentsOrBuilderList() { if (openapiDocumentsBuilder_ != null) { return openapiDocumentsBuilder_.getMessageOrBuilderList(); } else { @@ -5716,48 +6504,69 @@ public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder getOpen } } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder addOpenapiDocumentsBuilder() { - return getOpenapiDocumentsFieldBuilder().addBuilder( - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.getDefaultInstance()); + public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder + addOpenapiDocumentsBuilder() { + return getOpenapiDocumentsFieldBuilder() + .addBuilder( + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.getDefaultInstance()); } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder addOpenapiDocumentsBuilder( - int index) { - return getOpenapiDocumentsFieldBuilder().addBuilder( - index, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.getDefaultInstance()); + public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder + addOpenapiDocumentsBuilder(int index) { + return getOpenapiDocumentsFieldBuilder() + .addBuilder( + index, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.getDefaultInstance()); } /** + * + * *
      * Optional. OpenAPI specification documents. If specified, grpc_services and
      * managed_service_configs must not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getOpenapiDocumentsBuilderList() { + public java.util.List + getOpenapiDocumentsBuilderList() { return getOpenapiDocumentsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument, + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder, + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder> getOpenapiDocumentsFieldBuilder() { if (openapiDocumentsBuilder_ == null) { - openapiDocumentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder, com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder>( + openapiDocumentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument, + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder, + com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder>( openapiDocuments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -5767,27 +6576,38 @@ public com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument.Builder addOpena return openapiDocumentsBuilder_; } - private java.util.List grpcServices_ = - java.util.Collections.emptyList(); + private java.util.List + grpcServices_ = java.util.Collections.emptyList(); + private void ensureGrpcServicesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - grpcServices_ = new java.util.ArrayList(grpcServices_); + grpcServices_ = + new java.util.ArrayList( + grpcServices_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder> grpcServicesBuilder_; + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition, + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder, + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder> + grpcServicesBuilder_; /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getGrpcServicesList() { + public java.util.List + getGrpcServicesList() { if (grpcServicesBuilder_ == null) { return java.util.Collections.unmodifiableList(grpcServices_); } else { @@ -5795,12 +6615,16 @@ public java.util.List * Optional. gRPC service definition files. If specified, openapi_documents must * not be included. *
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getGrpcServicesCount() { if (grpcServicesBuilder_ == null) { @@ -5810,14 +6634,19 @@ public int getGrpcServicesCount() { } } /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getGrpcServices(int index) { + public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getGrpcServices( + int index) { if (grpcServicesBuilder_ == null) { return grpcServices_.get(index); } else { @@ -5825,12 +6654,16 @@ public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getGrpcSer } } /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGrpcServices( int index, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition value) { @@ -5847,15 +6680,20 @@ public Builder setGrpcServices( return this; } /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGrpcServices( - int index, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder builderForValue) { + int index, + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder builderForValue) { if (grpcServicesBuilder_ == null) { ensureGrpcServicesIsMutable(); grpcServices_.set(index, builderForValue.build()); @@ -5866,14 +6704,19 @@ public Builder setGrpcServices( return this; } /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addGrpcServices(com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition value) { + public Builder addGrpcServices( + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition value) { if (grpcServicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5887,12 +6730,16 @@ public Builder addGrpcServices(com.google.cloud.apigateway.v1.ApiConfig.GrpcServ return this; } /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addGrpcServices( int index, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition value) { @@ -5909,12 +6756,16 @@ public Builder addGrpcServices( return this; } /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addGrpcServices( com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder builderForValue) { @@ -5928,15 +6779,20 @@ public Builder addGrpcServices( return this; } /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addGrpcServices( - int index, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder builderForValue) { + int index, + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder builderForValue) { if (grpcServicesBuilder_ == null) { ensureGrpcServicesIsMutable(); grpcServices_.add(index, builderForValue.build()); @@ -5947,19 +6803,23 @@ public Builder addGrpcServices( return this; } /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllGrpcServices( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (grpcServicesBuilder_ == null) { ensureGrpcServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, grpcServices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, grpcServices_); onChanged(); } else { grpcServicesBuilder_.addAllMessages(values); @@ -5967,12 +6827,16 @@ public Builder addAllGrpcServices( return this; } /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGrpcServices() { if (grpcServicesBuilder_ == null) { @@ -5985,12 +6849,16 @@ public Builder clearGrpcServices() { return this; } /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeGrpcServices(int index) { if (grpcServicesBuilder_ == null) { @@ -6003,42 +6871,56 @@ public Builder removeGrpcServices(int index) { return this; } /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder getGrpcServicesBuilder( - int index) { + public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder + getGrpcServicesBuilder(int index) { return getGrpcServicesFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder getGrpcServicesOrBuilder( - int index) { + public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder + getGrpcServicesOrBuilder(int index) { if (grpcServicesBuilder_ == null) { - return grpcServices_.get(index); } else { + return grpcServices_.get(index); + } else { return grpcServicesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getGrpcServicesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder> + getGrpcServicesOrBuilderList() { if (grpcServicesBuilder_ != null) { return grpcServicesBuilder_.getMessageOrBuilderList(); } else { @@ -6046,70 +6928,97 @@ public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder g } } /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder addGrpcServicesBuilder() { - return getGrpcServicesFieldBuilder().addBuilder( - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.getDefaultInstance()); + public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder + addGrpcServicesBuilder() { + return getGrpcServicesFieldBuilder() + .addBuilder( + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.getDefaultInstance()); } /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder addGrpcServicesBuilder( - int index) { - return getGrpcServicesFieldBuilder().addBuilder( - index, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.getDefaultInstance()); + public com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder + addGrpcServicesBuilder(int index) { + return getGrpcServicesFieldBuilder() + .addBuilder( + index, + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.getDefaultInstance()); } /** + * + * *
      * Optional. gRPC service definition files. If specified, openapi_documents must
      * not be included.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getGrpcServicesBuilderList() { + public java.util.List + getGrpcServicesBuilderList() { return getGrpcServicesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition, + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder, + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder> getGrpcServicesFieldBuilder() { if (grpcServicesBuilder_ == null) { - grpcServicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder, com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder>( - grpcServices_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + grpcServicesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition, + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition.Builder, + com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder>( + grpcServices_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); grpcServices_ = null; } return grpcServicesBuilder_; } private java.util.List managedServiceConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureManagedServiceConfigsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - managedServiceConfigs_ = new java.util.ArrayList(managedServiceConfigs_); + managedServiceConfigs_ = + new java.util.ArrayList( + managedServiceConfigs_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> managedServiceConfigsBuilder_; + com.google.cloud.apigateway.v1.ApiConfig.File, + com.google.cloud.apigateway.v1.ApiConfig.File.Builder, + com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> + managedServiceConfigsBuilder_; /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6124,9 +7033,12 @@ private void ensureManagedServiceConfigsIsMutable() {
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getManagedServiceConfigsList() { + public java.util.List + getManagedServiceConfigsList() { if (managedServiceConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(managedServiceConfigs_); } else { @@ -6134,6 +7046,8 @@ public java.util.List getManagedS } } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6148,7 +7062,9 @@ public java.util.List getManagedS
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getManagedServiceConfigsCount() { if (managedServiceConfigsBuilder_ == null) { @@ -6158,6 +7074,8 @@ public int getManagedServiceConfigsCount() { } } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6172,7 +7090,9 @@ public int getManagedServiceConfigsCount() {
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.apigateway.v1.ApiConfig.File getManagedServiceConfigs(int index) { if (managedServiceConfigsBuilder_ == null) { @@ -6182,6 +7102,8 @@ public com.google.cloud.apigateway.v1.ApiConfig.File getManagedServiceConfigs(in } } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6196,7 +7118,9 @@ public com.google.cloud.apigateway.v1.ApiConfig.File getManagedServiceConfigs(in
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setManagedServiceConfigs( int index, com.google.cloud.apigateway.v1.ApiConfig.File value) { @@ -6213,6 +7137,8 @@ public Builder setManagedServiceConfigs( return this; } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6227,7 +7153,9 @@ public Builder setManagedServiceConfigs(
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setManagedServiceConfigs( int index, com.google.cloud.apigateway.v1.ApiConfig.File.Builder builderForValue) { @@ -6241,6 +7169,8 @@ public Builder setManagedServiceConfigs( return this; } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6255,7 +7185,9 @@ public Builder setManagedServiceConfigs(
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addManagedServiceConfigs(com.google.cloud.apigateway.v1.ApiConfig.File value) { if (managedServiceConfigsBuilder_ == null) { @@ -6271,6 +7203,8 @@ public Builder addManagedServiceConfigs(com.google.cloud.apigateway.v1.ApiConfig return this; } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6285,7 +7219,9 @@ public Builder addManagedServiceConfigs(com.google.cloud.apigateway.v1.ApiConfig
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addManagedServiceConfigs( int index, com.google.cloud.apigateway.v1.ApiConfig.File value) { @@ -6302,6 +7238,8 @@ public Builder addManagedServiceConfigs( return this; } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6316,7 +7254,9 @@ public Builder addManagedServiceConfigs(
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addManagedServiceConfigs( com.google.cloud.apigateway.v1.ApiConfig.File.Builder builderForValue) { @@ -6330,6 +7270,8 @@ public Builder addManagedServiceConfigs( return this; } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6344,7 +7286,9 @@ public Builder addManagedServiceConfigs(
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addManagedServiceConfigs( int index, com.google.cloud.apigateway.v1.ApiConfig.File.Builder builderForValue) { @@ -6358,6 +7302,8 @@ public Builder addManagedServiceConfigs( return this; } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6372,14 +7318,15 @@ public Builder addManagedServiceConfigs(
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllManagedServiceConfigs( java.lang.Iterable values) { if (managedServiceConfigsBuilder_ == null) { ensureManagedServiceConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, managedServiceConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, managedServiceConfigs_); onChanged(); } else { managedServiceConfigsBuilder_.addAllMessages(values); @@ -6387,6 +7334,8 @@ public Builder addAllManagedServiceConfigs( return this; } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6401,7 +7350,9 @@ public Builder addAllManagedServiceConfigs(
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearManagedServiceConfigs() { if (managedServiceConfigsBuilder_ == null) { @@ -6414,6 +7365,8 @@ public Builder clearManagedServiceConfigs() { return this; } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6428,7 +7381,9 @@ public Builder clearManagedServiceConfigs() {
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeManagedServiceConfigs(int index) { if (managedServiceConfigsBuilder_ == null) { @@ -6441,6 +7396,8 @@ public Builder removeManagedServiceConfigs(int index) { return this; } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6455,13 +7412,17 @@ public Builder removeManagedServiceConfigs(int index) {
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getManagedServiceConfigsBuilder( int index) { return getManagedServiceConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6476,16 +7437,21 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder getManagedServiceCo
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getManagedServiceConfigsOrBuilder( int index) { if (managedServiceConfigsBuilder_ == null) { - return managedServiceConfigs_.get(index); } else { + return managedServiceConfigs_.get(index); + } else { return managedServiceConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6500,10 +7466,12 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getManagedServiceC
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getManagedServiceConfigsOrBuilderList() { + public java.util.List + getManagedServiceConfigsOrBuilderList() { if (managedServiceConfigsBuilder_ != null) { return managedServiceConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -6511,6 +7479,8 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getManagedServiceC } } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6525,13 +7495,17 @@ public com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getManagedServiceC
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addManagedServiceConfigsBuilder() { - return getManagedServiceConfigsFieldBuilder().addBuilder( - com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()); + return getManagedServiceConfigsFieldBuilder() + .addBuilder(com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()); } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6546,14 +7520,18 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addManagedServiceCo
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addManagedServiceConfigsBuilder( int index) { - return getManagedServiceConfigsFieldBuilder().addBuilder( - index, com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()); + return getManagedServiceConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.apigateway.v1.ApiConfig.File.getDefaultInstance()); } /** + * + * *
      * Optional. Service Configuration files. At least one must be included when using gRPC
      * service definitions. See
@@ -6568,18 +7546,26 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addManagedServiceCo
      * fields.
      * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getManagedServiceConfigsBuilderList() { + public java.util.List + getManagedServiceConfigsBuilderList() { return getManagedServiceConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig.File, + com.google.cloud.apigateway.v1.ApiConfig.File.Builder, + com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> getManagedServiceConfigsFieldBuilder() { if (managedServiceConfigsBuilder_ == null) { - managedServiceConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig.File, com.google.cloud.apigateway.v1.ApiConfig.File.Builder, com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>( + managedServiceConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig.File, + com.google.cloud.apigateway.v1.ApiConfig.File.Builder, + com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>( managedServiceConfigs_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), @@ -6588,9 +7574,9 @@ public com.google.cloud.apigateway.v1.ApiConfig.File.Builder addManagedServiceCo } return managedServiceConfigsBuilder_; } + @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); } @@ -6600,12 +7586,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ApiConfig) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ApiConfig) private static final com.google.cloud.apigateway.v1.ApiConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ApiConfig(); } @@ -6614,16 +7600,16 @@ public static com.google.cloud.apigateway.v1.ApiConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApiConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApiConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApiConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6638,6 +7624,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ApiConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigName.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigName.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigOrBuilder.java index 5394b91..5537bb3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiConfigOrBuilder.java @@ -1,89 +1,134 @@ +/* + * 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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface ApiConfigOrBuilder extends +public interface ApiConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ApiConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Resource name of the API Config.
    * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of the API Config.
    * Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -94,6 +139,8 @@ public interface ApiConfigOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -102,15 +149,13 @@ public interface ApiConfigOrBuilder extends
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -119,9 +164,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -132,11 +178,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -145,31 +193,36 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
    * should use to authenticate to other services. This may either be the
@@ -180,11 +233,16 @@ java.lang.String getLabelsOrThrow(
    * IAP-secured service.
    * 
* - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The gatewayServiceAccount. */ java.lang.String getGatewayServiceAccount(); /** + * + * *
    * Immutable. The Google Cloud IAM Service Account that Gateways serving this config
    * should use to authenticate to other services. This may either be the
@@ -195,152 +253,215 @@ java.lang.String getLabelsOrThrow(
    * IAP-secured service.
    * 
* - * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for gatewayServiceAccount. */ - com.google.protobuf.ByteString - getGatewayServiceAccountBytes(); + com.google.protobuf.ByteString getGatewayServiceAccountBytes(); /** + * + * *
    * Output only. The ID of the associated Service Config (
    * https://cloud.google.com/service-infrastructure/docs/glossary#config).
    * 
* - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The serviceConfigId. */ java.lang.String getServiceConfigId(); /** + * + * *
    * Output only. The ID of the associated Service Config (
    * https://cloud.google.com/service-infrastructure/docs/glossary#config).
    * 
* - * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string service_config_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for serviceConfigId. */ - com.google.protobuf.ByteString - getServiceConfigIdBytes(); + com.google.protobuf.ByteString getServiceConfigIdBytes(); /** + * + * *
    * Output only. State of the API Config.
    * 
* - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. State of the API Config.
    * 
* - * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.apigateway.v1.ApiConfig.State getState(); /** + * + * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getOpenapiDocumentsList(); /** + * + * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocument getOpenapiDocuments(int index); /** + * + * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getOpenapiDocumentsCount(); /** + * + * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getOpenapiDocumentsOrBuilderList(); /** + * + * *
    * Optional. OpenAPI specification documents. If specified, grpc_services and
    * managed_service_configs must not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder getOpenapiDocumentsOrBuilder( int index); /** + * + * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getGrpcServicesList(); /** + * + * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition getGrpcServices(int index); /** + * + * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getGrpcServicesCount(); /** + * + * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getGrpcServicesOrBuilderList(); /** + * + * *
    * Optional. gRPC service definition files. If specified, openapi_documents must
    * not be included.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder getGrpcServicesOrBuilder( int index); /** + * + * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -355,11 +476,14 @@ com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder getGrpcS
    * fields.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getManagedServiceConfigsList(); + java.util.List getManagedServiceConfigsList(); /** + * + * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -374,10 +498,14 @@ com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder getGrpcS
    * fields.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.apigateway.v1.ApiConfig.File getManagedServiceConfigs(int index); /** + * + * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -392,10 +520,14 @@ com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder getGrpcS
    * fields.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getManagedServiceConfigsCount(); /** + * + * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -410,11 +542,15 @@ com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder getGrpcS
    * fields.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getManagedServiceConfigsOrBuilderList(); /** + * + * *
    * Optional. Service Configuration files. At least one must be included when using gRPC
    * service definitions. See
@@ -429,7 +565,9 @@ com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder getGrpcS
    * fields.
    * 
* - * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder getManagedServiceConfigsOrBuilder( int index); diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiName.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiName.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiOrBuilder.java index e9a00b1..9b9fcd2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApiOrBuilder.java @@ -1,89 +1,134 @@ +/* + * 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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface ApiOrBuilder extends +public interface ApiOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.Api) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Resource name of the API.
    * Format: projects/{project}/locations/global/apis/{api}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of the API.
    * Format: projects/{project}/locations/global/apis/{api}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -94,6 +139,8 @@ public interface ApiOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -102,15 +149,13 @@ public interface ApiOrBuilder extends
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -119,9 +164,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -132,11 +178,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -145,31 +193,36 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. Immutable. The name of a Google Managed Service (
    * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -177,11 +230,16 @@ java.lang.String getLabelsOrThrow(
    * project as this API.
    * 
* - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The managedService. */ java.lang.String getManagedService(); /** + * + * *
    * Optional. Immutable. The name of a Google Managed Service (
    * https://cloud.google.com/service-infrastructure/docs/glossary#managed). If
@@ -189,27 +247,39 @@ java.lang.String getLabelsOrThrow(
    * project as this API.
    * 
* - * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string managed_service = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for managedService. */ - com.google.protobuf.ByteString - getManagedServiceBytes(); + com.google.protobuf.ByteString getManagedServiceBytes(); /** + * + * *
    * Output only. State of the API.
    * 
* - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. State of the API.
    * 
* - * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Api.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.apigateway.v1.Api.State getState(); diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Apigateway.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Apigateway.java new file mode 100644 index 0000000..d51265f --- /dev/null +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Apigateway.java @@ -0,0 +1,595 @@ +/* + * 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/apigateway/v1/apigateway.proto + +package com.google.cloud.apigateway.v1; + +public final class Apigateway { + private Apigateway() {} + + 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_apigateway_v1_Api_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_Api_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ApiConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ApiConfig_File_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_Gateway_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_Gateway_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_GetGatewayRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ListApisRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ListApisResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_GetApiRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_CreateApiRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_UpdateApiRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_DeleteApiRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_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/apigateway/v1/apigateway." + + "proto\022\032google.cloud.apigateway.v1\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/r" + + "esource.proto\032 google/protobuf/field_mas" + + "k.proto\032\037google/protobuf/timestamp.proto" + + "\032\034google/api/annotations.proto\"\326\004\n\003Api\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022@\n\006labels\030\004 \003(\0132+.google.cloud.api" + + "gateway.v1.Api.LabelsEntryB\003\340A\001\022\031\n\014displ" + + "ay_name\030\005 \001(\tB\003\340A\001\022S\n\017managed_service\030\007 " + + "\001(\tB:\340A\005\340A\001\372A1\n/servicemanagement.google" + + "apis.com/ManagedService\0229\n\005state\030\014 \001(\0162%" + + ".google.cloud.apigateway.v1.Api.StateB\003\340" + + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"`\n\005State\022\025\n\021STATE_UNSPECIFIED\020" + + "\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED\020\003\022" + + "\014\n\010DELETING\020\004\022\014\n\010UPDATING\020\005:R\352AO\n\035apigat" + + "eway.googleapis.com/Api\022.projects/{proje" + + "ct}/locations/global/apis/{api}\"\373\t\n\tApiC" + + "onfig\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030" + + "\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + + "\n\013update_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022F\n\006labels\030\004 \003(\01321.google.cl" + + "oud.apigateway.v1.ApiConfig.LabelsEntryB" + + "\003\340A\001\022\031\n\014display_name\030\005 \001(\tB\003\340A\001\022J\n\027gatew" + + "ay_service_account\030\016 \001(\tB)\340A\005\372A#\n!iam.go" + + "ogleapis.com/ServiceAccount\022K\n\021service_c" + + "onfig_id\030\014 \001(\tB0\340A\003\372A*\n(servicemanagemen" + + "t.googleapis.com/Service\022?\n\005state\030\010 \001(\0162" + + "+.google.cloud.apigateway.v1.ApiConfig.S" + + "tateB\003\340A\003\022U\n\021openapi_documents\030\t \003(\01325.g" + + "oogle.cloud.apigateway.v1.ApiConfig.Open" + + "ApiDocumentB\003\340A\001\022W\n\rgrpc_services\030\n \003(\0132" + + ";.google.cloud.apigateway.v1.ApiConfig.G" + + "rpcServiceDefinitionB\003\340A\001\022P\n\027managed_ser" + + "vice_configs\030\013 \003(\0132*.google.cloud.apigat" + + "eway.v1.ApiConfig.FileB\003\340A\001\032&\n\004File\022\014\n\004p" + + "ath\030\001 \001(\t\022\020\n\010contents\030\002 \001(\014\032O\n\017OpenApiDo" + + "cument\022<\n\010document\030\001 \001(\0132*.google.cloud." + + "apigateway.v1.ApiConfig.File\032\246\001\n\025GrpcSer" + + "viceDefinition\022L\n\023file_descriptor_set\030\001 " + + "\001(\0132*.google.cloud.apigateway.v1.ApiConf" + + "ig.FileB\003\340A\004\022?\n\006source\030\002 \003(\0132*.google.cl" + + "oud.apigateway.v1.ApiConfig.FileB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"p\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010" + + "CREATING\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED\020\003\022\014\n\010DE" + + "LETING\020\004\022\014\n\010UPDATING\020\005\022\016\n\nACTIVATING\020\006:m" + + "\352Aj\n#apigateway.googleapis.com/ApiConfig" + + "\022Cprojects/{project}/locations/global/ap" + + "is/{api}/configs/{api_config}\"\375\004\n\007Gatewa" + + "y\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022D\n\006labels\030\004 \003(\0132/.google.cloud." + + "apigateway.v1.Gateway.LabelsEntryB\003\340A\001\022\031" + + "\n\014display_name\030\005 \001(\tB\003\340A\001\022?\n\napi_config\030" + + "\006 \001(\tB+\340A\002\372A%\n#apigateway.googleapis.com" + + "/ApiConfig\022=\n\005state\030\007 \001(\0162).google.cloud" + + ".apigateway.v1.Gateway.StateB\003\340A\003\022\035\n\020def" + + "ault_hostname\030\t \001(\tB\003\340A\003\032-\n\013LabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022\014\n\010U" + + "PDATING\020\005:b\352A_\n!apigateway.googleapis.co" + + "m/Gateway\022:projects/{project}/locations/" + + "{location}/gateways/{gateway}\"\231\001\n\023ListGa" + + "tewaysRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!l" + + "ocations.googleapis.com/Location\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filte" + + "r\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\205\001\n\024ListGatewa" + + "ysResponse\0225\n\010gateways\030\001 \003(\0132#.google.cl" + + "oud.apigateway.v1.Gateway\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\022\035\n\025unreachable_locations\030\003 \003(" + + "\t\"L\n\021GetGatewayRequest\0227\n\004name\030\001 \001(\tB)\340A" + + "\002\372A#\n!apigateway.googleapis.com/Gateway\"" + + "\245\001\n\024CreateGatewayRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022\027\n\ngateway_id\030\002 \001(\tB\003\340A\002\0229\n\007gateway\030" + + "\003 \001(\0132#.google.cloud.apigateway.v1.Gatew" + + "ayB\003\340A\002\"\202\001\n\024UpdateGatewayRequest\022/\n\013upda" + + "te_mask\030\001 \001(\0132\032.google.protobuf.FieldMas" + + "k\0229\n\007gateway\030\002 \001(\0132#.google.cloud.apigat" + + "eway.v1.GatewayB\003\340A\002\"O\n\024DeleteGatewayReq" + + "uest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!apigateway.g" + + "oogleapis.com/Gateway\"\225\001\n\017ListApisReques" + + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" + + "gleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010o" + + "rder_by\030\005 \001(\t\"y\n\020ListApisResponse\022-\n\004api" + + "s\030\001 \003(\0132\037.google.cloud.apigateway.v1.Api" + + "\022\027\n\017next_page_token\030\002 \001(\t\022\035\n\025unreachable" + + "_locations\030\003 \003(\t\"D\n\rGetApiRequest\0223\n\004nam" + + "e\030\001 \001(\tB%\340A\002\372A\037\n\035apigateway.googleapis.c" + + "om/Api\"\225\001\n\020CreateApiRequest\0229\n\006parent\030\001 " + + "\001(\tB)\340A\002\372A#\n!locations.googleapis.com/Lo" + + "cation\022\023\n\006api_id\030\002 \001(\tB\003\340A\002\0221\n\003api\030\003 \001(\013" + + "2\037.google.cloud.apigateway.v1.ApiB\003\340A\002\"v" + + "\n\020UpdateApiRequest\022/\n\013update_mask\030\001 \001(\0132" + + "\032.google.protobuf.FieldMask\0221\n\003api\030\002 \001(\013" + + "2\037.google.cloud.apigateway.v1.ApiB\003\340A\002\"G" + + "\n\020DeleteApiRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037" + + "\n\035apigateway.googleapis.com/Api\"\227\001\n\025List" + + "ApiConfigsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A" + + "\037\n\035apigateway.googleapis.com/Api\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filte" + + "r\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\214\001\n\026ListApiCon" + + "figsResponse\022:\n\013api_configs\030\001 \003(\0132%.goog" + + "le.cloud.apigateway.v1.ApiConfig\022\027\n\017next" + + "_page_token\030\002 \001(\t\022\035\n\025unreachable_locatio" + + "ns\030\003 \003(\t\"\332\001\n\023GetApiConfigRequest\0229\n\004name" + + "\030\001 \001(\tB+\340A\002\372A%\n#apigateway.googleapis.co" + + "m/ApiConfig\022H\n\004view\030\003 \001(\0162:.google.cloud" + + ".apigateway.v1.GetApiConfigRequest.Confi" + + "gView\">\n\nConfigView\022\033\n\027CONFIG_VIEW_UNSPE" + + "CIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002\"\253\001\n\026Create" + + "ApiConfigRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037" + + "\n\035apigateway.googleapis.com/Api\022\032\n\rapi_c" + + "onfig_id\030\002 \001(\tB\003\340A\002\022>\n\napi_config\030\003 \001(\0132" + + "%.google.cloud.apigateway.v1.ApiConfigB\003" + + "\340A\002\"\211\001\n\026UpdateApiConfigRequest\022/\n\013update" + + "_mask\030\001 \001(\0132\032.google.protobuf.FieldMask\022" + + ">\n\napi_config\030\002 \001(\0132%.google.cloud.apiga" + + "teway.v1.ApiConfigB\003\340A\002\"S\n\026DeleteApiConf" + + "igRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#apigate" + + "way.googleapis.com/ApiConfig\"\205\003\n\021Operati" + + "onMetadata\0224\n\013create_time\030\001 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006t" + + "arget\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016s" + + "tatus_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_ca" + + "ncellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001" + + "(\tB\003\340A\003\022R\n\013diagnostics\030\010 \003(\01328.google.cl" + + "oud.apigateway.v1.OperationMetadata.Diag" + + "nosticB\003\340A\003\032/\n\nDiagnostic\022\020\n\010location\030\001 " + + "\001(\t\022\017\n\007message\030\002 \001(\tB\270\003\n\036com.google.clou" + + "d.apigateway.v1P\001ZDgoogle.golang.org/gen" + + "proto/googleapis/cloud/apigateway/v1;api" + + "gateway\252\002\032Google.Cloud.ApiGateway.V1\312\002\032G" + + "oogle\\Cloud\\ApiGateway\\V1\352\002\035Google::Clou" + + "d::ApiGateway::V1\352AY\n!iam.googleapis.com" + + "/ServiceAccount\0224projects/{project}/serv" + + "iceAccounts/{service_account}\352AE\n/servic" + + "emanagement.googleapis.com/ManagedServic" + + "e\022\022services/{service}\352AO\n(servicemanagem" + + "ent.googleapis.com/Service\022#services/{se" + + "rvice}/configs/{config}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_apigateway_v1_Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_apigateway_v1_Api_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_Api_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "DisplayName", + "ManagedService", + "State", + }); + internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_descriptor = + internal_static_google_cloud_apigateway_v1_Api_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_Api_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_apigateway_v1_ApiConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "DisplayName", + "GatewayServiceAccount", + "ServiceConfigId", + "State", + "OpenapiDocuments", + "GrpcServices", + "ManagedServiceConfigs", + }); + internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor = + internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_apigateway_v1_ApiConfig_File_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ApiConfig_File_descriptor, + new java.lang.String[] { + "Path", "Contents", + }); + internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor = + internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ApiConfig_OpenApiDocument_descriptor, + new java.lang.String[] { + "Document", + }); + internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor = + internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ApiConfig_GrpcServiceDefinition_descriptor, + new java.lang.String[] { + "FileDescriptorSet", "Source", + }); + internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_descriptor = + internal_static_google_cloud_apigateway_v1_ApiConfig_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ApiConfig_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_apigateway_v1_Gateway_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_apigateway_v1_Gateway_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_Gateway_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "DisplayName", + "ApiConfig", + "State", + "DefaultHostname", + }); + internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_descriptor = + internal_static_google_cloud_apigateway_v1_Gateway_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor, + new java.lang.String[] { + "Gateways", "NextPageToken", "UnreachableLocations", + }); + internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_apigateway_v1_GetGatewayRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor, + new java.lang.String[] { + "Parent", "GatewayId", "Gateway", + }); + internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Gateway", + }); + internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_apigateway_v1_ListApisRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_apigateway_v1_ListApisResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor, + new java.lang.String[] { + "Apis", "NextPageToken", "UnreachableLocations", + }); + internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_apigateway_v1_GetApiRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_apigateway_v1_CreateApiRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor, + new java.lang.String[] { + "Parent", "ApiId", "Api", + }); + internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_apigateway_v1_UpdateApiRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Api", + }); + internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_apigateway_v1_DeleteApiRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor, + new java.lang.String[] { + "ApiConfigs", "NextPageToken", "UnreachableLocations", + }); + internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor, + new java.lang.String[] { + "Name", "View", + }); + internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "ApiConfigId", "ApiConfig", + }); + internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "ApiConfig", + }); + internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_apigateway_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + "Diagnostics", + }); + internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor = + internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor, + new java.lang.String[] { + "Location", "Message", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApigatewayService.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApigatewayService.java new file mode 100644 index 0000000..e9eea35 --- /dev/null +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ApigatewayService.java @@ -0,0 +1,151 @@ +/* + * 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/apigateway/v1/apigateway_service.proto + +package com.google.cloud.apigateway.v1; + +public final class ApigatewayService { + private ApigatewayService() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/apigateway/v1/apigateway_" + + "service.proto\022\032google.cloud.apigateway.v" + + "1\032\034google/api/annotations.proto\032\027google/" + + "api/client.proto\032+google/cloud/apigatewa" + + "y/v1/apigateway.proto\032#google/longrunnin" + + "g/operations.proto2\340\027\n\021ApiGatewayService" + + "\022\260\001\n\014ListGateways\022/.google.cloud.apigate" + + "way.v1.ListGatewaysRequest\0320.google.clou" + + "d.apigateway.v1.ListGatewaysResponse\"=\202\323" + + "\344\223\002.\022,/v1/{parent=projects/*/locations/*" + + "}/gateways\332A\006parent\022\235\001\n\nGetGateway\022-.goo" + + "gle.cloud.apigateway.v1.GetGatewayReques" + + "t\032#.google.cloud.apigateway.v1.Gateway\";" + + "\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*" + + "/gateways/*}\332A\004name\022\332\001\n\rCreateGateway\0220." + + "google.cloud.apigateway.v1.CreateGateway" + + "Request\032\035.google.longrunning.Operation\"x" + + "\202\323\344\223\0027\",/v1/{parent=projects/*/locations" + + "/*}/gateways:\007gateway\332A\031parent,gateway,g" + + "ateway_id\312A\034\n\007Gateway\022\021OperationMetadata" + + "\022\334\001\n\rUpdateGateway\0220.google.cloud.apigat" + + "eway.v1.UpdateGatewayRequest\032\035.google.lo" + + "ngrunning.Operation\"z\202\323\344\223\002?24/v1/{gatewa" + + "y.name=projects/*/locations/*/gateways/*" + + "}:\007gateway\332A\023gateway,update_mask\312A\034\n\007Gat" + + "eway\022\021OperationMetadata\022\312\001\n\rDeleteGatewa" + + "y\0220.google.cloud.apigateway.v1.DeleteGat" + + "ewayRequest\032\035.google.longrunning.Operati" + + "on\"h\202\323\344\223\002.*,/v1/{name=projects/*/locatio" + + "ns/*/gateways/*}\332A\004name\312A*\n\025google.proto" + + "buf.Empty\022\021OperationMetadata\022\240\001\n\010ListApi" + + "s\022+.google.cloud.apigateway.v1.ListApisR" + + "equest\032,.google.cloud.apigateway.v1.List" + + "ApisResponse\"9\202\323\344\223\002*\022(/v1/{parent=projec" + + "ts/*/locations/*}/apis\332A\006parent\022\215\001\n\006GetA" + + "pi\022).google.cloud.apigateway.v1.GetApiRe" + + "quest\032\037.google.cloud.apigateway.v1.Api\"7" + + "\202\323\344\223\002*\022(/v1/{name=projects/*/locations/*" + + "/apis/*}\332A\004name\022\276\001\n\tCreateApi\022,.google.c" + + "loud.apigateway.v1.CreateApiRequest\032\035.go" + + "ogle.longrunning.Operation\"d\202\323\344\223\002/\"(/v1/" + + "{parent=projects/*/locations/*}/apis:\003ap" + + "i\332A\021parent,api,api_id\312A\030\n\003Api\022\021Operation" + + "Metadata\022\300\001\n\tUpdateApi\022,.google.cloud.ap" + + "igateway.v1.UpdateApiRequest\032\035.google.lo" + + "ngrunning.Operation\"f\202\323\344\223\00232,/v1/{api.na" + + "me=projects/*/locations/*/apis/*}:\003api\332A" + + "\017api,update_mask\312A\030\n\003Api\022\021OperationMetad" + + "ata\022\276\001\n\tDeleteApi\022,.google.cloud.apigate" + + "way.v1.DeleteApiRequest\032\035.google.longrun" + + "ning.Operation\"d\202\323\344\223\002**(/v1/{name=projec" + + "ts/*/locations/*/apis/*}\332A\004name\312A*\n\025goog" + + "le.protobuf.Empty\022\021OperationMetadata\022\274\001\n" + + "\016ListApiConfigs\0221.google.cloud.apigatewa" + + "y.v1.ListApiConfigsRequest\0322.google.clou" + + "d.apigateway.v1.ListApiConfigsResponse\"C" + + "\202\323\344\223\0024\0222/v1/{parent=projects/*/locations" + + "/*/apis/*}/configs\332A\006parent\022\251\001\n\014GetApiCo" + + "nfig\022/.google.cloud.apigateway.v1.GetApi" + + "ConfigRequest\032%.google.cloud.apigateway." + + "v1.ApiConfig\"A\202\323\344\223\0024\0222/v1/{name=projects" + + "/*/locations/*/apis/*/configs/*}\332A\004name\022" + + "\360\001\n\017CreateApiConfig\0222.google.cloud.apiga" + + "teway.v1.CreateApiConfigRequest\032\035.google" + + ".longrunning.Operation\"\211\001\202\323\344\223\002@\"2/v1/{pa" + + "rent=projects/*/locations/*/apis/*}/conf" + + "igs:\napi_config\332A\037parent,api_config,api_" + + "config_id\312A\036\n\tApiConfig\022\021OperationMetada" + + "ta\022\362\001\n\017UpdateApiConfig\0222.google.cloud.ap" + + "igateway.v1.UpdateApiConfigRequest\032\035.goo" + + "gle.longrunning.Operation\"\213\001\202\323\344\223\002K2=/v1/" + + "{api_config.name=projects/*/locations/*/" + + "apis/*/configs/*}:\napi_config\332A\026api_conf" + + "ig,update_mask\312A\036\n\tApiConfig\022\021OperationM" + + "etadata\022\324\001\n\017DeleteApiConfig\0222.google.clo" + + "ud.apigateway.v1.DeleteApiConfigRequest\032" + + "\035.google.longrunning.Operation\"n\202\323\344\223\0024*2" + + "/v1/{name=projects/*/locations/*/apis/*/" + + "configs/*}\332A\004name\312A*\n\025google.protobuf.Em" + + "pty\022\021OperationMetadata\032M\312A\031apigateway.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\302\001\n\036com.google.clo" + + "ud.apigateway.v1P\001ZDgoogle.golang.org/ge" + + "nproto/googleapis/cloud/apigateway/v1;ap" + + "igateway\252\002\032Google.Cloud.ApiGateway.V1\312\002\032" + + "Google\\Cloud\\ApiGateway\\V1\352\002\035Google::Clo" + + "ud::ApiGateway::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.cloud.apigateway.v1.Apigateway.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.cloud.apigateway.v1.Apigateway.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequest.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequest.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequest.java index d059d81..14b1d03 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequest.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Request message for ApiGatewayService.CreateApiConfig
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.CreateApiConfigRequest} */ -public final class CreateApiConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateApiConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.CreateApiConfigRequest) CreateApiConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateApiConfigRequest.newBuilder() to construct. private CreateApiConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateApiConfigRequest() { parent_ = ""; apiConfigId_ = ""; @@ -26,16 +44,15 @@ private CreateApiConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateApiConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateApiConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateApiConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - apiConfigId_ = s; - break; - } - case 26: { - com.google.cloud.apigateway.v1.ApiConfig.Builder subBuilder = null; - if (apiConfig_ != null) { - subBuilder = apiConfig_.toBuilder(); + parent_ = s; + break; } - apiConfig_ = input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(apiConfig_); - apiConfig_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + apiConfigId_ = s; + break; } + case 26: + { + com.google.cloud.apigateway.v1.ApiConfig.Builder subBuilder = null; + if (apiConfig_ != null) { + subBuilder = apiConfig_.toBuilder(); + } + apiConfig_ = + input.readMessage( + com.google.cloud.apigateway.v1.ApiConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(apiConfig_); + apiConfig_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +115,42 @@ private CreateApiConfigRequest( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.CreateApiConfigRequest.class, com.google.cloud.apigateway.v1.CreateApiConfigRequest.Builder.class); + com.google.cloud.apigateway.v1.CreateApiConfigRequest.class, + com.google.cloud.apigateway.v1.CreateApiConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent resource of the API Config, of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * 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 @@ -130,30 +159,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 resource of the API Config, of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * 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 { @@ -164,12 +195,15 @@ public java.lang.String getParent() { public static final int API_CONFIG_ID_FIELD_NUMBER = 2; private volatile java.lang.Object apiConfigId_; /** + * + * *
    * Required. Identifier to assign to the API Config. Must be unique within scope of
    * the parent resource.
    * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The apiConfigId. */ @java.lang.Override @@ -178,30 +212,30 @@ public java.lang.String getApiConfigId() { 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(); apiConfigId_ = s; return s; } } /** + * + * *
    * Required. Identifier to assign to the API Config. Must be unique within scope of
    * the parent resource.
    * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for apiConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiConfigIdBytes() { + public com.google.protobuf.ByteString getApiConfigIdBytes() { java.lang.Object ref = apiConfigId_; 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); apiConfigId_ = b; return b; } else { @@ -212,11 +246,16 @@ public java.lang.String getApiConfigId() { public static final int API_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.apigateway.v1.ApiConfig apiConfig_; /** + * + * *
    * Required. API resource.
    * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the apiConfig field is set. */ @java.lang.Override @@ -224,23 +263,34 @@ public boolean hasApiConfig() { return apiConfig_ != null; } /** + * + * *
    * Required. API resource.
    * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The apiConfig. */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig getApiConfig() { - return apiConfig_ == null ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() : apiConfig_; + return apiConfig_ == null + ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() + : apiConfig_; } /** + * + * *
    * Required. API resource.
    * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigOrBuilder() { @@ -248,6 +298,7 @@ public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,8 +310,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_); } @@ -286,8 +336,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, apiConfigId_); } if (apiConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getApiConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getApiConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -297,21 +346,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.apigateway.v1.CreateApiConfigRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.CreateApiConfigRequest other = (com.google.cloud.apigateway.v1.CreateApiConfigRequest) obj; + com.google.cloud.apigateway.v1.CreateApiConfigRequest other = + (com.google.cloud.apigateway.v1.CreateApiConfigRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getApiConfigId() - .equals(other.getApiConfigId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getApiConfigId().equals(other.getApiConfigId())) return false; if (hasApiConfig() != other.hasApiConfig()) return false; if (hasApiConfig()) { - if (!getApiConfig() - .equals(other.getApiConfig())) return false; + if (!getApiConfig().equals(other.getApiConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -338,117 +385,127 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.CreateApiConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.CreateApiConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.apigateway.v1.CreateApiConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ApiGatewayService.CreateApiConfig
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.CreateApiConfigRequest} */ - 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.apigateway.v1.CreateApiConfigRequest) com.google.cloud.apigateway.v1.CreateApiConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.CreateApiConfigRequest.class, com.google.cloud.apigateway.v1.CreateApiConfigRequest.Builder.class); + com.google.cloud.apigateway.v1.CreateApiConfigRequest.class, + com.google.cloud.apigateway.v1.CreateApiConfigRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.CreateApiConfigRequest.newBuilder() @@ -456,16 +513,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(); @@ -483,9 +539,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_CreateApiConfigRequest_descriptor; } @java.lang.Override @@ -504,7 +560,8 @@ public com.google.cloud.apigateway.v1.CreateApiConfigRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.CreateApiConfigRequest buildPartial() { - com.google.cloud.apigateway.v1.CreateApiConfigRequest result = new com.google.cloud.apigateway.v1.CreateApiConfigRequest(this); + com.google.cloud.apigateway.v1.CreateApiConfigRequest result = + new com.google.cloud.apigateway.v1.CreateApiConfigRequest(this); result.parent_ = parent_; result.apiConfigId_ = apiConfigId_; if (apiConfigBuilder_ == null) { @@ -520,38 +577,39 @@ public com.google.cloud.apigateway.v1.CreateApiConfigRequest 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.apigateway.v1.CreateApiConfigRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.CreateApiConfigRequest)other); + return mergeFrom((com.google.cloud.apigateway.v1.CreateApiConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -559,7 +617,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.CreateApiConfigRequest other) { - if (other == com.google.cloud.apigateway.v1.CreateApiConfigRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.CreateApiConfigRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -590,7 +649,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.apigateway.v1.CreateApiConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.apigateway.v1.CreateApiConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -602,19 +662,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * 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; @@ -623,21 +687,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * 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 { @@ -645,57 +712,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * 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 resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * 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 resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * 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; @@ -703,19 +783,21 @@ public Builder setParentBytes( private java.lang.Object apiConfigId_ = ""; /** + * + * *
      * Required. Identifier to assign to the API Config. Must be unique within scope of
      * the parent resource.
      * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The apiConfigId. */ public java.lang.String getApiConfigId() { java.lang.Object ref = apiConfigId_; 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(); apiConfigId_ = s; return s; @@ -724,21 +806,22 @@ public java.lang.String getApiConfigId() { } } /** + * + * *
      * Required. Identifier to assign to the API Config. Must be unique within scope of
      * the parent resource.
      * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for apiConfigId. */ - public com.google.protobuf.ByteString - getApiConfigIdBytes() { + public com.google.protobuf.ByteString getApiConfigIdBytes() { java.lang.Object ref = apiConfigId_; 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); apiConfigId_ = b; return b; } else { @@ -746,57 +829,64 @@ public java.lang.String getApiConfigId() { } } /** + * + * *
      * Required. Identifier to assign to the API Config. Must be unique within scope of
      * the parent resource.
      * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The apiConfigId to set. * @return This builder for chaining. */ - public Builder setApiConfigId( - java.lang.String value) { + public Builder setApiConfigId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiConfigId_ = value; onChanged(); return this; } /** + * + * *
      * Required. Identifier to assign to the API Config. Must be unique within scope of
      * the parent resource.
      * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearApiConfigId() { - + apiConfigId_ = getDefaultInstance().getApiConfigId(); onChanged(); return this; } /** + * + * *
      * Required. Identifier to assign to the API Config. Must be unique within scope of
      * the parent resource.
      * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for apiConfigId to set. * @return This builder for chaining. */ - public Builder setApiConfigIdBytes( - com.google.protobuf.ByteString value) { + public Builder setApiConfigIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiConfigId_ = value; onChanged(); return this; @@ -804,39 +894,58 @@ public Builder setApiConfigIdBytes( private com.google.cloud.apigateway.v1.ApiConfig apiConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder> apiConfigBuilder_; + com.google.cloud.apigateway.v1.ApiConfig, + com.google.cloud.apigateway.v1.ApiConfig.Builder, + com.google.cloud.apigateway.v1.ApiConfigOrBuilder> + apiConfigBuilder_; /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the apiConfig field is set. */ public boolean hasApiConfig() { return apiConfigBuilder_ != null || apiConfig_ != null; } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The apiConfig. */ public com.google.cloud.apigateway.v1.ApiConfig getApiConfig() { if (apiConfigBuilder_ == null) { - return apiConfig_ == null ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() : apiConfig_; + return apiConfig_ == null + ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() + : apiConfig_; } else { return apiConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setApiConfig(com.google.cloud.apigateway.v1.ApiConfig value) { if (apiConfigBuilder_ == null) { @@ -852,14 +961,17 @@ public Builder setApiConfig(com.google.cloud.apigateway.v1.ApiConfig value) { return this; } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setApiConfig( - com.google.cloud.apigateway.v1.ApiConfig.Builder builderForValue) { + public Builder setApiConfig(com.google.cloud.apigateway.v1.ApiConfig.Builder builderForValue) { if (apiConfigBuilder_ == null) { apiConfig_ = builderForValue.build(); onChanged(); @@ -870,17 +982,23 @@ public Builder setApiConfig( return this; } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeApiConfig(com.google.cloud.apigateway.v1.ApiConfig value) { if (apiConfigBuilder_ == null) { if (apiConfig_ != null) { apiConfig_ = - com.google.cloud.apigateway.v1.ApiConfig.newBuilder(apiConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.apigateway.v1.ApiConfig.newBuilder(apiConfig_) + .mergeFrom(value) + .buildPartial(); } else { apiConfig_ = value; } @@ -892,11 +1010,15 @@ public Builder mergeApiConfig(com.google.cloud.apigateway.v1.ApiConfig value) { return this; } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearApiConfig() { if (apiConfigBuilder_ == null) { @@ -910,55 +1032,71 @@ public Builder clearApiConfig() { return this; } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.apigateway.v1.ApiConfig.Builder getApiConfigBuilder() { - + onChanged(); return getApiConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigOrBuilder() { if (apiConfigBuilder_ != null) { return apiConfigBuilder_.getMessageOrBuilder(); } else { - return apiConfig_ == null ? - com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() : apiConfig_; + return apiConfig_ == null + ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() + : apiConfig_; } } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig, + com.google.cloud.apigateway.v1.ApiConfig.Builder, + com.google.cloud.apigateway.v1.ApiConfigOrBuilder> getApiConfigFieldBuilder() { if (apiConfigBuilder_ == null) { - apiConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder>( - getApiConfig(), - getParentForChildren(), - isClean()); + apiConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig, + com.google.cloud.apigateway.v1.ApiConfig.Builder, + com.google.cloud.apigateway.v1.ApiConfigOrBuilder>( + getApiConfig(), getParentForChildren(), isClean()); apiConfig_ = null; } return apiConfigBuilder_; } + @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); } @@ -968,12 +1106,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.CreateApiConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.CreateApiConfigRequest) private static final com.google.cloud.apigateway.v1.CreateApiConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.CreateApiConfigRequest(); } @@ -982,16 +1120,16 @@ public static com.google.cloud.apigateway.v1.CreateApiConfigRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateApiConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateApiConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateApiConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateApiConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1144,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.CreateApiConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequestOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequestOrBuilder.java index af2e519..0fde76a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequestOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiConfigRequestOrBuilder.java @@ -1,80 +1,124 @@ +/* + * 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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface CreateApiConfigRequestOrBuilder extends +public interface CreateApiConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.CreateApiConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource of the API Config, of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * 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 resource of the API Config, of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Identifier to assign to the API Config. Must be unique within scope of
    * the parent resource.
    * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The apiConfigId. */ java.lang.String getApiConfigId(); /** + * + * *
    * Required. Identifier to assign to the API Config. Must be unique within scope of
    * the parent resource.
    * 
* * string api_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for apiConfigId. */ - com.google.protobuf.ByteString - getApiConfigIdBytes(); + com.google.protobuf.ByteString getApiConfigIdBytes(); /** + * + * *
    * Required. API resource.
    * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the apiConfig field is set. */ boolean hasApiConfig(); /** + * + * *
    * Required. API resource.
    * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The apiConfig. */ com.google.cloud.apigateway.v1.ApiConfig getApiConfig(); /** + * + * *
    * Required. API resource.
    * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequest.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequest.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequest.java index 79eafbd..f3b3e2b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequest.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Request message for ApiGatewayService.CreateApi
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.CreateApiRequest} */ -public final class CreateApiRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateApiRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.CreateApiRequest) CreateApiRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateApiRequest.newBuilder() to construct. private CreateApiRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateApiRequest() { parent_ = ""; apiId_ = ""; @@ -26,16 +44,15 @@ private CreateApiRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateApiRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateApiRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,42 @@ private CreateApiRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - apiId_ = s; - break; - } - case 26: { - com.google.cloud.apigateway.v1.Api.Builder subBuilder = null; - if (api_ != null) { - subBuilder = api_.toBuilder(); + parent_ = s; + break; } - api_ = input.readMessage(com.google.cloud.apigateway.v1.Api.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(api_); - api_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + apiId_ = s; + break; } + case 26: + { + com.google.cloud.apigateway.v1.Api.Builder subBuilder = null; + if (api_ != null) { + subBuilder = api_.toBuilder(); + } + api_ = + input.readMessage(com.google.cloud.apigateway.v1.Api.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(api_); + api_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +114,42 @@ private CreateApiRequest( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_CreateApiRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.CreateApiRequest.class, com.google.cloud.apigateway.v1.CreateApiRequest.Builder.class); + com.google.cloud.apigateway.v1.CreateApiRequest.class, + com.google.cloud.apigateway.v1.CreateApiRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent resource of the API, of the form:
    * `projects/*/locations/global`
    * 
* - * 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 @@ -130,30 +158,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 resource of the API, of the form:
    * `projects/*/locations/global`
    * 
* - * 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 { @@ -164,12 +194,15 @@ public java.lang.String getParent() { public static final int API_ID_FIELD_NUMBER = 2; private volatile java.lang.Object apiId_; /** + * + * *
    * Required. Identifier to assign to the API. Must be unique within scope of
    * the parent resource.
    * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The apiId. */ @java.lang.Override @@ -178,30 +211,30 @@ public java.lang.String getApiId() { 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(); apiId_ = s; return s; } } /** + * + * *
    * Required. Identifier to assign to the API. Must be unique within scope of
    * the parent resource.
    * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for apiId. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiIdBytes() { + public com.google.protobuf.ByteString getApiIdBytes() { java.lang.Object ref = apiId_; 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); apiId_ = b; return b; } else { @@ -212,11 +245,14 @@ public java.lang.String getApiId() { public static final int API_FIELD_NUMBER = 3; private com.google.cloud.apigateway.v1.Api api_; /** + * + * *
    * Required. API resource.
    * 
* * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the api field is set. */ @java.lang.Override @@ -224,11 +260,14 @@ public boolean hasApi() { return api_ != null; } /** + * + * *
    * Required. API resource.
    * 
* * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The api. */ @java.lang.Override @@ -236,6 +275,8 @@ public com.google.cloud.apigateway.v1.Api getApi() { return api_ == null ? com.google.cloud.apigateway.v1.Api.getDefaultInstance() : api_; } /** + * + * *
    * Required. API resource.
    * 
@@ -248,6 +289,7 @@ public com.google.cloud.apigateway.v1.ApiOrBuilder getApiOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,8 +301,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_); } @@ -286,8 +327,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, apiId_); } if (api_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getApi()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getApi()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -297,21 +337,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.apigateway.v1.CreateApiRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.CreateApiRequest other = (com.google.cloud.apigateway.v1.CreateApiRequest) obj; + com.google.cloud.apigateway.v1.CreateApiRequest other = + (com.google.cloud.apigateway.v1.CreateApiRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getApiId() - .equals(other.getApiId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getApiId().equals(other.getApiId())) return false; if (hasApi() != other.hasApi()) return false; if (hasApi()) { - if (!getApi() - .equals(other.getApi())) return false; + if (!getApi().equals(other.getApi())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -337,118 +375,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.CreateApiRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.CreateApiRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.CreateApiRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ApiGatewayService.CreateApi
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.CreateApiRequest} */ - 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.apigateway.v1.CreateApiRequest) com.google.cloud.apigateway.v1.CreateApiRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_CreateApiRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.CreateApiRequest.class, com.google.cloud.apigateway.v1.CreateApiRequest.Builder.class); + com.google.cloud.apigateway.v1.CreateApiRequest.class, + com.google.cloud.apigateway.v1.CreateApiRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.CreateApiRequest.newBuilder() @@ -456,16 +503,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(); @@ -483,9 +529,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_CreateApiRequest_descriptor; } @java.lang.Override @@ -504,7 +550,8 @@ public com.google.cloud.apigateway.v1.CreateApiRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.CreateApiRequest buildPartial() { - com.google.cloud.apigateway.v1.CreateApiRequest result = new com.google.cloud.apigateway.v1.CreateApiRequest(this); + com.google.cloud.apigateway.v1.CreateApiRequest result = + new com.google.cloud.apigateway.v1.CreateApiRequest(this); result.parent_ = parent_; result.apiId_ = apiId_; if (apiBuilder_ == null) { @@ -520,38 +567,39 @@ public com.google.cloud.apigateway.v1.CreateApiRequest 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.apigateway.v1.CreateApiRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.CreateApiRequest)other); + return mergeFrom((com.google.cloud.apigateway.v1.CreateApiRequest) other); } else { super.mergeFrom(other); return this; @@ -559,7 +607,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.CreateApiRequest other) { - if (other == com.google.cloud.apigateway.v1.CreateApiRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.CreateApiRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -602,19 +651,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * 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; @@ -623,21 +676,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * 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 { @@ -645,57 +701,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * 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 resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * 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 resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * 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; @@ -703,19 +772,21 @@ public Builder setParentBytes( private java.lang.Object apiId_ = ""; /** + * + * *
      * Required. Identifier to assign to the API. Must be unique within scope of
      * the parent resource.
      * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The apiId. */ public java.lang.String getApiId() { java.lang.Object ref = apiId_; 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(); apiId_ = s; return s; @@ -724,21 +795,22 @@ public java.lang.String getApiId() { } } /** + * + * *
      * Required. Identifier to assign to the API. Must be unique within scope of
      * the parent resource.
      * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for apiId. */ - public com.google.protobuf.ByteString - getApiIdBytes() { + public com.google.protobuf.ByteString getApiIdBytes() { java.lang.Object ref = apiId_; 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); apiId_ = b; return b; } else { @@ -746,57 +818,64 @@ public java.lang.String getApiId() { } } /** + * + * *
      * Required. Identifier to assign to the API. Must be unique within scope of
      * the parent resource.
      * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The apiId to set. * @return This builder for chaining. */ - public Builder setApiId( - java.lang.String value) { + public Builder setApiId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiId_ = value; onChanged(); return this; } /** + * + * *
      * Required. Identifier to assign to the API. Must be unique within scope of
      * the parent resource.
      * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearApiId() { - + apiId_ = getDefaultInstance().getApiId(); onChanged(); return this; } /** + * + * *
      * Required. Identifier to assign to the API. Must be unique within scope of
      * the parent resource.
      * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for apiId to set. * @return This builder for chaining. */ - public Builder setApiIdBytes( - com.google.protobuf.ByteString value) { + public Builder setApiIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiId_ = value; onChanged(); return this; @@ -804,24 +883,35 @@ public Builder setApiIdBytes( private com.google.cloud.apigateway.v1.Api api_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder> apiBuilder_; + com.google.cloud.apigateway.v1.Api, + com.google.cloud.apigateway.v1.Api.Builder, + com.google.cloud.apigateway.v1.ApiOrBuilder> + apiBuilder_; /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the api field is set. */ public boolean hasApi() { return apiBuilder_ != null || api_ != null; } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The api. */ public com.google.cloud.apigateway.v1.Api getApi() { @@ -832,11 +922,14 @@ public com.google.cloud.apigateway.v1.Api getApi() { } } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setApi(com.google.cloud.apigateway.v1.Api value) { if (apiBuilder_ == null) { @@ -852,14 +945,16 @@ public Builder setApi(com.google.cloud.apigateway.v1.Api value) { return this; } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setApi( - com.google.cloud.apigateway.v1.Api.Builder builderForValue) { + public Builder setApi(com.google.cloud.apigateway.v1.Api.Builder builderForValue) { if (apiBuilder_ == null) { api_ = builderForValue.build(); onChanged(); @@ -870,17 +965,20 @@ public Builder setApi( return this; } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeApi(com.google.cloud.apigateway.v1.Api value) { if (apiBuilder_ == null) { if (api_ != null) { api_ = - com.google.cloud.apigateway.v1.Api.newBuilder(api_).mergeFrom(value).buildPartial(); + com.google.cloud.apigateway.v1.Api.newBuilder(api_).mergeFrom(value).buildPartial(); } else { api_ = value; } @@ -892,11 +990,14 @@ public Builder mergeApi(com.google.cloud.apigateway.v1.Api value) { return this; } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearApi() { if (apiBuilder_ == null) { @@ -910,55 +1011,66 @@ public Builder clearApi() { return this; } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.apigateway.v1.Api.Builder getApiBuilder() { - + onChanged(); return getApiFieldBuilder().getBuilder(); } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.apigateway.v1.ApiOrBuilder getApiOrBuilder() { if (apiBuilder_ != null) { return apiBuilder_.getMessageOrBuilder(); } else { - return api_ == null ? - com.google.cloud.apigateway.v1.Api.getDefaultInstance() : api_; + return api_ == null ? com.google.cloud.apigateway.v1.Api.getDefaultInstance() : api_; } } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder> + com.google.cloud.apigateway.v1.Api, + com.google.cloud.apigateway.v1.Api.Builder, + com.google.cloud.apigateway.v1.ApiOrBuilder> getApiFieldBuilder() { if (apiBuilder_ == null) { - apiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder>( - getApi(), - getParentForChildren(), - isClean()); + apiBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigateway.v1.Api, + com.google.cloud.apigateway.v1.Api.Builder, + com.google.cloud.apigateway.v1.ApiOrBuilder>( + getApi(), getParentForChildren(), isClean()); api_ = null; } return apiBuilder_; } + @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); } @@ -968,12 +1080,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.CreateApiRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.CreateApiRequest) private static final com.google.cloud.apigateway.v1.CreateApiRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.CreateApiRequest(); } @@ -982,16 +1094,16 @@ public static com.google.cloud.apigateway.v1.CreateApiRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateApiRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateApiRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateApiRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateApiRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1118,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.CreateApiRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequestOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequestOrBuilder.java index 60c511d..0176ef5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequestOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateApiRequestOrBuilder.java @@ -1,75 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface CreateApiRequestOrBuilder extends +public interface CreateApiRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.CreateApiRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource of the API, of the form:
    * `projects/*/locations/global`
    * 
* - * 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 resource of the API, of the form:
    * `projects/*/locations/global`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Identifier to assign to the API. Must be unique within scope of
    * the parent resource.
    * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The apiId. */ java.lang.String getApiId(); /** + * + * *
    * Required. Identifier to assign to the API. Must be unique within scope of
    * the parent resource.
    * 
* * string api_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for apiId. */ - com.google.protobuf.ByteString - getApiIdBytes(); + com.google.protobuf.ByteString getApiIdBytes(); /** + * + * *
    * Required. API resource.
    * 
* * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the api field is set. */ boolean hasApi(); /** + * + * *
    * Required. API resource.
    * 
* * .google.cloud.apigateway.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The api. */ com.google.cloud.apigateway.v1.Api getApi(); /** + * + * *
    * Required. API resource.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequest.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequest.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequest.java index 25261c9..c33e6d4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequest.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Request message for ApiGatewayService.CreateGateway
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.CreateGatewayRequest} */ -public final class CreateGatewayRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateGatewayRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.CreateGatewayRequest) CreateGatewayRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateGatewayRequest.newBuilder() to construct. private CreateGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateGatewayRequest() { parent_ = ""; gatewayId_ = ""; @@ -26,16 +44,15 @@ private CreateGatewayRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateGatewayRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateGatewayRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateGatewayRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - gatewayId_ = s; - break; - } - case 26: { - com.google.cloud.apigateway.v1.Gateway.Builder subBuilder = null; - if (gateway_ != null) { - subBuilder = gateway_.toBuilder(); + parent_ = s; + break; } - gateway_ = input.readMessage(com.google.cloud.apigateway.v1.Gateway.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gateway_); - gateway_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + gatewayId_ = s; + break; } + case 26: + { + com.google.cloud.apigateway.v1.Gateway.Builder subBuilder = null; + if (gateway_ != null) { + subBuilder = gateway_.toBuilder(); + } + gateway_ = + input.readMessage( + com.google.cloud.apigateway.v1.Gateway.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gateway_); + gateway_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +115,42 @@ private CreateGatewayRequest( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.CreateGatewayRequest.class, com.google.cloud.apigateway.v1.CreateGatewayRequest.Builder.class); + com.google.cloud.apigateway.v1.CreateGatewayRequest.class, + com.google.cloud.apigateway.v1.CreateGatewayRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent resource of the Gateway, of the form:
    * `projects/*/locations/*`
    * 
* - * 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 @@ -130,30 +159,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 resource of the Gateway, of the form:
    * `projects/*/locations/*`
    * 
* - * 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 { @@ -164,12 +195,15 @@ public java.lang.String getParent() { public static final int GATEWAY_ID_FIELD_NUMBER = 2; private volatile java.lang.Object gatewayId_; /** + * + * *
    * Required. Identifier to assign to the Gateway. Must be unique within scope of
    * the parent resource.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gatewayId. */ @java.lang.Override @@ -178,30 +212,30 @@ public java.lang.String getGatewayId() { 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(); gatewayId_ = s; return s; } } /** + * + * *
    * Required. Identifier to assign to the Gateway. Must be unique within scope of
    * the parent resource.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gatewayId. */ @java.lang.Override - public com.google.protobuf.ByteString - getGatewayIdBytes() { + public com.google.protobuf.ByteString getGatewayIdBytes() { java.lang.Object ref = gatewayId_; 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); gatewayId_ = b; return b; } else { @@ -212,11 +246,16 @@ public java.lang.String getGatewayId() { public static final int GATEWAY_FIELD_NUMBER = 3; private com.google.cloud.apigateway.v1.Gateway gateway_; /** + * + * *
    * Required. Gateway resource.
    * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gateway field is set. */ @java.lang.Override @@ -224,23 +263,34 @@ public boolean hasGateway() { return gateway_ != null; } /** + * + * *
    * Required. Gateway resource.
    * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gateway. */ @java.lang.Override public com.google.cloud.apigateway.v1.Gateway getGateway() { - return gateway_ == null ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() : gateway_; + return gateway_ == null + ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() + : gateway_; } /** + * + * *
    * Required. Gateway resource.
    * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewayOrBuilder() { @@ -248,6 +298,7 @@ public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewayOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,8 +310,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_); } @@ -286,8 +336,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gatewayId_); } if (gateway_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getGateway()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGateway()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -297,21 +346,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.apigateway.v1.CreateGatewayRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.CreateGatewayRequest other = (com.google.cloud.apigateway.v1.CreateGatewayRequest) obj; + com.google.cloud.apigateway.v1.CreateGatewayRequest other = + (com.google.cloud.apigateway.v1.CreateGatewayRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getGatewayId() - .equals(other.getGatewayId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getGatewayId().equals(other.getGatewayId())) return false; if (hasGateway() != other.hasGateway()) return false; if (hasGateway()) { - if (!getGateway() - .equals(other.getGateway())) return false; + if (!getGateway().equals(other.getGateway())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -338,117 +385,126 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.CreateGatewayRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.CreateGatewayRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ApiGatewayService.CreateGateway
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.CreateGatewayRequest} */ - 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.apigateway.v1.CreateGatewayRequest) com.google.cloud.apigateway.v1.CreateGatewayRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.CreateGatewayRequest.class, com.google.cloud.apigateway.v1.CreateGatewayRequest.Builder.class); + com.google.cloud.apigateway.v1.CreateGatewayRequest.class, + com.google.cloud.apigateway.v1.CreateGatewayRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.CreateGatewayRequest.newBuilder() @@ -456,16 +512,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(); @@ -483,9 +538,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_CreateGatewayRequest_descriptor; } @java.lang.Override @@ -504,7 +559,8 @@ public com.google.cloud.apigateway.v1.CreateGatewayRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.CreateGatewayRequest buildPartial() { - com.google.cloud.apigateway.v1.CreateGatewayRequest result = new com.google.cloud.apigateway.v1.CreateGatewayRequest(this); + com.google.cloud.apigateway.v1.CreateGatewayRequest result = + new com.google.cloud.apigateway.v1.CreateGatewayRequest(this); result.parent_ = parent_; result.gatewayId_ = gatewayId_; if (gatewayBuilder_ == null) { @@ -520,38 +576,39 @@ public com.google.cloud.apigateway.v1.CreateGatewayRequest 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.apigateway.v1.CreateGatewayRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.CreateGatewayRequest)other); + return mergeFrom((com.google.cloud.apigateway.v1.CreateGatewayRequest) other); } else { super.mergeFrom(other); return this; @@ -559,7 +616,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.CreateGatewayRequest other) { - if (other == com.google.cloud.apigateway.v1.CreateGatewayRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.CreateGatewayRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -590,7 +648,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.apigateway.v1.CreateGatewayRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.apigateway.v1.CreateGatewayRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -602,19 +661,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * 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; @@ -623,21 +686,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * 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 { @@ -645,57 +711,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * 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 resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * 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 resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * 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; @@ -703,19 +782,21 @@ public Builder setParentBytes( private java.lang.Object gatewayId_ = ""; /** + * + * *
      * Required. Identifier to assign to the Gateway. Must be unique within scope of
      * the parent resource.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gatewayId. */ public java.lang.String getGatewayId() { java.lang.Object ref = gatewayId_; 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(); gatewayId_ = s; return s; @@ -724,21 +805,22 @@ public java.lang.String getGatewayId() { } } /** + * + * *
      * Required. Identifier to assign to the Gateway. Must be unique within scope of
      * the parent resource.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gatewayId. */ - public com.google.protobuf.ByteString - getGatewayIdBytes() { + public com.google.protobuf.ByteString getGatewayIdBytes() { java.lang.Object ref = gatewayId_; 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); gatewayId_ = b; return b; } else { @@ -746,57 +828,64 @@ public java.lang.String getGatewayId() { } } /** + * + * *
      * Required. Identifier to assign to the Gateway. Must be unique within scope of
      * the parent resource.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The gatewayId to set. * @return This builder for chaining. */ - public Builder setGatewayId( - java.lang.String value) { + public Builder setGatewayId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gatewayId_ = value; onChanged(); return this; } /** + * + * *
      * Required. Identifier to assign to the Gateway. Must be unique within scope of
      * the parent resource.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGatewayId() { - + gatewayId_ = getDefaultInstance().getGatewayId(); onChanged(); return this; } /** + * + * *
      * Required. Identifier to assign to the Gateway. Must be unique within scope of
      * the parent resource.
      * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for gatewayId to set. * @return This builder for chaining. */ - public Builder setGatewayIdBytes( - com.google.protobuf.ByteString value) { + public Builder setGatewayIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gatewayId_ = value; onChanged(); return this; @@ -804,39 +893,58 @@ public Builder setGatewayIdBytes( private com.google.cloud.apigateway.v1.Gateway gateway_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder> gatewayBuilder_; + com.google.cloud.apigateway.v1.Gateway, + com.google.cloud.apigateway.v1.Gateway.Builder, + com.google.cloud.apigateway.v1.GatewayOrBuilder> + gatewayBuilder_; /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gateway field is set. */ public boolean hasGateway() { return gatewayBuilder_ != null || gateway_ != null; } /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gateway. */ public com.google.cloud.apigateway.v1.Gateway getGateway() { if (gatewayBuilder_ == null) { - return gateway_ == null ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() : gateway_; + return gateway_ == null + ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() + : gateway_; } else { return gatewayBuilder_.getMessage(); } } /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGateway(com.google.cloud.apigateway.v1.Gateway value) { if (gatewayBuilder_ == null) { @@ -852,14 +960,17 @@ public Builder setGateway(com.google.cloud.apigateway.v1.Gateway value) { return this; } /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setGateway( - com.google.cloud.apigateway.v1.Gateway.Builder builderForValue) { + public Builder setGateway(com.google.cloud.apigateway.v1.Gateway.Builder builderForValue) { if (gatewayBuilder_ == null) { gateway_ = builderForValue.build(); onChanged(); @@ -870,17 +981,23 @@ public Builder setGateway( return this; } /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeGateway(com.google.cloud.apigateway.v1.Gateway value) { if (gatewayBuilder_ == null) { if (gateway_ != null) { gateway_ = - com.google.cloud.apigateway.v1.Gateway.newBuilder(gateway_).mergeFrom(value).buildPartial(); + com.google.cloud.apigateway.v1.Gateway.newBuilder(gateway_) + .mergeFrom(value) + .buildPartial(); } else { gateway_ = value; } @@ -892,11 +1009,15 @@ public Builder mergeGateway(com.google.cloud.apigateway.v1.Gateway value) { return this; } /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearGateway() { if (gatewayBuilder_ == null) { @@ -910,55 +1031,71 @@ public Builder clearGateway() { return this; } /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.apigateway.v1.Gateway.Builder getGatewayBuilder() { - + onChanged(); return getGatewayFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewayOrBuilder() { if (gatewayBuilder_ != null) { return gatewayBuilder_.getMessageOrBuilder(); } else { - return gateway_ == null ? - com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() : gateway_; + return gateway_ == null + ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() + : gateway_; } } /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder> + com.google.cloud.apigateway.v1.Gateway, + com.google.cloud.apigateway.v1.Gateway.Builder, + com.google.cloud.apigateway.v1.GatewayOrBuilder> getGatewayFieldBuilder() { if (gatewayBuilder_ == null) { - gatewayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder>( - getGateway(), - getParentForChildren(), - isClean()); + gatewayBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigateway.v1.Gateway, + com.google.cloud.apigateway.v1.Gateway.Builder, + com.google.cloud.apigateway.v1.GatewayOrBuilder>( + getGateway(), getParentForChildren(), isClean()); gateway_ = null; } return gatewayBuilder_; } + @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); } @@ -968,12 +1105,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.CreateGatewayRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.CreateGatewayRequest) private static final com.google.cloud.apigateway.v1.CreateGatewayRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.CreateGatewayRequest(); } @@ -982,16 +1119,16 @@ public static com.google.cloud.apigateway.v1.CreateGatewayRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGatewayRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateGatewayRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateGatewayRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1143,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.CreateGatewayRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequestOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequestOrBuilder.java index c9f26dc..66a8c04 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequestOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/CreateGatewayRequestOrBuilder.java @@ -1,80 +1,124 @@ +/* + * 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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface CreateGatewayRequestOrBuilder extends +public interface CreateGatewayRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.CreateGatewayRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource of the Gateway, of the form:
    * `projects/*/locations/*`
    * 
* - * 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 resource of the Gateway, of the form:
    * `projects/*/locations/*`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Identifier to assign to the Gateway. Must be unique within scope of
    * the parent resource.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gatewayId. */ java.lang.String getGatewayId(); /** + * + * *
    * Required. Identifier to assign to the Gateway. Must be unique within scope of
    * the parent resource.
    * 
* * string gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gatewayId. */ - com.google.protobuf.ByteString - getGatewayIdBytes(); + com.google.protobuf.ByteString getGatewayIdBytes(); /** + * + * *
    * Required. Gateway resource.
    * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gateway field is set. */ boolean hasGateway(); /** + * + * *
    * Required. Gateway resource.
    * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gateway. */ com.google.cloud.apigateway.v1.Gateway getGateway(); /** + * + * *
    * Required. Gateway resource.
    * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewayOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequest.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequest.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequest.java index b6620b9..5a5b29c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequest.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Request message for ApiGatewayService.DeleteApiConfig
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.DeleteApiConfigRequest} */ -public final class DeleteApiConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteApiConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.DeleteApiConfigRequest) DeleteApiConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteApiConfigRequest.newBuilder() to construct. private DeleteApiConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteApiConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteApiConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteApiConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteApiConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private DeleteApiConfigRequest( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.DeleteApiConfigRequest.class, com.google.cloud.apigateway.v1.DeleteApiConfigRequest.Builder.class); + com.google.cloud.apigateway.v1.DeleteApiConfigRequest.class, + com.google.cloud.apigateway.v1.DeleteApiConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*/configs/*`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*/configs/*`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.apigateway.v1.DeleteApiConfigRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.DeleteApiConfigRequest other = (com.google.cloud.apigateway.v1.DeleteApiConfigRequest) obj; + com.google.cloud.apigateway.v1.DeleteApiConfigRequest other = + (com.google.cloud.apigateway.v1.DeleteApiConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.DeleteApiConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.DeleteApiConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.apigateway.v1.DeleteApiConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ApiGatewayService.DeleteApiConfig
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.DeleteApiConfigRequest} */ - 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.apigateway.v1.DeleteApiConfigRequest) com.google.cloud.apigateway.v1.DeleteApiConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.DeleteApiConfigRequest.class, com.google.cloud.apigateway.v1.DeleteApiConfigRequest.Builder.class); + com.google.cloud.apigateway.v1.DeleteApiConfigRequest.class, + com.google.cloud.apigateway.v1.DeleteApiConfigRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.DeleteApiConfigRequest.newBuilder() @@ -324,16 +361,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(); @@ -343,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_DeleteApiConfigRequest_descriptor; } @java.lang.Override @@ -364,7 +400,8 @@ public com.google.cloud.apigateway.v1.DeleteApiConfigRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.DeleteApiConfigRequest buildPartial() { - com.google.cloud.apigateway.v1.DeleteApiConfigRequest result = new com.google.cloud.apigateway.v1.DeleteApiConfigRequest(this); + com.google.cloud.apigateway.v1.DeleteApiConfigRequest result = + new com.google.cloud.apigateway.v1.DeleteApiConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.apigateway.v1.DeleteApiConfigRequest 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.apigateway.v1.DeleteApiConfigRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.DeleteApiConfigRequest)other); + return mergeFrom((com.google.cloud.apigateway.v1.DeleteApiConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.DeleteApiConfigRequest other) { - if (other == com.google.cloud.apigateway.v1.DeleteApiConfigRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.DeleteApiConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.apigateway.v1.DeleteApiConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.apigateway.v1.DeleteApiConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +514,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +539,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.DeleteApiConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.DeleteApiConfigRequest) private static final com.google.cloud.apigateway.v1.DeleteApiConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.DeleteApiConfigRequest(); } @@ -573,16 +633,16 @@ public static com.google.cloud.apigateway.v1.DeleteApiConfigRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteApiConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteApiConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteApiConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteApiConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.DeleteApiConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequestOrBuilder.java new file mode 100644 index 0000000..ba8ac94 --- /dev/null +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiConfigRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/apigateway/v1/apigateway.proto + +package com.google.cloud.apigateway.v1; + +public interface DeleteApiConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.DeleteApiConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/global/apis/*/configs/*`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/global/apis/*/configs/*`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequest.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequest.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequest.java index 7112baf..6f29232 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequest.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Request message for ApiGatewayService.DeleteApi
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.DeleteApiRequest} */ -public final class DeleteApiRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteApiRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.DeleteApiRequest) DeleteApiRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteApiRequest.newBuilder() to construct. private DeleteApiRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteApiRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteApiRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteApiRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteApiRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private DeleteApiRequest( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_DeleteApiRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.DeleteApiRequest.class, com.google.cloud.apigateway.v1.DeleteApiRequest.Builder.class); + com.google.cloud.apigateway.v1.DeleteApiRequest.class, + com.google.cloud.apigateway.v1.DeleteApiRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.apigateway.v1.DeleteApiRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.DeleteApiRequest other = (com.google.cloud.apigateway.v1.DeleteApiRequest) obj; + com.google.cloud.apigateway.v1.DeleteApiRequest other = + (com.google.cloud.apigateway.v1.DeleteApiRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +232,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.DeleteApiRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.DeleteApiRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.DeleteApiRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ApiGatewayService.DeleteApi
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.DeleteApiRequest} */ - 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.apigateway.v1.DeleteApiRequest) com.google.cloud.apigateway.v1.DeleteApiRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_DeleteApiRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.DeleteApiRequest.class, com.google.cloud.apigateway.v1.DeleteApiRequest.Builder.class); + com.google.cloud.apigateway.v1.DeleteApiRequest.class, + com.google.cloud.apigateway.v1.DeleteApiRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.DeleteApiRequest.newBuilder() @@ -324,16 +360,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(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_DeleteApiRequest_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.apigateway.v1.DeleteApiRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.DeleteApiRequest buildPartial() { - com.google.cloud.apigateway.v1.DeleteApiRequest result = new com.google.cloud.apigateway.v1.DeleteApiRequest(this); + com.google.cloud.apigateway.v1.DeleteApiRequest result = + new com.google.cloud.apigateway.v1.DeleteApiRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.apigateway.v1.DeleteApiRequest 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.apigateway.v1.DeleteApiRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.DeleteApiRequest)other); + return mergeFrom((com.google.cloud.apigateway.v1.DeleteApiRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.DeleteApiRequest other) { - if (other == com.google.cloud.apigateway.v1.DeleteApiRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.DeleteApiRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -449,19 +487,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +512,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +537,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +617,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.DeleteApiRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.DeleteApiRequest) private static final com.google.cloud.apigateway.v1.DeleteApiRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.DeleteApiRequest(); } @@ -573,16 +631,16 @@ public static com.google.cloud.apigateway.v1.DeleteApiRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteApiRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteApiRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteApiRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteApiRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.DeleteApiRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequestOrBuilder.java new file mode 100644 index 0000000..37906d9 --- /dev/null +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteApiRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/apigateway/v1/apigateway.proto + +package com.google.cloud.apigateway.v1; + +public interface DeleteApiRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.DeleteApiRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/global/apis/*`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/global/apis/*`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequest.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequest.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequest.java index 3a10c10..78c451e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequest.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Request message for ApiGatewayService.DeleteGateway
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.DeleteGatewayRequest} */ -public final class DeleteGatewayRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteGatewayRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.DeleteGatewayRequest) DeleteGatewayRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteGatewayRequest.newBuilder() to construct. private DeleteGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteGatewayRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteGatewayRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteGatewayRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteGatewayRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private DeleteGatewayRequest( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.DeleteGatewayRequest.class, com.google.cloud.apigateway.v1.DeleteGatewayRequest.Builder.class); + com.google.cloud.apigateway.v1.DeleteGatewayRequest.class, + com.google.cloud.apigateway.v1.DeleteGatewayRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the form:
    * `projects/*/locations/*/gateways/*`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the form:
    * `projects/*/locations/*/gateways/*`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.apigateway.v1.DeleteGatewayRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.DeleteGatewayRequest other = (com.google.cloud.apigateway.v1.DeleteGatewayRequest) obj; + com.google.cloud.apigateway.v1.DeleteGatewayRequest other = + (com.google.cloud.apigateway.v1.DeleteGatewayRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,126 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.DeleteGatewayRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.DeleteGatewayRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ApiGatewayService.DeleteGateway
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.DeleteGatewayRequest} */ - 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.apigateway.v1.DeleteGatewayRequest) com.google.cloud.apigateway.v1.DeleteGatewayRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.DeleteGatewayRequest.class, com.google.cloud.apigateway.v1.DeleteGatewayRequest.Builder.class); + com.google.cloud.apigateway.v1.DeleteGatewayRequest.class, + com.google.cloud.apigateway.v1.DeleteGatewayRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.DeleteGatewayRequest.newBuilder() @@ -324,16 +360,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(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_DeleteGatewayRequest_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.apigateway.v1.DeleteGatewayRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.DeleteGatewayRequest buildPartial() { - com.google.cloud.apigateway.v1.DeleteGatewayRequest result = new com.google.cloud.apigateway.v1.DeleteGatewayRequest(this); + com.google.cloud.apigateway.v1.DeleteGatewayRequest result = + new com.google.cloud.apigateway.v1.DeleteGatewayRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.apigateway.v1.DeleteGatewayRequest 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.apigateway.v1.DeleteGatewayRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.DeleteGatewayRequest)other); + return mergeFrom((com.google.cloud.apigateway.v1.DeleteGatewayRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.DeleteGatewayRequest other) { - if (other == com.google.cloud.apigateway.v1.DeleteGatewayRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.DeleteGatewayRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +475,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.apigateway.v1.DeleteGatewayRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.apigateway.v1.DeleteGatewayRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +488,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +513,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +538,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +618,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.DeleteGatewayRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.DeleteGatewayRequest) private static final com.google.cloud.apigateway.v1.DeleteGatewayRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.DeleteGatewayRequest(); } @@ -573,16 +632,16 @@ public static com.google.cloud.apigateway.v1.DeleteGatewayRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGatewayRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteGatewayRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteGatewayRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +656,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.DeleteGatewayRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequestOrBuilder.java new file mode 100644 index 0000000..4948afe --- /dev/null +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/DeleteGatewayRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/apigateway/v1/apigateway.proto + +package com.google.cloud.apigateway.v1; + +public interface DeleteGatewayRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.DeleteGatewayRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/*/gateways/*`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/*/gateways/*`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Gateway.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Gateway.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Gateway.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Gateway.java index fe62e1b..849befa 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Gateway.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/Gateway.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * A Gateway is an API-aware HTTP proxy. It performs API-Method and/or
  * API-Consumer specific actions based on an API Config such as authentication,
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.apigateway.v1.Gateway}
  */
-public final class Gateway extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Gateway extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.Gateway)
     GatewayOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Gateway.newBuilder() to construct.
   private Gateway(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Gateway() {
     name_ = "";
     displayName_ = "";
@@ -31,16 +49,15 @@ private Gateway() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Gateway();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Gateway(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,82 +77,91 @@ private Gateway(
           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: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              name_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              displayName_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            displayName_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            apiConfig_ = s;
-            break;
-          }
-          case 56: {
-            int rawValue = input.readEnum();
+              apiConfig_ = s;
+              break;
+            }
+          case 56:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          case 74: {
-            java.lang.String s = input.readStringRequireUtf8();
+              state_ = rawValue;
+              break;
+            }
+          case 74:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            defaultHostname_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              defaultHostname_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -143,48 +169,52 @@ private Gateway(
     } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Gateway_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.apigateway.v1.Apigateway
+        .internal_static_google_cloud_apigateway_v1_Gateway_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Gateway_fieldAccessorTable
+    return com.google.cloud.apigateway.v1.Apigateway
+        .internal_static_google_cloud_apigateway_v1_Gateway_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.apigateway.v1.Gateway.class, com.google.cloud.apigateway.v1.Gateway.Builder.class);
+            com.google.cloud.apigateway.v1.Gateway.class,
+            com.google.cloud.apigateway.v1.Gateway.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * All the possible Gateway states.
    * 
* * Protobuf enum {@code google.cloud.apigateway.v1.Gateway.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Gateway does not have a state yet.
      * 
@@ -193,6 +223,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Gateway is being created.
      * 
@@ -201,6 +233,8 @@ public enum State */ CREATING(1), /** + * + * *
      * Gateway is running and ready for requests.
      * 
@@ -209,6 +243,8 @@ public enum State */ ACTIVE(2), /** + * + * *
      * Gateway creation failed.
      * 
@@ -217,6 +253,8 @@ public enum State */ FAILED(3), /** + * + * *
      * Gateway is being deleted.
      * 
@@ -225,6 +263,8 @@ public enum State */ DELETING(4), /** + * + * *
      * Gateway is being updated.
      * 
@@ -236,6 +276,8 @@ public enum State ; /** + * + * *
      * Gateway does not have a state yet.
      * 
@@ -244,6 +286,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Gateway is being created.
      * 
@@ -252,6 +296,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * Gateway is running and ready for requests.
      * 
@@ -260,6 +306,8 @@ public enum State */ public static final int ACTIVE_VALUE = 2; /** + * + * *
      * Gateway creation failed.
      * 
@@ -268,6 +316,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * Gateway is being deleted.
      * 
@@ -276,6 +326,8 @@ public enum State */ public static final int DELETING_VALUE = 4; /** + * + * *
      * Gateway is being updated.
      * 
@@ -284,7 +336,6 @@ public enum State */ public static final int UPDATING_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -309,52 +360,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return ACTIVE; - case 3: return FAILED; - case 4: return DELETING; - case 5: return UPDATING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return FAILED; + case 4: + return DELETING; + case 5: + return UPDATING; + 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< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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 State findValueByNumber(int number) { + return State.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.apigateway.v1.Gateway.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -374,12 +428,15 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Resource name of the Gateway.
    * Format: projects/{project}/locations/{location}/gateways/{gateway}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -388,30 +445,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; } } /** + * + * *
    * Output only. Resource name of the Gateway.
    * Format: projects/{project}/locations/{location}/gateways/{gateway}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -422,11 +479,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -434,11 +495,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -446,11 +511,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -460,11 +528,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -472,11 +544,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -484,11 +560,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -496,24 +575,23 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_Gateway_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -522,6 +600,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -530,22 +610,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -555,11 +635,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -569,16 +650,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -588,12 +669,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -603,11 +683,14 @@ public java.lang.String getLabelsOrThrow(
   public static final int DISPLAY_NAME_FIELD_NUMBER = 5;
   private volatile java.lang.Object displayName_;
   /**
+   *
+   *
    * 
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ @java.lang.Override @@ -616,29 +699,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -649,12 +732,17 @@ public java.lang.String getDisplayName() { public static final int API_CONFIG_FIELD_NUMBER = 6; private volatile java.lang.Object apiConfig_; /** + * + * *
    * Required. Resource name of the API Config for this Gateway.
    * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
    * 
* - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The apiConfig. */ @java.lang.Override @@ -663,30 +751,32 @@ public java.lang.String getApiConfig() { 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(); apiConfig_ = s; return s; } } /** + * + * *
    * Required. Resource name of the API Config for this Gateway.
    * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
    * 
* - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for apiConfig. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiConfigBytes() { + public com.google.protobuf.ByteString getApiConfigBytes() { java.lang.Object ref = apiConfig_; 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); apiConfig_ = b; return b; } else { @@ -697,39 +787,55 @@ public java.lang.String getApiConfig() { public static final int STATE_FIELD_NUMBER = 7; private int state_; /** + * + * *
    * Output only. The current state of the Gateway.
    * 
* - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current state of the Gateway.
    * 
* - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.apigateway.v1.Gateway.State getState() { + @java.lang.Override + public com.google.cloud.apigateway.v1.Gateway.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.apigateway.v1.Gateway.State result = com.google.cloud.apigateway.v1.Gateway.State.valueOf(state_); + com.google.cloud.apigateway.v1.Gateway.State result = + com.google.cloud.apigateway.v1.Gateway.State.valueOf(state_); return result == null ? com.google.cloud.apigateway.v1.Gateway.State.UNRECOGNIZED : result; } public static final int DEFAULT_HOSTNAME_FIELD_NUMBER = 9; private volatile java.lang.Object defaultHostname_; /** + * + * *
    * Output only. The default API Gateway host name of the form
    * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
    * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The defaultHostname. */ @java.lang.Override @@ -738,30 +844,30 @@ public java.lang.String getDefaultHostname() { 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(); defaultHostname_ = s; return s; } } /** + * + * *
    * Output only. The default API Gateway host name of the form
    * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
    * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for defaultHostname. */ @java.lang.Override - public com.google.protobuf.ByteString - getDefaultHostnameBytes() { + public com.google.protobuf.ByteString getDefaultHostnameBytes() { java.lang.Object ref = defaultHostname_; 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); defaultHostname_ = b; return b; } else { @@ -770,6 +876,7 @@ public java.lang.String getDefaultHostname() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -781,8 +888,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_); } @@ -792,12 +898,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -823,22 +925,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); @@ -847,8 +947,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, apiConfig_); } if (state_ != com.google.cloud.apigateway.v1.Gateway.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultHostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, defaultHostname_); @@ -861,34 +960,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.apigateway.v1.Gateway)) { return super.equals(obj); } com.google.cloud.apigateway.v1.Gateway other = (com.google.cloud.apigateway.v1.Gateway) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getApiConfig() - .equals(other.getApiConfig())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getApiConfig().equals(other.getApiConfig())) return false; if (state_ != other.state_) return false; - if (!getDefaultHostname() - .equals(other.getDefaultHostname())) return false; + if (!getDefaultHostname().equals(other.getDefaultHostname())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -927,97 +1019,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.Gateway parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.Gateway parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.Gateway 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.apigateway.v1.Gateway parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.Gateway 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.apigateway.v1.Gateway parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.Gateway 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.apigateway.v1.Gateway 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.apigateway.v1.Gateway 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.apigateway.v1.Gateway 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.apigateway.v1.Gateway 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.apigateway.v1.Gateway 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.apigateway.v1.Gateway 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.apigateway.v1.Gateway prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A Gateway is an API-aware HTTP proxy. It performs API-Method and/or
    * API-Consumer specific actions based on an API Config such as authentication,
@@ -1026,43 +1125,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.apigateway.v1.Gateway}
    */
-  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.apigateway.v1.Gateway)
       com.google.cloud.apigateway.v1.GatewayOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Gateway_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.apigateway.v1.Apigateway
+          .internal_static_google_cloud_apigateway_v1_Gateway_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Gateway_fieldAccessorTable
+      return com.google.cloud.apigateway.v1.Apigateway
+          .internal_static_google_cloud_apigateway_v1_Gateway_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.apigateway.v1.Gateway.class, com.google.cloud.apigateway.v1.Gateway.Builder.class);
+              com.google.cloud.apigateway.v1.Gateway.class,
+              com.google.cloud.apigateway.v1.Gateway.Builder.class);
     }
 
     // Construct using com.google.cloud.apigateway.v1.Gateway.newBuilder()
@@ -1070,16 +1169,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();
@@ -1110,9 +1208,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_Gateway_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.apigateway.v1.Apigateway
+          .internal_static_google_cloud_apigateway_v1_Gateway_descriptor;
     }
 
     @java.lang.Override
@@ -1131,7 +1229,8 @@ public com.google.cloud.apigateway.v1.Gateway build() {
 
     @java.lang.Override
     public com.google.cloud.apigateway.v1.Gateway buildPartial() {
-      com.google.cloud.apigateway.v1.Gateway result = new com.google.cloud.apigateway.v1.Gateway(this);
+      com.google.cloud.apigateway.v1.Gateway result =
+          new com.google.cloud.apigateway.v1.Gateway(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (createTimeBuilder_ == null) {
@@ -1158,38 +1257,39 @@ public com.google.cloud.apigateway.v1.Gateway 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.apigateway.v1.Gateway) {
-        return mergeFrom((com.google.cloud.apigateway.v1.Gateway)other);
+        return mergeFrom((com.google.cloud.apigateway.v1.Gateway) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1208,8 +1308,7 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.Gateway other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
         onChanged();
@@ -1253,23 +1352,26 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Resource name of the Gateway.
      * Format: projects/{project}/locations/{location}/gateways/{gateway}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1278,21 +1380,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the Gateway.
      * Format: projects/{project}/locations/{location}/gateways/{gateway}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1300,57 +1403,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the Gateway.
      * Format: projects/{project}/locations/{location}/gateways/{gateway}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; } /** + * + * *
      * Output only. Resource name of the Gateway.
      * Format: projects/{project}/locations/{location}/gateways/{gateway}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the Gateway.
      * Format: projects/{project}/locations/{location}/gateways/{gateway}
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1358,39 +1468,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1406,14 +1535,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1424,17 +1556,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1446,11 +1582,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1464,48 +1604,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Created time.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1513,39 +1669,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1561,14 +1736,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1579,17 +1757,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1601,11 +1783,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1619,69 +1805,84 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Updated time.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1693,6 +1894,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1701,22 +1904,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1726,11 +1929,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1740,16 +1944,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1759,12 +1964,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1772,11 +1976,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1785,23 +1990,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1810,19 +2013,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Resource labels to represent user-provided metadata.
      * Refer to cloud documentation on labels for more details.
@@ -1831,28 +2035,27 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
 
     private java.lang.Object displayName_ = "";
     /**
+     *
+     *
      * 
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1861,20 +2064,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1882,54 +2086,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Optional. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1937,19 +2148,23 @@ public Builder setDisplayNameBytes( private java.lang.Object apiConfig_ = ""; /** + * + * *
      * Required. Resource name of the API Config for this Gateway.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
      * 
* - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The apiConfig. */ public java.lang.String getApiConfig() { java.lang.Object ref = apiConfig_; 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(); apiConfig_ = s; return s; @@ -1958,21 +2173,24 @@ public java.lang.String getApiConfig() { } } /** + * + * *
      * Required. Resource name of the API Config for this Gateway.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
      * 
* - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for apiConfig. */ - public com.google.protobuf.ByteString - getApiConfigBytes() { + public com.google.protobuf.ByteString getApiConfigBytes() { java.lang.Object ref = apiConfig_; 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); apiConfig_ = b; return b; } else { @@ -1980,57 +2198,70 @@ public java.lang.String getApiConfig() { } } /** + * + * *
      * Required. Resource name of the API Config for this Gateway.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
      * 
* - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The apiConfig to set. * @return This builder for chaining. */ - public Builder setApiConfig( - java.lang.String value) { + public Builder setApiConfig(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiConfig_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the API Config for this Gateway.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
      * 
* - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearApiConfig() { - + apiConfig_ = getDefaultInstance().getApiConfig(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the API Config for this Gateway.
      * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
      * 
* - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for apiConfig to set. * @return This builder for chaining. */ - public Builder setApiConfigBytes( - com.google.protobuf.ByteString value) { + public Builder setApiConfigBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiConfig_ = value; onChanged(); return this; @@ -2038,51 +2269,73 @@ public Builder setApiConfigBytes( private int state_ = 0; /** + * + * *
      * Output only. The current state of the Gateway.
      * 
* - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current state of the Gateway.
      * 
* - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The current state of the Gateway.
      * 
* - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.apigateway.v1.Gateway.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.apigateway.v1.Gateway.State result = com.google.cloud.apigateway.v1.Gateway.State.valueOf(state_); + com.google.cloud.apigateway.v1.Gateway.State result = + com.google.cloud.apigateway.v1.Gateway.State.valueOf(state_); return result == null ? com.google.cloud.apigateway.v1.Gateway.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current state of the Gateway.
      * 
* - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2090,21 +2343,26 @@ public Builder setState(com.google.cloud.apigateway.v1.Gateway.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The current state of the Gateway.
      * 
* - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2112,19 +2370,21 @@ public Builder clearState() { private java.lang.Object defaultHostname_ = ""; /** + * + * *
      * Output only. The default API Gateway host name of the form
      * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
      * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The defaultHostname. */ public java.lang.String getDefaultHostname() { java.lang.Object ref = defaultHostname_; 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(); defaultHostname_ = s; return s; @@ -2133,21 +2393,22 @@ public java.lang.String getDefaultHostname() { } } /** + * + * *
      * Output only. The default API Gateway host name of the form
      * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
      * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for defaultHostname. */ - public com.google.protobuf.ByteString - getDefaultHostnameBytes() { + public com.google.protobuf.ByteString getDefaultHostnameBytes() { java.lang.Object ref = defaultHostname_; 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); defaultHostname_ = b; return b; } else { @@ -2155,64 +2416,71 @@ public java.lang.String getDefaultHostname() { } } /** + * + * *
      * Output only. The default API Gateway host name of the form
      * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
      * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The defaultHostname to set. * @return This builder for chaining. */ - public Builder setDefaultHostname( - java.lang.String value) { + public Builder setDefaultHostname(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + defaultHostname_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The default API Gateway host name of the form
      * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
      * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDefaultHostname() { - + defaultHostname_ = getDefaultInstance().getDefaultHostname(); onChanged(); return this; } /** + * + * *
      * Output only. The default API Gateway host name of the form
      * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
      * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for defaultHostname to set. * @return This builder for chaining. */ - public Builder setDefaultHostnameBytes( - com.google.protobuf.ByteString value) { + public Builder setDefaultHostnameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultHostname_ = 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); } @@ -2222,12 +2490,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.Gateway) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.Gateway) private static final com.google.cloud.apigateway.v1.Gateway DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.Gateway(); } @@ -2236,16 +2504,16 @@ public static com.google.cloud.apigateway.v1.Gateway getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Gateway parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Gateway(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Gateway parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Gateway(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2260,6 +2528,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.Gateway getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayName.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayName.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayOrBuilder.java index 44e6dd1..9a8efa0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GatewayOrBuilder.java @@ -1,89 +1,134 @@ +/* + * 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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface GatewayOrBuilder extends +public interface GatewayOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.Gateway) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Resource name of the Gateway.
    * Format: projects/{project}/locations/{location}/gateways/{gateway}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of the Gateway.
    * Format: projects/{project}/locations/{location}/gateways/{gateway}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Created time.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Updated time.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -94,6 +139,8 @@ public interface GatewayOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -102,15 +149,13 @@ public interface GatewayOrBuilder extends
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -119,9 +164,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -132,11 +178,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. Resource labels to represent user-provided metadata.
    * Refer to cloud documentation on labels for more details.
@@ -145,90 +193,117 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Optional. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Required. Resource name of the API Config for this Gateway.
    * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
    * 
* - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The apiConfig. */ java.lang.String getApiConfig(); /** + * + * *
    * Required. Resource name of the API Config for this Gateway.
    * Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
    * 
* - * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string api_config = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for apiConfig. */ - com.google.protobuf.ByteString - getApiConfigBytes(); + com.google.protobuf.ByteString getApiConfigBytes(); /** + * + * *
    * Output only. The current state of the Gateway.
    * 
* - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state of the Gateway.
    * 
* - * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.apigateway.v1.Gateway.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.apigateway.v1.Gateway.State getState(); /** + * + * *
    * Output only. The default API Gateway host name of the form
    * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
    * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The defaultHostname. */ java.lang.String getDefaultHostname(); /** + * + * *
    * Output only. The default API Gateway host name of the form
    * `{gateway_id}-{hash}.{region_code}.gateway.dev`.
    * 
* * string default_hostname = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for defaultHostname. */ - com.google.protobuf.ByteString - getDefaultHostnameBytes(); + com.google.protobuf.ByteString getDefaultHostnameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequest.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequest.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequest.java index cb897f2..29cb6b6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequest.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Request message for ApiGatewayService.GetApiConfig
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.GetApiConfigRequest} */ -public final class GetApiConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetApiConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.GetApiConfigRequest) GetApiConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetApiConfigRequest.newBuilder() to construct. private GetApiConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetApiConfigRequest() { name_ = ""; view_ = 0; @@ -26,16 +44,15 @@ private GetApiConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetApiConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetApiConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private GetApiConfigRequest( 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 24: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - view_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + view_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,40 +99,43 @@ private GetApiConfigRequest( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.GetApiConfigRequest.class, com.google.cloud.apigateway.v1.GetApiConfigRequest.Builder.class); + com.google.cloud.apigateway.v1.GetApiConfigRequest.class, + com.google.cloud.apigateway.v1.GetApiConfigRequest.Builder.class); } /** + * + * *
    * Enum to control which fields should be included in the response.
    * 
* * Protobuf enum {@code google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView} */ - public enum ConfigView - implements com.google.protobuf.ProtocolMessageEnum { - /** - * CONFIG_VIEW_UNSPECIFIED = 0; - */ + public enum ConfigView implements com.google.protobuf.ProtocolMessageEnum { + /** CONFIG_VIEW_UNSPECIFIED = 0; */ CONFIG_VIEW_UNSPECIFIED(0), /** + * + * *
      * Do not include configuration source files.
      * 
@@ -122,6 +144,8 @@ public enum ConfigView */ BASIC(1), /** + * + * *
      * Include configuration source files.
      * 
@@ -132,11 +156,11 @@ public enum ConfigView UNRECOGNIZED(-1), ; - /** - * CONFIG_VIEW_UNSPECIFIED = 0; - */ + /** CONFIG_VIEW_UNSPECIFIED = 0; */ public static final int CONFIG_VIEW_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Do not include configuration source files.
      * 
@@ -145,6 +169,8 @@ public enum ConfigView */ public static final int BASIC_VALUE = 1; /** + * + * *
      * Include configuration source files.
      * 
@@ -153,7 +179,6 @@ public enum ConfigView */ public static final int FULL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -178,49 +203,51 @@ public static ConfigView valueOf(int value) { */ public static ConfigView forNumber(int value) { switch (value) { - case 0: return CONFIG_VIEW_UNSPECIFIED; - case 1: return BASIC; - case 2: return FULL; - default: return null; + case 0: + return CONFIG_VIEW_UNSPECIFIED; + case 1: + return BASIC; + case 2: + return FULL; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ConfigView> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ConfigView findValueByNumber(int number) { - return ConfigView.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 ConfigView findValueByNumber(int number) { + return ConfigView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.GetApiConfigRequest.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.apigateway.v1.GetApiConfigRequest.getDescriptor() + .getEnumTypes() + .get(0); } private static final ConfigView[] VALUES = values(); - public static ConfigView valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ConfigView 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; @@ -240,12 +267,17 @@ private ConfigView(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*/configs/*`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -254,30 +286,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*/configs/*`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -288,33 +322,45 @@ public java.lang.String getName() { public static final int VIEW_FIELD_NUMBER = 3; private int view_; /** + * + * *
    * Specifies which fields of the API Config are returned in the response.
    * Defaults to `BASIC` view.
    * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
    * Specifies which fields of the API Config are returned in the response.
    * Defaults to `BASIC` view.
    * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; + * * @return The view. */ - @java.lang.Override public com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView getView() { + @java.lang.Override + public com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView getView() { @SuppressWarnings("deprecation") - com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView result = com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.valueOf(view_); - return result == null ? com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.UNRECOGNIZED : result; + com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView result = + com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.valueOf(view_); + return result == null + ? com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,12 +372,13 @@ 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_); } - if (view_ != com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.CONFIG_VIEW_UNSPECIFIED.getNumber()) { + if (view_ + != com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.CONFIG_VIEW_UNSPECIFIED + .getNumber()) { output.writeEnum(3, view_); } unknownFields.writeTo(output); @@ -346,9 +393,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (view_ != com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.CONFIG_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, view_); + if (view_ + != com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.CONFIG_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, view_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -358,15 +406,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.apigateway.v1.GetApiConfigRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.GetApiConfigRequest other = (com.google.cloud.apigateway.v1.GetApiConfigRequest) obj; + com.google.cloud.apigateway.v1.GetApiConfigRequest other = + (com.google.cloud.apigateway.v1.GetApiConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (view_ != other.view_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -389,117 +437,126 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.GetApiConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.GetApiConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ApiGatewayService.GetApiConfig
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.GetApiConfigRequest} */ - 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.apigateway.v1.GetApiConfigRequest) com.google.cloud.apigateway.v1.GetApiConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.GetApiConfigRequest.class, com.google.cloud.apigateway.v1.GetApiConfigRequest.Builder.class); + com.google.cloud.apigateway.v1.GetApiConfigRequest.class, + com.google.cloud.apigateway.v1.GetApiConfigRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.GetApiConfigRequest.newBuilder() @@ -507,16 +564,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(); @@ -528,9 +584,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_GetApiConfigRequest_descriptor; } @java.lang.Override @@ -549,7 +605,8 @@ public com.google.cloud.apigateway.v1.GetApiConfigRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.GetApiConfigRequest buildPartial() { - com.google.cloud.apigateway.v1.GetApiConfigRequest result = new com.google.cloud.apigateway.v1.GetApiConfigRequest(this); + com.google.cloud.apigateway.v1.GetApiConfigRequest result = + new com.google.cloud.apigateway.v1.GetApiConfigRequest(this); result.name_ = name_; result.view_ = view_; onBuilt(); @@ -560,38 +617,39 @@ public com.google.cloud.apigateway.v1.GetApiConfigRequest 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.apigateway.v1.GetApiConfigRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.GetApiConfigRequest)other); + return mergeFrom((com.google.cloud.apigateway.v1.GetApiConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -599,7 +657,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.GetApiConfigRequest other) { - if (other == com.google.cloud.apigateway.v1.GetApiConfigRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.GetApiConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -626,7 +685,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.apigateway.v1.GetApiConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.apigateway.v1.GetApiConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -638,19 +698,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -659,21 +723,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -681,57 +748,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*/configs/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -739,55 +819,71 @@ public Builder setNameBytes( private int view_ = 0; /** + * + * *
      * Specifies which fields of the API Config are returned in the response.
      * Defaults to `BASIC` view.
      * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
      * Specifies which fields of the API Config are returned in the response.
      * Defaults to `BASIC` view.
      * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; + * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ public Builder setViewValue(int value) { - + view_ = value; onChanged(); return this; } /** + * + * *
      * Specifies which fields of the API Config are returned in the response.
      * Defaults to `BASIC` view.
      * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; + * * @return The view. */ @java.lang.Override public com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView getView() { @SuppressWarnings("deprecation") - com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView result = com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.valueOf(view_); - return result == null ? com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.UNRECOGNIZED : result; + com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView result = + com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.valueOf(view_); + return result == null + ? com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView.UNRECOGNIZED + : result; } /** + * + * *
      * Specifies which fields of the API Config are returned in the response.
      * Defaults to `BASIC` view.
      * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; + * * @param value The view to set. * @return This builder for chaining. */ @@ -795,29 +891,32 @@ public Builder setView(com.google.cloud.apigateway.v1.GetApiConfigRequest.Config if (value == null) { throw new NullPointerException(); } - + view_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Specifies which fields of the API Config are returned in the response.
      * Defaults to `BASIC` view.
      * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; + * * @return This builder for chaining. */ public Builder clearView() { - + view_ = 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); } @@ -827,12 +926,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.GetApiConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.GetApiConfigRequest) private static final com.google.cloud.apigateway.v1.GetApiConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.GetApiConfigRequest(); } @@ -841,16 +940,16 @@ public static com.google.cloud.apigateway.v1.GetApiConfigRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetApiConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetApiConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetApiConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetApiConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -865,6 +964,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.GetApiConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequestOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequestOrBuilder.java index e63f259..6415114 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequestOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiConfigRequestOrBuilder.java @@ -1,51 +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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface GetApiConfigRequestOrBuilder extends +public interface GetApiConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.GetApiConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*/configs/*`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*/configs/*`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Specifies which fields of the API Config are returned in the response.
    * Defaults to `BASIC` view.
    * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; + * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** + * + * *
    * Specifies which fields of the API Config are returned in the response.
    * Defaults to `BASIC` view.
    * 
* * .google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView view = 3; + * * @return The view. */ com.google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView getView(); diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequest.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequest.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequest.java index d2e3a6b..72594c7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequest.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Request message for ApiGatewayService.GetApi
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.GetApiRequest} */ -public final class GetApiRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetApiRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.GetApiRequest) GetApiRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetApiRequest.newBuilder() to construct. private GetApiRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetApiRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetApiRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetApiRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetApiRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetApiRequest( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_GetApiRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.GetApiRequest.class, com.google.cloud.apigateway.v1.GetApiRequest.Builder.class); + com.google.cloud.apigateway.v1.GetApiRequest.class, + com.google.cloud.apigateway.v1.GetApiRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.apigateway.v1.GetApiRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.GetApiRequest other = (com.google.cloud.apigateway.v1.GetApiRequest) obj; + com.google.cloud.apigateway.v1.GetApiRequest other = + (com.google.cloud.apigateway.v1.GetApiRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +232,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.GetApiRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.GetApiRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.GetApiRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ApiGatewayService.GetApi
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.GetApiRequest} */ - 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.apigateway.v1.GetApiRequest) com.google.cloud.apigateway.v1.GetApiRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_GetApiRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.GetApiRequest.class, com.google.cloud.apigateway.v1.GetApiRequest.Builder.class); + com.google.cloud.apigateway.v1.GetApiRequest.class, + com.google.cloud.apigateway.v1.GetApiRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.GetApiRequest.newBuilder() @@ -324,16 +360,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(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_GetApiRequest_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.apigateway.v1.GetApiRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.GetApiRequest buildPartial() { - com.google.cloud.apigateway.v1.GetApiRequest result = new com.google.cloud.apigateway.v1.GetApiRequest(this); + com.google.cloud.apigateway.v1.GetApiRequest result = + new com.google.cloud.apigateway.v1.GetApiRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.apigateway.v1.GetApiRequest 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.apigateway.v1.GetApiRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.GetApiRequest)other); + return mergeFrom((com.google.cloud.apigateway.v1.GetApiRequest) other); } else { super.mergeFrom(other); return this; @@ -449,19 +486,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +511,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +536,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +616,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.GetApiRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.GetApiRequest) private static final com.google.cloud.apigateway.v1.GetApiRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.GetApiRequest(); } @@ -573,16 +630,16 @@ public static com.google.cloud.apigateway.v1.GetApiRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetApiRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetApiRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetApiRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetApiRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +654,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.GetApiRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequestOrBuilder.java new file mode 100644 index 0000000..b014423 --- /dev/null +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetApiRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/apigateway/v1/apigateway.proto + +package com.google.cloud.apigateway.v1; + +public interface GetApiRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.GetApiRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/global/apis/*`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/global/apis/*`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequest.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequest.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequest.java index 55d4036..1384ffc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequest.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Request message for ApiGatewayService.GetGateway
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.GetGatewayRequest} */ -public final class GetGatewayRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetGatewayRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.GetGatewayRequest) GetGatewayRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetGatewayRequest.newBuilder() to construct. private GetGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetGatewayRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetGatewayRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetGatewayRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetGatewayRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetGatewayRequest( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetGatewayRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_GetGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.GetGatewayRequest.class, com.google.cloud.apigateway.v1.GetGatewayRequest.Builder.class); + com.google.cloud.apigateway.v1.GetGatewayRequest.class, + com.google.cloud.apigateway.v1.GetGatewayRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the form:
    * `projects/*/locations/*/gateways/*`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Resource name of the form:
    * `projects/*/locations/*/gateways/*`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.apigateway.v1.GetGatewayRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.GetGatewayRequest other = (com.google.cloud.apigateway.v1.GetGatewayRequest) obj; + com.google.cloud.apigateway.v1.GetGatewayRequest other = + (com.google.cloud.apigateway.v1.GetGatewayRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +232,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.GetGatewayRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.GetGatewayRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.GetGatewayRequest 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.apigateway.v1.GetGatewayRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.GetGatewayRequest 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.apigateway.v1.GetGatewayRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.GetGatewayRequest 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.apigateway.v1.GetGatewayRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.GetGatewayRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.GetGatewayRequest 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.apigateway.v1.GetGatewayRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.GetGatewayRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.GetGatewayRequest 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.apigateway.v1.GetGatewayRequest 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.apigateway.v1.GetGatewayRequest 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.apigateway.v1.GetGatewayRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ApiGatewayService.GetGateway
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.GetGatewayRequest} */ - 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.apigateway.v1.GetGatewayRequest) com.google.cloud.apigateway.v1.GetGatewayRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetGatewayRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_GetGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.GetGatewayRequest.class, com.google.cloud.apigateway.v1.GetGatewayRequest.Builder.class); + com.google.cloud.apigateway.v1.GetGatewayRequest.class, + com.google.cloud.apigateway.v1.GetGatewayRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.GetGatewayRequest.newBuilder() @@ -324,16 +360,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(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_GetGatewayRequest_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.apigateway.v1.GetGatewayRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.GetGatewayRequest buildPartial() { - com.google.cloud.apigateway.v1.GetGatewayRequest result = new com.google.cloud.apigateway.v1.GetGatewayRequest(this); + com.google.cloud.apigateway.v1.GetGatewayRequest result = + new com.google.cloud.apigateway.v1.GetGatewayRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.apigateway.v1.GetGatewayRequest 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.apigateway.v1.GetGatewayRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.GetGatewayRequest)other); + return mergeFrom((com.google.cloud.apigateway.v1.GetGatewayRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.GetGatewayRequest other) { - if (other == com.google.cloud.apigateway.v1.GetGatewayRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.GetGatewayRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -449,19 +487,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +512,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +537,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Resource name of the form:
      * `projects/*/locations/*/gateways/*`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +617,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.GetGatewayRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.GetGatewayRequest) private static final com.google.cloud.apigateway.v1.GetGatewayRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.GetGatewayRequest(); } @@ -573,16 +631,16 @@ public static com.google.cloud.apigateway.v1.GetGatewayRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGatewayRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetGatewayRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetGatewayRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.GetGatewayRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequestOrBuilder.java new file mode 100644 index 0000000..b854aa4 --- /dev/null +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/GetGatewayRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/apigateway/v1/apigateway.proto + +package com.google.cloud.apigateway.v1; + +public interface GetGatewayRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.GetGatewayRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/*/gateways/*`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the form:
+   * `projects/*/locations/*/gateways/*`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequest.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequest.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequest.java index bcddd5f..5f0f376 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequest.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Request message for ApiGatewayService.ListApiConfigs
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListApiConfigsRequest} */ -public final class ListApiConfigsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListApiConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ListApiConfigsRequest) ListApiConfigsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListApiConfigsRequest.newBuilder() to construct. private ListApiConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListApiConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListApiConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListApiConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListApiConfigsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListApiConfigsRequest( 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; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,35 +120,42 @@ private ListApiConfigsRequest( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListApiConfigsRequest.class, com.google.cloud.apigateway.v1.ListApiConfigsRequest.Builder.class); + com.google.cloud.apigateway.v1.ListApiConfigsRequest.class, + com.google.cloud.apigateway.v1.ListApiConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent resource of the API Config, of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * 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 @@ -136,30 +164,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 resource of the API Config, of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * 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 { @@ -170,11 +200,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Page size.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -185,11 +218,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -198,29 +234,29 @@ 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; } } /** + * + * *
    * Page token.
    * 
* * 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 { @@ -231,11 +267,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Filter.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -244,29 +283,29 @@ public java.lang.String getFilter() { 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(); filter_ = s; return s; } } /** + * + * *
    * Filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -277,11 +316,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Order by parameters.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -290,29 +332,29 @@ public java.lang.String getOrderBy() { 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(); orderBy_ = s; return s; } } /** + * + * *
    * Order by parameters.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; 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); orderBy_ = b; return b; } else { @@ -321,6 +363,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,8 +375,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_); } @@ -362,8 +404,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_); @@ -382,23 +423,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.apigateway.v1.ListApiConfigsRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ListApiConfigsRequest other = (com.google.cloud.apigateway.v1.ListApiConfigsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.apigateway.v1.ListApiConfigsRequest other = + (com.google.cloud.apigateway.v1.ListApiConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -426,117 +463,126 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.ListApiConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.ListApiConfigsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ApiGatewayService.ListApiConfigs
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListApiConfigsRequest} */ - 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.apigateway.v1.ListApiConfigsRequest) com.google.cloud.apigateway.v1.ListApiConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListApiConfigsRequest.class, com.google.cloud.apigateway.v1.ListApiConfigsRequest.Builder.class); + com.google.cloud.apigateway.v1.ListApiConfigsRequest.class, + com.google.cloud.apigateway.v1.ListApiConfigsRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ListApiConfigsRequest.newBuilder() @@ -544,16 +590,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(); @@ -571,9 +616,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApiConfigsRequest_descriptor; } @java.lang.Override @@ -592,7 +637,8 @@ public com.google.cloud.apigateway.v1.ListApiConfigsRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.ListApiConfigsRequest buildPartial() { - com.google.cloud.apigateway.v1.ListApiConfigsRequest result = new com.google.cloud.apigateway.v1.ListApiConfigsRequest(this); + com.google.cloud.apigateway.v1.ListApiConfigsRequest result = + new com.google.cloud.apigateway.v1.ListApiConfigsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -606,38 +652,39 @@ public com.google.cloud.apigateway.v1.ListApiConfigsRequest 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.apigateway.v1.ListApiConfigsRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.ListApiConfigsRequest)other); + return mergeFrom((com.google.cloud.apigateway.v1.ListApiConfigsRequest) other); } else { super.mergeFrom(other); return this; @@ -645,7 +692,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.ListApiConfigsRequest other) { - if (other == com.google.cloud.apigateway.v1.ListApiConfigsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.ListApiConfigsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -684,7 +732,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.apigateway.v1.ListApiConfigsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.apigateway.v1.ListApiConfigsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -696,19 +745,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * 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; @@ -717,21 +770,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * 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 { @@ -739,69 +795,85 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * 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 resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * 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 resource of the API Config, of the form:
      * `projects/*/locations/global/apis/*`
      * 
* - * 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_; /** + * + * *
      * Page size.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -809,30 +881,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Page size.
      * 
* * 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; } /** + * + * *
      * Page size.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -840,18 +918,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token.
      * 
* * 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; @@ -860,20 +940,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token.
      * 
* * 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 { @@ -881,54 +962,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token.
      * 
* * 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; } /** + * + * *
      * Page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token.
      * 
* * 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; @@ -936,18 +1024,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Filter.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; @@ -956,20 +1046,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -977,54 +1068,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Filter.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Filter.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1032,18 +1130,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Order by parameters.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; 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(); orderBy_ = s; return s; @@ -1052,20 +1152,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by parameters.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; 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); orderBy_ = b; return b; } else { @@ -1073,61 +1174,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by parameters.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Order by parameters.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Order by parameters.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1137,12 +1245,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ListApiConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ListApiConfigsRequest) private static final com.google.cloud.apigateway.v1.ListApiConfigsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ListApiConfigsRequest(); } @@ -1151,16 +1259,16 @@ public static com.google.cloud.apigateway.v1.ListApiConfigsRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListApiConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListApiConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApiConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListApiConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1175,6 +1283,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ListApiConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequestOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequestOrBuilder.java index 962e39a..ee03aa7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequestOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsRequestOrBuilder.java @@ -1,101 +1,144 @@ +/* + * 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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface ListApiConfigsRequestOrBuilder extends +public interface ListApiConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ListApiConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource of the API Config, of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * 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 resource of the API Config, of the form:
    * `projects/*/locations/global/apis/*`
    * 
* - * 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(); /** + * + * *
    * Page size.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Filter.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Order by parameters.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Order by parameters.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponse.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponse.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponse.java index 19c9e25..6478012 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponse.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponse.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Response message for ApiGatewayService.ListApiConfigs
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListApiConfigsResponse} */ -public final class ListApiConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListApiConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ListApiConfigsResponse) ListApiConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListApiConfigsResponse.newBuilder() to construct. private ListApiConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListApiConfigsResponse() { apiConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListApiConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListApiConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListApiConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListApiConfigsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - apiConfigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + apiConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + apiConfigs_.add( + input.readMessage( + com.google.cloud.apigateway.v1.ApiConfig.parser(), extensionRegistry)); + break; } - apiConfigs_.add( - input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachableLocations_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachableLocations_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListApiConfigsResponse( } 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)) { apiConfigs_ = java.util.Collections.unmodifiableList(apiConfigs_); @@ -107,22 +127,27 @@ private ListApiConfigsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListApiConfigsResponse.class, com.google.cloud.apigateway.v1.ListApiConfigsResponse.Builder.class); + com.google.cloud.apigateway.v1.ListApiConfigsResponse.class, + com.google.cloud.apigateway.v1.ListApiConfigsResponse.Builder.class); } public static final int API_CONFIGS_FIELD_NUMBER = 1; private java.util.List apiConfigs_; /** + * + * *
    * API Configs.
    * 
@@ -134,6 +159,8 @@ public java.util.List getApiConfigsLis return apiConfigs_; } /** + * + * *
    * API Configs.
    * 
@@ -141,11 +168,13 @@ public java.util.List getApiConfigsLis * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getApiConfigsOrBuilderList() { return apiConfigs_; } /** + * + * *
    * API Configs.
    * 
@@ -157,6 +186,8 @@ public int getApiConfigsCount() { return apiConfigs_.size(); } /** + * + * *
    * API Configs.
    * 
@@ -168,6 +199,8 @@ public com.google.cloud.apigateway.v1.ApiConfig getApiConfigs(int index) { return apiConfigs_.get(index); } /** + * + * *
    * API Configs.
    * 
@@ -175,19 +208,21 @@ public com.google.cloud.apigateway.v1.ApiConfig getApiConfigs(int index) { * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ @java.lang.Override - public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigsOrBuilder( - int index) { + public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigsOrBuilder(int index) { return apiConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Next page token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +231,29 @@ 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; } } /** + * + * *
    * Next page token.
    * 
* * 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 { @@ -229,34 +264,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_LOCATIONS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachableLocations_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @return A list containing the unreachableLocations. */ - public com.google.protobuf.ProtocolStringList - getUnreachableLocationsList() { + public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { return unreachableLocations_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @return The count of unreachableLocations. */ public int getUnreachableLocationsCount() { return unreachableLocations_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ @@ -264,20 +307,23 @@ public java.lang.String getUnreachableLocations(int index) { return unreachableLocations_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - public com.google.protobuf.ByteString - getUnreachableLocationsBytes(int index) { + public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { return unreachableLocations_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +335,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 < apiConfigs_.size(); i++) { output.writeMessage(1, apiConfigs_.get(i)); } @@ -298,7 +343,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachableLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachableLocations_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, unreachableLocations_.getRaw(i)); } unknownFields.writeTo(output); } @@ -310,8 +356,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < apiConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, apiConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, apiConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +377,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.apigateway.v1.ListApiConfigsResponse)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ListApiConfigsResponse other = (com.google.cloud.apigateway.v1.ListApiConfigsResponse) obj; + com.google.cloud.apigateway.v1.ListApiConfigsResponse other = + (com.google.cloud.apigateway.v1.ListApiConfigsResponse) obj; - if (!getApiConfigsList() - .equals(other.getApiConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableLocationsList() - .equals(other.getUnreachableLocationsList())) return false; + if (!getApiConfigsList().equals(other.getApiConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableLocationsList().equals(other.getUnreachableLocationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +415,127 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.ListApiConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.ListApiConfigsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.apigateway.v1.ListApiConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for ApiGatewayService.ListApiConfigs
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListApiConfigsResponse} */ - 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.apigateway.v1.ListApiConfigsResponse) com.google.cloud.apigateway.v1.ListApiConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListApiConfigsResponse.class, com.google.cloud.apigateway.v1.ListApiConfigsResponse.Builder.class); + com.google.cloud.apigateway.v1.ListApiConfigsResponse.class, + com.google.cloud.apigateway.v1.ListApiConfigsResponse.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ListApiConfigsResponse.newBuilder() @@ -490,17 +543,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) { getApiConfigsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApiConfigsResponse_descriptor; } @java.lang.Override @@ -539,7 +592,8 @@ public com.google.cloud.apigateway.v1.ListApiConfigsResponse build() { @java.lang.Override public com.google.cloud.apigateway.v1.ListApiConfigsResponse buildPartial() { - com.google.cloud.apigateway.v1.ListApiConfigsResponse result = new com.google.cloud.apigateway.v1.ListApiConfigsResponse(this); + com.google.cloud.apigateway.v1.ListApiConfigsResponse result = + new com.google.cloud.apigateway.v1.ListApiConfigsResponse(this); int from_bitField0_ = bitField0_; if (apiConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +618,39 @@ public com.google.cloud.apigateway.v1.ListApiConfigsResponse 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.apigateway.v1.ListApiConfigsResponse) { - return mergeFrom((com.google.cloud.apigateway.v1.ListApiConfigsResponse)other); + return mergeFrom((com.google.cloud.apigateway.v1.ListApiConfigsResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +658,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.ListApiConfigsResponse other) { - if (other == com.google.cloud.apigateway.v1.ListApiConfigsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.ListApiConfigsResponse.getDefaultInstance()) + return this; if (apiConfigsBuilder_ == null) { if (!other.apiConfigs_.isEmpty()) { if (apiConfigs_.isEmpty()) { @@ -622,9 +678,10 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.ListApiConfigsResponse o apiConfigsBuilder_ = null; apiConfigs_ = other.apiConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - apiConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getApiConfigsFieldBuilder() : null; + apiConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApiConfigsFieldBuilder() + : null; } else { apiConfigsBuilder_.addAllMessages(other.apiConfigs_); } @@ -663,7 +720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.apigateway.v1.ListApiConfigsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.apigateway.v1.ListApiConfigsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +730,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List apiConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureApiConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - apiConfigs_ = new java.util.ArrayList(apiConfigs_); + apiConfigs_ = + new java.util.ArrayList(apiConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder> apiConfigsBuilder_; + com.google.cloud.apigateway.v1.ApiConfig, + com.google.cloud.apigateway.v1.ApiConfig.Builder, + com.google.cloud.apigateway.v1.ApiConfigOrBuilder> + apiConfigsBuilder_; /** + * + * *
      * API Configs.
      * 
@@ -701,6 +767,8 @@ public java.util.List getApiConfigsLis } } /** + * + * *
      * API Configs.
      * 
@@ -715,6 +783,8 @@ public int getApiConfigsCount() { } } /** + * + * *
      * API Configs.
      * 
@@ -729,14 +799,15 @@ public com.google.cloud.apigateway.v1.ApiConfig getApiConfigs(int index) { } } /** + * + * *
      * API Configs.
      * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - public Builder setApiConfigs( - int index, com.google.cloud.apigateway.v1.ApiConfig value) { + public Builder setApiConfigs(int index, com.google.cloud.apigateway.v1.ApiConfig value) { if (apiConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +821,8 @@ public Builder setApiConfigs( return this; } /** + * + * *
      * API Configs.
      * 
@@ -768,6 +841,8 @@ public Builder setApiConfigs( return this; } /** + * + * *
      * API Configs.
      * 
@@ -788,14 +863,15 @@ public Builder addApiConfigs(com.google.cloud.apigateway.v1.ApiConfig value) { return this; } /** + * + * *
      * API Configs.
      * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - public Builder addApiConfigs( - int index, com.google.cloud.apigateway.v1.ApiConfig value) { + public Builder addApiConfigs(int index, com.google.cloud.apigateway.v1.ApiConfig value) { if (apiConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,14 +885,15 @@ public Builder addApiConfigs( return this; } /** + * + * *
      * API Configs.
      * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - public Builder addApiConfigs( - com.google.cloud.apigateway.v1.ApiConfig.Builder builderForValue) { + public Builder addApiConfigs(com.google.cloud.apigateway.v1.ApiConfig.Builder builderForValue) { if (apiConfigsBuilder_ == null) { ensureApiConfigsIsMutable(); apiConfigs_.add(builderForValue.build()); @@ -827,6 +904,8 @@ public Builder addApiConfigs( return this; } /** + * + * *
      * API Configs.
      * 
@@ -845,6 +924,8 @@ public Builder addApiConfigs( return this; } /** + * + * *
      * API Configs.
      * 
@@ -855,8 +936,7 @@ public Builder addAllApiConfigs( java.lang.Iterable values) { if (apiConfigsBuilder_ == null) { ensureApiConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, apiConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, apiConfigs_); onChanged(); } else { apiConfigsBuilder_.addAllMessages(values); @@ -864,6 +944,8 @@ public Builder addAllApiConfigs( return this; } /** + * + * *
      * API Configs.
      * 
@@ -881,6 +963,8 @@ public Builder clearApiConfigs() { return this; } /** + * + * *
      * API Configs.
      * 
@@ -898,39 +982,44 @@ public Builder removeApiConfigs(int index) { return this; } /** + * + * *
      * API Configs.
      * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - public com.google.cloud.apigateway.v1.ApiConfig.Builder getApiConfigsBuilder( - int index) { + public com.google.cloud.apigateway.v1.ApiConfig.Builder getApiConfigsBuilder(int index) { return getApiConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * API Configs.
      * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigsOrBuilder( - int index) { + public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigsOrBuilder(int index) { if (apiConfigsBuilder_ == null) { - return apiConfigs_.get(index); } else { + return apiConfigs_.get(index); + } else { return apiConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * API Configs.
      * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - public java.util.List - getApiConfigsOrBuilderList() { + public java.util.List + getApiConfigsOrBuilderList() { if (apiConfigsBuilder_ != null) { return apiConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1027,8 @@ public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigsOrBuilder( } } /** + * + * *
      * API Configs.
      * 
@@ -945,42 +1036,48 @@ public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigsOrBuilder( * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ public com.google.cloud.apigateway.v1.ApiConfig.Builder addApiConfigsBuilder() { - return getApiConfigsFieldBuilder().addBuilder( - com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance()); + return getApiConfigsFieldBuilder() + .addBuilder(com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance()); } /** + * + * *
      * API Configs.
      * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - public com.google.cloud.apigateway.v1.ApiConfig.Builder addApiConfigsBuilder( - int index) { - return getApiConfigsFieldBuilder().addBuilder( - index, com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance()); + public com.google.cloud.apigateway.v1.ApiConfig.Builder addApiConfigsBuilder(int index) { + return getApiConfigsFieldBuilder() + .addBuilder(index, com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance()); } /** + * + * *
      * API Configs.
      * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - public java.util.List - getApiConfigsBuilderList() { + public java.util.List + getApiConfigsBuilderList() { return getApiConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig, + com.google.cloud.apigateway.v1.ApiConfig.Builder, + com.google.cloud.apigateway.v1.ApiConfigOrBuilder> getApiConfigsFieldBuilder() { if (apiConfigsBuilder_ == null) { - apiConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder>( - apiConfigs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + apiConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig, + com.google.cloud.apigateway.v1.ApiConfig.Builder, + com.google.cloud.apigateway.v1.ApiConfigOrBuilder>( + apiConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); apiConfigs_ = null; } return apiConfigsBuilder_; @@ -988,18 +1085,20 @@ public com.google.cloud.apigateway.v1.ApiConfig.Builder addApiConfigsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Next page token.
      * 
* * 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; @@ -1008,20 +1107,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Next page token.
      * 
* * 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,95 +1129,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Next page token.
      * 
* * 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; } /** + * + * *
      * Next page token.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Next page token.
      * 
* * 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; } - private com.google.protobuf.LazyStringList unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachableLocations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableLocationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(unreachableLocations_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @return A list containing the unreachableLocations. */ - public com.google.protobuf.ProtocolStringList - getUnreachableLocationsList() { + public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { return unreachableLocations_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @return The count of unreachableLocations. */ public int getUnreachableLocationsCount() { return unreachableLocations_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ @@ -1125,80 +1242,90 @@ public java.lang.String getUnreachableLocations(int index) { return unreachableLocations_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - public com.google.protobuf.ByteString - getUnreachableLocationsBytes(int index) { + public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { return unreachableLocations_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param index The index to set the value at. * @param value The unreachableLocations to set. * @return This builder for chaining. */ - public Builder setUnreachableLocations( - int index, java.lang.String value) { + public Builder setUnreachableLocations(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); unreachableLocations_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param value The unreachableLocations to add. * @return This builder for chaining. */ - public Builder addUnreachableLocations( - java.lang.String value) { + public Builder addUnreachableLocations(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); unreachableLocations_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param values The unreachableLocations to add. * @return This builder for chaining. */ - public Builder addAllUnreachableLocations( - java.lang.Iterable values) { + public Builder addAllUnreachableLocations(java.lang.Iterable values) { ensureUnreachableLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachableLocations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachableLocations_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @return This builder for chaining. */ public Builder clearUnreachableLocations() { @@ -1208,28 +1335,30 @@ public Builder clearUnreachableLocations() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param value The bytes of the unreachableLocations to add. * @return This builder for chaining. */ - public Builder addUnreachableLocationsBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableLocationsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableLocationsIsMutable(); unreachableLocations_.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); } @@ -1239,12 +1368,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ListApiConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ListApiConfigsResponse) private static final com.google.cloud.apigateway.v1.ListApiConfigsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ListApiConfigsResponse(); } @@ -1253,16 +1382,16 @@ public static com.google.cloud.apigateway.v1.ListApiConfigsResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListApiConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListApiConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApiConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListApiConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1406,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ListApiConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponseOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponseOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponseOrBuilder.java index 3278baf..a980e29 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponseOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApiConfigsResponseOrBuilder.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface ListApiConfigsResponseOrBuilder extends +public interface ListApiConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ListApiConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * API Configs.
    * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - java.util.List - getApiConfigsList(); + java.util.List getApiConfigsList(); /** + * + * *
    * API Configs.
    * 
@@ -25,6 +44,8 @@ public interface ListApiConfigsResponseOrBuilder extends */ com.google.cloud.apigateway.v1.ApiConfig getApiConfigs(int index); /** + * + * *
    * API Configs.
    * 
@@ -33,82 +54,100 @@ public interface ListApiConfigsResponseOrBuilder extends */ int getApiConfigsCount(); /** + * + * *
    * API Configs.
    * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - java.util.List + java.util.List getApiConfigsOrBuilderList(); /** + * + * *
    * API Configs.
    * 
* * repeated .google.cloud.apigateway.v1.ApiConfig api_configs = 1; */ - com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigsOrBuilder( - int index); + com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigsOrBuilder(int index); /** + * + * *
    * Next page token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Next page token.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @return A list containing the unreachableLocations. */ - java.util.List - getUnreachableLocationsList(); + java.util.List getUnreachableLocationsList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @return The count of unreachableLocations. */ int getUnreachableLocationsCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ java.lang.String getUnreachableLocations(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - com.google.protobuf.ByteString - getUnreachableLocationsBytes(int index); + com.google.protobuf.ByteString getUnreachableLocationsBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequest.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequest.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequest.java index 42c513a..280344b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequest.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Request message for ApiGatewayService.ListApis
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListApisRequest} */ -public final class ListApisRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListApisRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ListApisRequest) ListApisRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListApisRequest.newBuilder() to construct. private ListApisRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListApisRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListApisRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListApisRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListApisRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListApisRequest( 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; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,35 +120,42 @@ private ListApisRequest( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApisRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListApisRequest.class, com.google.cloud.apigateway.v1.ListApisRequest.Builder.class); + com.google.cloud.apigateway.v1.ListApisRequest.class, + com.google.cloud.apigateway.v1.ListApisRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent resource of the API, of the form:
    * `projects/*/locations/global`
    * 
* - * 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 @@ -136,30 +164,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 resource of the API, of the form:
    * `projects/*/locations/global`
    * 
* - * 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 { @@ -170,11 +200,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Page size.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -185,11 +218,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -198,29 +234,29 @@ 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; } } /** + * + * *
    * Page token.
    * 
* * 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 { @@ -231,11 +267,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Filter.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -244,29 +283,29 @@ public java.lang.String getFilter() { 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(); filter_ = s; return s; } } /** + * + * *
    * Filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -277,11 +316,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Order by parameters.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -290,29 +332,29 @@ public java.lang.String getOrderBy() { 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(); orderBy_ = s; return s; } } /** + * + * *
    * Order by parameters.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; 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); orderBy_ = b; return b; } else { @@ -321,6 +363,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,8 +375,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_); } @@ -362,8 +404,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_); @@ -382,23 +423,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.apigateway.v1.ListApisRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ListApisRequest other = (com.google.cloud.apigateway.v1.ListApisRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.apigateway.v1.ListApisRequest other = + (com.google.cloud.apigateway.v1.ListApisRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -425,118 +462,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.ListApisRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.ListApisRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.ListApisRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ApiGatewayService.ListApis
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListApisRequest} */ - 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.apigateway.v1.ListApisRequest) com.google.cloud.apigateway.v1.ListApisRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApisRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListApisRequest.class, com.google.cloud.apigateway.v1.ListApisRequest.Builder.class); + com.google.cloud.apigateway.v1.ListApisRequest.class, + com.google.cloud.apigateway.v1.ListApisRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ListApisRequest.newBuilder() @@ -544,16 +590,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(); @@ -571,9 +616,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApisRequest_descriptor; } @java.lang.Override @@ -592,7 +637,8 @@ public com.google.cloud.apigateway.v1.ListApisRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.ListApisRequest buildPartial() { - com.google.cloud.apigateway.v1.ListApisRequest result = new com.google.cloud.apigateway.v1.ListApisRequest(this); + com.google.cloud.apigateway.v1.ListApisRequest result = + new com.google.cloud.apigateway.v1.ListApisRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -606,38 +652,39 @@ public com.google.cloud.apigateway.v1.ListApisRequest 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.apigateway.v1.ListApisRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.ListApisRequest)other); + return mergeFrom((com.google.cloud.apigateway.v1.ListApisRequest) other); } else { super.mergeFrom(other); return this; @@ -696,19 +743,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * 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; @@ -717,21 +768,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * 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 { @@ -739,69 +793,85 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * 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 resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * 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 resource of the API, of the form:
      * `projects/*/locations/global`
      * 
* - * 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_; /** + * + * *
      * Page size.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -809,30 +879,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Page size.
      * 
* * 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; } /** + * + * *
      * Page size.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -840,18 +916,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token.
      * 
* * 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; @@ -860,20 +938,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token.
      * 
* * 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 { @@ -881,54 +960,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token.
      * 
* * 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; } /** + * + * *
      * Page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token.
      * 
* * 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; @@ -936,18 +1022,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Filter.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; @@ -956,20 +1044,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -977,54 +1066,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Filter.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Filter.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1032,18 +1128,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Order by parameters.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; 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(); orderBy_ = s; return s; @@ -1052,20 +1150,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by parameters.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; 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); orderBy_ = b; return b; } else { @@ -1073,61 +1172,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by parameters.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Order by parameters.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Order by parameters.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1137,12 +1243,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ListApisRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ListApisRequest) private static final com.google.cloud.apigateway.v1.ListApisRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ListApisRequest(); } @@ -1151,16 +1257,16 @@ public static com.google.cloud.apigateway.v1.ListApisRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListApisRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListApisRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApisRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListApisRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1175,6 +1281,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ListApisRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequestOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequestOrBuilder.java index ca1c0a7..963f9c1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequestOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisRequestOrBuilder.java @@ -1,101 +1,144 @@ +/* + * 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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface ListApisRequestOrBuilder extends +public interface ListApisRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ListApisRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource of the API, of the form:
    * `projects/*/locations/global`
    * 
* - * 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 resource of the API, of the form:
    * `projects/*/locations/global`
    * 
* - * 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(); /** + * + * *
    * Page size.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Filter.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Order by parameters.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Order by parameters.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponse.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponse.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponse.java index 2074143..d85343f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponse.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponse.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Response message for ApiGatewayService.ListApis
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListApisResponse} */ -public final class ListApisResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListApisResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ListApisResponse) ListApisResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListApisResponse.newBuilder() to construct. private ListApisResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListApisResponse() { apis_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListApisResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListApisResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListApisResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListApisResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - apis_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + apis_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + apis_.add( + input.readMessage( + com.google.cloud.apigateway.v1.Api.parser(), extensionRegistry)); + break; } - apis_.add( - input.readMessage(com.google.cloud.apigateway.v1.Api.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachableLocations_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachableLocations_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListApisResponse( } 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)) { apis_ = java.util.Collections.unmodifiableList(apis_); @@ -107,22 +127,27 @@ private ListApisResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisResponse_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApisResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListApisResponse.class, com.google.cloud.apigateway.v1.ListApisResponse.Builder.class); + com.google.cloud.apigateway.v1.ListApisResponse.class, + com.google.cloud.apigateway.v1.ListApisResponse.Builder.class); } public static final int APIS_FIELD_NUMBER = 1; private java.util.List apis_; /** + * + * *
    * APIs.
    * 
@@ -134,6 +159,8 @@ public java.util.List getApisList() { return apis_; } /** + * + * *
    * APIs.
    * 
@@ -141,11 +168,13 @@ public java.util.List getApisList() { * repeated .google.cloud.apigateway.v1.Api apis = 1; */ @java.lang.Override - public java.util.List + public java.util.List getApisOrBuilderList() { return apis_; } /** + * + * *
    * APIs.
    * 
@@ -157,6 +186,8 @@ public int getApisCount() { return apis_.size(); } /** + * + * *
    * APIs.
    * 
@@ -168,6 +199,8 @@ public com.google.cloud.apigateway.v1.Api getApis(int index) { return apis_.get(index); } /** + * + * *
    * APIs.
    * 
@@ -175,19 +208,21 @@ public com.google.cloud.apigateway.v1.Api getApis(int index) { * repeated .google.cloud.apigateway.v1.Api apis = 1; */ @java.lang.Override - public com.google.cloud.apigateway.v1.ApiOrBuilder getApisOrBuilder( - int index) { + public com.google.cloud.apigateway.v1.ApiOrBuilder getApisOrBuilder(int index) { return apis_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Next page token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +231,29 @@ 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; } } /** + * + * *
    * Next page token.
    * 
* * 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 { @@ -229,34 +264,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_LOCATIONS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachableLocations_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @return A list containing the unreachableLocations. */ - public com.google.protobuf.ProtocolStringList - getUnreachableLocationsList() { + public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { return unreachableLocations_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @return The count of unreachableLocations. */ public int getUnreachableLocationsCount() { return unreachableLocations_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ @@ -264,20 +307,23 @@ public java.lang.String getUnreachableLocations(int index) { return unreachableLocations_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - public com.google.protobuf.ByteString - getUnreachableLocationsBytes(int index) { + public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { return unreachableLocations_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +335,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 < apis_.size(); i++) { output.writeMessage(1, apis_.get(i)); } @@ -298,7 +343,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachableLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachableLocations_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, unreachableLocations_.getRaw(i)); } unknownFields.writeTo(output); } @@ -310,8 +356,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < apis_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, apis_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, apis_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +377,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.apigateway.v1.ListApisResponse)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ListApisResponse other = (com.google.cloud.apigateway.v1.ListApisResponse) obj; + com.google.cloud.apigateway.v1.ListApisResponse other = + (com.google.cloud.apigateway.v1.ListApisResponse) obj; - if (!getApisList() - .equals(other.getApisList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableLocationsList() - .equals(other.getUnreachableLocationsList())) return false; + if (!getApisList().equals(other.getApisList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableLocationsList().equals(other.getUnreachableLocationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -371,118 +414,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.ListApisResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.ListApisResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.ListApisResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for ApiGatewayService.ListApis
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListApisResponse} */ - 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.apigateway.v1.ListApisResponse) com.google.cloud.apigateway.v1.ListApisResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisResponse_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApisResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListApisResponse.class, com.google.cloud.apigateway.v1.ListApisResponse.Builder.class); + com.google.cloud.apigateway.v1.ListApisResponse.class, + com.google.cloud.apigateway.v1.ListApisResponse.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ListApisResponse.newBuilder() @@ -490,17 +542,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) { getApisFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListApisResponse_descriptor; } @java.lang.Override @@ -539,7 +591,8 @@ public com.google.cloud.apigateway.v1.ListApisResponse build() { @java.lang.Override public com.google.cloud.apigateway.v1.ListApisResponse buildPartial() { - com.google.cloud.apigateway.v1.ListApisResponse result = new com.google.cloud.apigateway.v1.ListApisResponse(this); + com.google.cloud.apigateway.v1.ListApisResponse result = + new com.google.cloud.apigateway.v1.ListApisResponse(this); int from_bitField0_ = bitField0_; if (apisBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +617,39 @@ public com.google.cloud.apigateway.v1.ListApisResponse 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.apigateway.v1.ListApisResponse) { - return mergeFrom((com.google.cloud.apigateway.v1.ListApisResponse)other); + return mergeFrom((com.google.cloud.apigateway.v1.ListApisResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +657,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.ListApisResponse other) { - if (other == com.google.cloud.apigateway.v1.ListApisResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.ListApisResponse.getDefaultInstance()) + return this; if (apisBuilder_ == null) { if (!other.apis_.isEmpty()) { if (apis_.isEmpty()) { @@ -622,9 +677,10 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.ListApisResponse other) apisBuilder_ = null; apis_ = other.apis_; bitField0_ = (bitField0_ & ~0x00000001); - apisBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getApisFieldBuilder() : null; + apisBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getApisFieldBuilder() + : null; } else { apisBuilder_.addAllMessages(other.apis_); } @@ -672,21 +728,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List apis_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureApisIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { apis_ = new java.util.ArrayList(apis_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder> apisBuilder_; + com.google.cloud.apigateway.v1.Api, + com.google.cloud.apigateway.v1.Api.Builder, + com.google.cloud.apigateway.v1.ApiOrBuilder> + apisBuilder_; /** + * + * *
      * APIs.
      * 
@@ -701,6 +764,8 @@ public java.util.List getApisList() { } } /** + * + * *
      * APIs.
      * 
@@ -715,6 +780,8 @@ public int getApisCount() { } } /** + * + * *
      * APIs.
      * 
@@ -729,14 +796,15 @@ public com.google.cloud.apigateway.v1.Api getApis(int index) { } } /** + * + * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public Builder setApis( - int index, com.google.cloud.apigateway.v1.Api value) { + public Builder setApis(int index, com.google.cloud.apigateway.v1.Api value) { if (apisBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,14 +818,15 @@ public Builder setApis( return this; } /** + * + * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public Builder setApis( - int index, com.google.cloud.apigateway.v1.Api.Builder builderForValue) { + public Builder setApis(int index, com.google.cloud.apigateway.v1.Api.Builder builderForValue) { if (apisBuilder_ == null) { ensureApisIsMutable(); apis_.set(index, builderForValue.build()); @@ -768,6 +837,8 @@ public Builder setApis( return this; } /** + * + * *
      * APIs.
      * 
@@ -788,14 +859,15 @@ public Builder addApis(com.google.cloud.apigateway.v1.Api value) { return this; } /** + * + * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public Builder addApis( - int index, com.google.cloud.apigateway.v1.Api value) { + public Builder addApis(int index, com.google.cloud.apigateway.v1.Api value) { if (apisBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,14 +881,15 @@ public Builder addApis( return this; } /** + * + * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public Builder addApis( - com.google.cloud.apigateway.v1.Api.Builder builderForValue) { + public Builder addApis(com.google.cloud.apigateway.v1.Api.Builder builderForValue) { if (apisBuilder_ == null) { ensureApisIsMutable(); apis_.add(builderForValue.build()); @@ -827,14 +900,15 @@ public Builder addApis( return this; } /** + * + * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public Builder addApis( - int index, com.google.cloud.apigateway.v1.Api.Builder builderForValue) { + public Builder addApis(int index, com.google.cloud.apigateway.v1.Api.Builder builderForValue) { if (apisBuilder_ == null) { ensureApisIsMutable(); apis_.add(index, builderForValue.build()); @@ -845,6 +919,8 @@ public Builder addApis( return this; } /** + * + * *
      * APIs.
      * 
@@ -855,8 +931,7 @@ public Builder addAllApis( java.lang.Iterable values) { if (apisBuilder_ == null) { ensureApisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, apis_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, apis_); onChanged(); } else { apisBuilder_.addAllMessages(values); @@ -864,6 +939,8 @@ public Builder addAllApis( return this; } /** + * + * *
      * APIs.
      * 
@@ -881,6 +958,8 @@ public Builder clearApis() { return this; } /** + * + * *
      * APIs.
      * 
@@ -898,39 +977,44 @@ public Builder removeApis(int index) { return this; } /** + * + * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public com.google.cloud.apigateway.v1.Api.Builder getApisBuilder( - int index) { + public com.google.cloud.apigateway.v1.Api.Builder getApisBuilder(int index) { return getApisFieldBuilder().getBuilder(index); } /** + * + * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public com.google.cloud.apigateway.v1.ApiOrBuilder getApisOrBuilder( - int index) { + public com.google.cloud.apigateway.v1.ApiOrBuilder getApisOrBuilder(int index) { if (apisBuilder_ == null) { - return apis_.get(index); } else { + return apis_.get(index); + } else { return apisBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public java.util.List - getApisOrBuilderList() { + public java.util.List + getApisOrBuilderList() { if (apisBuilder_ != null) { return apisBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1022,8 @@ public com.google.cloud.apigateway.v1.ApiOrBuilder getApisOrBuilder( } } /** + * + * *
      * APIs.
      * 
@@ -945,42 +1031,47 @@ public com.google.cloud.apigateway.v1.ApiOrBuilder getApisOrBuilder( * repeated .google.cloud.apigateway.v1.Api apis = 1; */ public com.google.cloud.apigateway.v1.Api.Builder addApisBuilder() { - return getApisFieldBuilder().addBuilder( - com.google.cloud.apigateway.v1.Api.getDefaultInstance()); + return getApisFieldBuilder() + .addBuilder(com.google.cloud.apigateway.v1.Api.getDefaultInstance()); } /** + * + * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public com.google.cloud.apigateway.v1.Api.Builder addApisBuilder( - int index) { - return getApisFieldBuilder().addBuilder( - index, com.google.cloud.apigateway.v1.Api.getDefaultInstance()); + public com.google.cloud.apigateway.v1.Api.Builder addApisBuilder(int index) { + return getApisFieldBuilder() + .addBuilder(index, com.google.cloud.apigateway.v1.Api.getDefaultInstance()); } /** + * + * *
      * APIs.
      * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - public java.util.List - getApisBuilderList() { + public java.util.List getApisBuilderList() { return getApisFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder> + com.google.cloud.apigateway.v1.Api, + com.google.cloud.apigateway.v1.Api.Builder, + com.google.cloud.apigateway.v1.ApiOrBuilder> getApisFieldBuilder() { if (apisBuilder_ == null) { - apisBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder>( - apis_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + apisBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigateway.v1.Api, + com.google.cloud.apigateway.v1.Api.Builder, + com.google.cloud.apigateway.v1.ApiOrBuilder>( + apis_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); apis_ = null; } return apisBuilder_; @@ -988,18 +1079,20 @@ public com.google.cloud.apigateway.v1.Api.Builder addApisBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Next page token.
      * 
* * 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; @@ -1008,20 +1101,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Next page token.
      * 
* * 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,95 +1123,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Next page token.
      * 
* * 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; } /** + * + * *
      * Next page token.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Next page token.
      * 
* * 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; } - private com.google.protobuf.LazyStringList unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachableLocations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableLocationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(unreachableLocations_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @return A list containing the unreachableLocations. */ - public com.google.protobuf.ProtocolStringList - getUnreachableLocationsList() { + public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { return unreachableLocations_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @return The count of unreachableLocations. */ public int getUnreachableLocationsCount() { return unreachableLocations_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ @@ -1125,80 +1236,90 @@ public java.lang.String getUnreachableLocations(int index) { return unreachableLocations_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - public com.google.protobuf.ByteString - getUnreachableLocationsBytes(int index) { + public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { return unreachableLocations_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param index The index to set the value at. * @param value The unreachableLocations to set. * @return This builder for chaining. */ - public Builder setUnreachableLocations( - int index, java.lang.String value) { + public Builder setUnreachableLocations(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); unreachableLocations_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param value The unreachableLocations to add. * @return This builder for chaining. */ - public Builder addUnreachableLocations( - java.lang.String value) { + public Builder addUnreachableLocations(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); unreachableLocations_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param values The unreachableLocations to add. * @return This builder for chaining. */ - public Builder addAllUnreachableLocations( - java.lang.Iterable values) { + public Builder addAllUnreachableLocations(java.lang.Iterable values) { ensureUnreachableLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachableLocations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachableLocations_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @return This builder for chaining. */ public Builder clearUnreachableLocations() { @@ -1208,28 +1329,30 @@ public Builder clearUnreachableLocations() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param value The bytes of the unreachableLocations to add. * @return This builder for chaining. */ - public Builder addUnreachableLocationsBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableLocationsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableLocationsIsMutable(); unreachableLocations_.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); } @@ -1239,12 +1362,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ListApisResponse) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ListApisResponse) private static final com.google.cloud.apigateway.v1.ListApisResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ListApisResponse(); } @@ -1253,16 +1376,16 @@ public static com.google.cloud.apigateway.v1.ListApisResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListApisResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListApisResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListApisResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListApisResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1400,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ListApisResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponseOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponseOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponseOrBuilder.java index f62ad3d..9dfee76 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponseOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListApisResponseOrBuilder.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface ListApisResponseOrBuilder extends +public interface ListApisResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ListApisResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * APIs.
    * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - java.util.List - getApisList(); + java.util.List getApisList(); /** + * + * *
    * APIs.
    * 
@@ -25,6 +44,8 @@ public interface ListApisResponseOrBuilder extends */ com.google.cloud.apigateway.v1.Api getApis(int index); /** + * + * *
    * APIs.
    * 
@@ -33,82 +54,99 @@ public interface ListApisResponseOrBuilder extends */ int getApisCount(); /** + * + * *
    * APIs.
    * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - java.util.List - getApisOrBuilderList(); + java.util.List getApisOrBuilderList(); /** + * + * *
    * APIs.
    * 
* * repeated .google.cloud.apigateway.v1.Api apis = 1; */ - com.google.cloud.apigateway.v1.ApiOrBuilder getApisOrBuilder( - int index); + com.google.cloud.apigateway.v1.ApiOrBuilder getApisOrBuilder(int index); /** + * + * *
    * Next page token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Next page token.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @return A list containing the unreachableLocations. */ - java.util.List - getUnreachableLocationsList(); + java.util.List getUnreachableLocationsList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @return The count of unreachableLocations. */ int getUnreachableLocationsCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ java.lang.String getUnreachableLocations(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - com.google.protobuf.ByteString - getUnreachableLocationsBytes(int index); + com.google.protobuf.ByteString getUnreachableLocationsBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequest.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequest.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequest.java index 56599d2..f8938e5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequest.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Request message for ApiGatewayService.ListGateways
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListGatewaysRequest} */ -public final class ListGatewaysRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListGatewaysRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ListGatewaysRequest) ListGatewaysRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListGatewaysRequest.newBuilder() to construct. private ListGatewaysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListGatewaysRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListGatewaysRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGatewaysRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListGatewaysRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListGatewaysRequest( 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; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,35 +120,42 @@ private ListGatewaysRequest( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListGatewaysRequest.class, com.google.cloud.apigateway.v1.ListGatewaysRequest.Builder.class); + com.google.cloud.apigateway.v1.ListGatewaysRequest.class, + com.google.cloud.apigateway.v1.ListGatewaysRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent resource of the Gateway, of the form:
    * `projects/*/locations/*`
    * 
* - * 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 @@ -136,30 +164,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 resource of the Gateway, of the form:
    * `projects/*/locations/*`
    * 
* - * 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 { @@ -170,11 +200,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Page size.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -185,11 +218,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -198,29 +234,29 @@ 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; } } /** + * + * *
    * Page token.
    * 
* * 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 { @@ -231,11 +267,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Filter.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -244,29 +283,29 @@ public java.lang.String getFilter() { 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(); filter_ = s; return s; } } /** + * + * *
    * Filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -277,11 +316,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Order by parameters.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -290,29 +332,29 @@ public java.lang.String getOrderBy() { 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(); orderBy_ = s; return s; } } /** + * + * *
    * Order by parameters.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; 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); orderBy_ = b; return b; } else { @@ -321,6 +363,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,8 +375,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_); } @@ -362,8 +404,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_); @@ -382,23 +423,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.apigateway.v1.ListGatewaysRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ListGatewaysRequest other = (com.google.cloud.apigateway.v1.ListGatewaysRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.apigateway.v1.ListGatewaysRequest other = + (com.google.cloud.apigateway.v1.ListGatewaysRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -426,117 +463,126 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.ListGatewaysRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.ListGatewaysRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ApiGatewayService.ListGateways
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListGatewaysRequest} */ - 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.apigateway.v1.ListGatewaysRequest) com.google.cloud.apigateway.v1.ListGatewaysRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListGatewaysRequest.class, com.google.cloud.apigateway.v1.ListGatewaysRequest.Builder.class); + com.google.cloud.apigateway.v1.ListGatewaysRequest.class, + com.google.cloud.apigateway.v1.ListGatewaysRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ListGatewaysRequest.newBuilder() @@ -544,16 +590,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(); @@ -571,9 +616,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListGatewaysRequest_descriptor; } @java.lang.Override @@ -592,7 +637,8 @@ public com.google.cloud.apigateway.v1.ListGatewaysRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.ListGatewaysRequest buildPartial() { - com.google.cloud.apigateway.v1.ListGatewaysRequest result = new com.google.cloud.apigateway.v1.ListGatewaysRequest(this); + com.google.cloud.apigateway.v1.ListGatewaysRequest result = + new com.google.cloud.apigateway.v1.ListGatewaysRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -606,38 +652,39 @@ public com.google.cloud.apigateway.v1.ListGatewaysRequest 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.apigateway.v1.ListGatewaysRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.ListGatewaysRequest)other); + return mergeFrom((com.google.cloud.apigateway.v1.ListGatewaysRequest) other); } else { super.mergeFrom(other); return this; @@ -645,7 +692,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.ListGatewaysRequest other) { - if (other == com.google.cloud.apigateway.v1.ListGatewaysRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.ListGatewaysRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -684,7 +732,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.apigateway.v1.ListGatewaysRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.apigateway.v1.ListGatewaysRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -696,19 +745,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * 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; @@ -717,21 +770,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * 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 { @@ -739,69 +795,85 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * 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 resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * 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 resource of the Gateway, of the form:
      * `projects/*/locations/*`
      * 
* - * 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_; /** + * + * *
      * Page size.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -809,30 +881,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Page size.
      * 
* * 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; } /** + * + * *
      * Page size.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -840,18 +918,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token.
      * 
* * 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; @@ -860,20 +940,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token.
      * 
* * 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 { @@ -881,54 +962,61 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token.
      * 
* * 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; } /** + * + * *
      * Page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token.
      * 
* * 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; @@ -936,18 +1024,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Filter.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; 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(); filter_ = s; return s; @@ -956,20 +1046,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; 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); filter_ = b; return b; } else { @@ -977,54 +1068,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Filter.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Filter.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1032,18 +1130,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Order by parameters.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; 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(); orderBy_ = s; return s; @@ -1052,20 +1152,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by parameters.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; 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); orderBy_ = b; return b; } else { @@ -1073,61 +1174,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by parameters.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Order by parameters.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Order by parameters.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1137,12 +1245,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ListGatewaysRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ListGatewaysRequest) private static final com.google.cloud.apigateway.v1.ListGatewaysRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ListGatewaysRequest(); } @@ -1151,16 +1259,16 @@ public static com.google.cloud.apigateway.v1.ListGatewaysRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGatewaysRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListGatewaysRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGatewaysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListGatewaysRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1175,6 +1283,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ListGatewaysRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequestOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequestOrBuilder.java index 9d50df6..28ec390 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequestOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysRequestOrBuilder.java @@ -1,101 +1,144 @@ +/* + * 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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface ListGatewaysRequestOrBuilder extends +public interface ListGatewaysRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ListGatewaysRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource of the Gateway, of the form:
    * `projects/*/locations/*`
    * 
* - * 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 resource of the Gateway, of the form:
    * `projects/*/locations/*`
    * 
* - * 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(); /** + * + * *
    * Page size.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Filter.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Order by parameters.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Order by parameters.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponse.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponse.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponse.java index 73222d7..510bb01 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponse.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponse.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Response message for ApiGatewayService.ListGateways
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListGatewaysResponse} */ -public final class ListGatewaysResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListGatewaysResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.ListGatewaysResponse) ListGatewaysResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListGatewaysResponse.newBuilder() to construct. private ListGatewaysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListGatewaysResponse() { gateways_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListGatewaysResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListGatewaysResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListGatewaysResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListGatewaysResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - gateways_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + gateways_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + gateways_.add( + input.readMessage( + com.google.cloud.apigateway.v1.Gateway.parser(), extensionRegistry)); + break; } - gateways_.add( - input.readMessage(com.google.cloud.apigateway.v1.Gateway.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachableLocations_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachableLocations_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListGatewaysResponse( } 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)) { gateways_ = java.util.Collections.unmodifiableList(gateways_); @@ -107,22 +127,27 @@ private ListGatewaysResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListGatewaysResponse.class, com.google.cloud.apigateway.v1.ListGatewaysResponse.Builder.class); + com.google.cloud.apigateway.v1.ListGatewaysResponse.class, + com.google.cloud.apigateway.v1.ListGatewaysResponse.Builder.class); } public static final int GATEWAYS_FIELD_NUMBER = 1; private java.util.List gateways_; /** + * + * *
    * Gateways.
    * 
@@ -134,6 +159,8 @@ public java.util.List getGatewaysList() return gateways_; } /** + * + * *
    * Gateways.
    * 
@@ -141,11 +168,13 @@ public java.util.List getGatewaysList() * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ @java.lang.Override - public java.util.List + public java.util.List getGatewaysOrBuilderList() { return gateways_; } /** + * + * *
    * Gateways.
    * 
@@ -157,6 +186,8 @@ public int getGatewaysCount() { return gateways_.size(); } /** + * + * *
    * Gateways.
    * 
@@ -168,6 +199,8 @@ public com.google.cloud.apigateway.v1.Gateway getGateways(int index) { return gateways_.get(index); } /** + * + * *
    * Gateways.
    * 
@@ -175,19 +208,21 @@ public com.google.cloud.apigateway.v1.Gateway getGateways(int index) { * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ @java.lang.Override - public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewaysOrBuilder( - int index) { + public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewaysOrBuilder(int index) { return gateways_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Next page token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,29 +231,29 @@ 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; } } /** + * + * *
    * Next page token.
    * 
* * 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 { @@ -229,34 +264,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_LOCATIONS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachableLocations_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @return A list containing the unreachableLocations. */ - public com.google.protobuf.ProtocolStringList - getUnreachableLocationsList() { + public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { return unreachableLocations_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @return The count of unreachableLocations. */ public int getUnreachableLocationsCount() { return unreachableLocations_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ @@ -264,20 +307,23 @@ public java.lang.String getUnreachableLocations(int index) { return unreachableLocations_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - public com.google.protobuf.ByteString - getUnreachableLocationsBytes(int index) { + public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { return unreachableLocations_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,8 +335,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 < gateways_.size(); i++) { output.writeMessage(1, gateways_.get(i)); } @@ -298,7 +343,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachableLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachableLocations_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, unreachableLocations_.getRaw(i)); } unknownFields.writeTo(output); } @@ -310,8 +356,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < gateways_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, gateways_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, gateways_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -332,19 +377,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.apigateway.v1.ListGatewaysResponse)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.ListGatewaysResponse other = (com.google.cloud.apigateway.v1.ListGatewaysResponse) obj; + com.google.cloud.apigateway.v1.ListGatewaysResponse other = + (com.google.cloud.apigateway.v1.ListGatewaysResponse) obj; - if (!getGatewaysList() - .equals(other.getGatewaysList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableLocationsList() - .equals(other.getUnreachableLocationsList())) return false; + if (!getGatewaysList().equals(other.getGatewaysList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableLocationsList().equals(other.getUnreachableLocationsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -372,117 +415,126 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.ListGatewaysResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.ListGatewaysResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for ApiGatewayService.ListGateways
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.ListGatewaysResponse} */ - 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.apigateway.v1.ListGatewaysResponse) com.google.cloud.apigateway.v1.ListGatewaysResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.ListGatewaysResponse.class, com.google.cloud.apigateway.v1.ListGatewaysResponse.Builder.class); + com.google.cloud.apigateway.v1.ListGatewaysResponse.class, + com.google.cloud.apigateway.v1.ListGatewaysResponse.Builder.class); } // Construct using com.google.cloud.apigateway.v1.ListGatewaysResponse.newBuilder() @@ -490,17 +542,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) { getGatewaysFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -518,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_ListGatewaysResponse_descriptor; } @java.lang.Override @@ -539,7 +591,8 @@ public com.google.cloud.apigateway.v1.ListGatewaysResponse build() { @java.lang.Override public com.google.cloud.apigateway.v1.ListGatewaysResponse buildPartial() { - com.google.cloud.apigateway.v1.ListGatewaysResponse result = new com.google.cloud.apigateway.v1.ListGatewaysResponse(this); + com.google.cloud.apigateway.v1.ListGatewaysResponse result = + new com.google.cloud.apigateway.v1.ListGatewaysResponse(this); int from_bitField0_ = bitField0_; if (gatewaysBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -564,38 +617,39 @@ public com.google.cloud.apigateway.v1.ListGatewaysResponse 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.apigateway.v1.ListGatewaysResponse) { - return mergeFrom((com.google.cloud.apigateway.v1.ListGatewaysResponse)other); + return mergeFrom((com.google.cloud.apigateway.v1.ListGatewaysResponse) other); } else { super.mergeFrom(other); return this; @@ -603,7 +657,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.ListGatewaysResponse other) { - if (other == com.google.cloud.apigateway.v1.ListGatewaysResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.ListGatewaysResponse.getDefaultInstance()) + return this; if (gatewaysBuilder_ == null) { if (!other.gateways_.isEmpty()) { if (gateways_.isEmpty()) { @@ -622,9 +677,10 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.ListGatewaysResponse oth gatewaysBuilder_ = null; gateways_ = other.gateways_; bitField0_ = (bitField0_ & ~0x00000001); - gatewaysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGatewaysFieldBuilder() : null; + gatewaysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGatewaysFieldBuilder() + : null; } else { gatewaysBuilder_.addAllMessages(other.gateways_); } @@ -663,7 +719,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.apigateway.v1.ListGatewaysResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.apigateway.v1.ListGatewaysResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -672,21 +729,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List gateways_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureGatewaysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { gateways_ = new java.util.ArrayList(gateways_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder> gatewaysBuilder_; + com.google.cloud.apigateway.v1.Gateway, + com.google.cloud.apigateway.v1.Gateway.Builder, + com.google.cloud.apigateway.v1.GatewayOrBuilder> + gatewaysBuilder_; /** + * + * *
      * Gateways.
      * 
@@ -701,6 +765,8 @@ public java.util.List getGatewaysList() } } /** + * + * *
      * Gateways.
      * 
@@ -715,6 +781,8 @@ public int getGatewaysCount() { } } /** + * + * *
      * Gateways.
      * 
@@ -729,14 +797,15 @@ public com.google.cloud.apigateway.v1.Gateway getGateways(int index) { } } /** + * + * *
      * Gateways.
      * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - public Builder setGateways( - int index, com.google.cloud.apigateway.v1.Gateway value) { + public Builder setGateways(int index, com.google.cloud.apigateway.v1.Gateway value) { if (gatewaysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -750,6 +819,8 @@ public Builder setGateways( return this; } /** + * + * *
      * Gateways.
      * 
@@ -768,6 +839,8 @@ public Builder setGateways( return this; } /** + * + * *
      * Gateways.
      * 
@@ -788,14 +861,15 @@ public Builder addGateways(com.google.cloud.apigateway.v1.Gateway value) { return this; } /** + * + * *
      * Gateways.
      * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - public Builder addGateways( - int index, com.google.cloud.apigateway.v1.Gateway value) { + public Builder addGateways(int index, com.google.cloud.apigateway.v1.Gateway value) { if (gatewaysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,14 +883,15 @@ public Builder addGateways( return this; } /** + * + * *
      * Gateways.
      * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - public Builder addGateways( - com.google.cloud.apigateway.v1.Gateway.Builder builderForValue) { + public Builder addGateways(com.google.cloud.apigateway.v1.Gateway.Builder builderForValue) { if (gatewaysBuilder_ == null) { ensureGatewaysIsMutable(); gateways_.add(builderForValue.build()); @@ -827,6 +902,8 @@ public Builder addGateways( return this; } /** + * + * *
      * Gateways.
      * 
@@ -845,6 +922,8 @@ public Builder addGateways( return this; } /** + * + * *
      * Gateways.
      * 
@@ -855,8 +934,7 @@ public Builder addAllGateways( java.lang.Iterable values) { if (gatewaysBuilder_ == null) { ensureGatewaysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, gateways_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, gateways_); onChanged(); } else { gatewaysBuilder_.addAllMessages(values); @@ -864,6 +942,8 @@ public Builder addAllGateways( return this; } /** + * + * *
      * Gateways.
      * 
@@ -881,6 +961,8 @@ public Builder clearGateways() { return this; } /** + * + * *
      * Gateways.
      * 
@@ -898,39 +980,44 @@ public Builder removeGateways(int index) { return this; } /** + * + * *
      * Gateways.
      * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - public com.google.cloud.apigateway.v1.Gateway.Builder getGatewaysBuilder( - int index) { + public com.google.cloud.apigateway.v1.Gateway.Builder getGatewaysBuilder(int index) { return getGatewaysFieldBuilder().getBuilder(index); } /** + * + * *
      * Gateways.
      * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewaysOrBuilder( - int index) { + public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewaysOrBuilder(int index) { if (gatewaysBuilder_ == null) { - return gateways_.get(index); } else { + return gateways_.get(index); + } else { return gatewaysBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Gateways.
      * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - public java.util.List - getGatewaysOrBuilderList() { + public java.util.List + getGatewaysOrBuilderList() { if (gatewaysBuilder_ != null) { return gatewaysBuilder_.getMessageOrBuilderList(); } else { @@ -938,6 +1025,8 @@ public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewaysOrBuilder( } } /** + * + * *
      * Gateways.
      * 
@@ -945,42 +1034,47 @@ public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewaysOrBuilder( * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ public com.google.cloud.apigateway.v1.Gateway.Builder addGatewaysBuilder() { - return getGatewaysFieldBuilder().addBuilder( - com.google.cloud.apigateway.v1.Gateway.getDefaultInstance()); + return getGatewaysFieldBuilder() + .addBuilder(com.google.cloud.apigateway.v1.Gateway.getDefaultInstance()); } /** + * + * *
      * Gateways.
      * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - public com.google.cloud.apigateway.v1.Gateway.Builder addGatewaysBuilder( - int index) { - return getGatewaysFieldBuilder().addBuilder( - index, com.google.cloud.apigateway.v1.Gateway.getDefaultInstance()); + public com.google.cloud.apigateway.v1.Gateway.Builder addGatewaysBuilder(int index) { + return getGatewaysFieldBuilder() + .addBuilder(index, com.google.cloud.apigateway.v1.Gateway.getDefaultInstance()); } /** + * + * *
      * Gateways.
      * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - public java.util.List - getGatewaysBuilderList() { + public java.util.List getGatewaysBuilderList() { return getGatewaysFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder> + com.google.cloud.apigateway.v1.Gateway, + com.google.cloud.apigateway.v1.Gateway.Builder, + com.google.cloud.apigateway.v1.GatewayOrBuilder> getGatewaysFieldBuilder() { if (gatewaysBuilder_ == null) { - gatewaysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder>( - gateways_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + gatewaysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigateway.v1.Gateway, + com.google.cloud.apigateway.v1.Gateway.Builder, + com.google.cloud.apigateway.v1.GatewayOrBuilder>( + gateways_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); gateways_ = null; } return gatewaysBuilder_; @@ -988,18 +1082,20 @@ public com.google.cloud.apigateway.v1.Gateway.Builder addGatewaysBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Next page token.
      * 
* * 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; @@ -1008,20 +1104,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Next page token.
      * 
* * 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,95 +1126,112 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Next page token.
      * 
* * 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; } /** + * + * *
      * Next page token.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Next page token.
      * 
* * 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; } - private com.google.protobuf.LazyStringList unreachableLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachableLocations_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableLocationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachableLocations_ = new com.google.protobuf.LazyStringArrayList(unreachableLocations_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @return A list containing the unreachableLocations. */ - public com.google.protobuf.ProtocolStringList - getUnreachableLocationsList() { + public com.google.protobuf.ProtocolStringList getUnreachableLocationsList() { return unreachableLocations_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @return The count of unreachableLocations. */ public int getUnreachableLocationsCount() { return unreachableLocations_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ @@ -1125,80 +1239,90 @@ public java.lang.String getUnreachableLocations(int index) { return unreachableLocations_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - public com.google.protobuf.ByteString - getUnreachableLocationsBytes(int index) { + public com.google.protobuf.ByteString getUnreachableLocationsBytes(int index) { return unreachableLocations_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param index The index to set the value at. * @param value The unreachableLocations to set. * @return This builder for chaining. */ - public Builder setUnreachableLocations( - int index, java.lang.String value) { + public Builder setUnreachableLocations(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); unreachableLocations_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param value The unreachableLocations to add. * @return This builder for chaining. */ - public Builder addUnreachableLocations( - java.lang.String value) { + public Builder addUnreachableLocations(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableLocationsIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableLocationsIsMutable(); unreachableLocations_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param values The unreachableLocations to add. * @return This builder for chaining. */ - public Builder addAllUnreachableLocations( - java.lang.Iterable values) { + public Builder addAllUnreachableLocations(java.lang.Iterable values) { ensureUnreachableLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachableLocations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachableLocations_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @return This builder for chaining. */ public Builder clearUnreachableLocations() { @@ -1208,28 +1332,30 @@ public Builder clearUnreachableLocations() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable_locations = 3; + * * @param value The bytes of the unreachableLocations to add. * @return This builder for chaining. */ - public Builder addUnreachableLocationsBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableLocationsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableLocationsIsMutable(); unreachableLocations_.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); } @@ -1239,12 +1365,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.ListGatewaysResponse) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.ListGatewaysResponse) private static final com.google.cloud.apigateway.v1.ListGatewaysResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.ListGatewaysResponse(); } @@ -1253,16 +1379,16 @@ public static com.google.cloud.apigateway.v1.ListGatewaysResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGatewaysResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListGatewaysResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGatewaysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListGatewaysResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,6 +1403,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.ListGatewaysResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponseOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponseOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponseOrBuilder.java index 2cb0c3c..5ed40f6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponseOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/ListGatewaysResponseOrBuilder.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface ListGatewaysResponseOrBuilder extends +public interface ListGatewaysResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.ListGatewaysResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Gateways.
    * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - java.util.List - getGatewaysList(); + java.util.List getGatewaysList(); /** + * + * *
    * Gateways.
    * 
@@ -25,6 +44,8 @@ public interface ListGatewaysResponseOrBuilder extends */ com.google.cloud.apigateway.v1.Gateway getGateways(int index); /** + * + * *
    * Gateways.
    * 
@@ -33,82 +54,100 @@ public interface ListGatewaysResponseOrBuilder extends */ int getGatewaysCount(); /** + * + * *
    * Gateways.
    * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - java.util.List + java.util.List getGatewaysOrBuilderList(); /** + * + * *
    * Gateways.
    * 
* * repeated .google.cloud.apigateway.v1.Gateway gateways = 1; */ - com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewaysOrBuilder( - int index); + com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewaysOrBuilder(int index); /** + * + * *
    * Next page token.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Next page token.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @return A list containing the unreachableLocations. */ - java.util.List - getUnreachableLocationsList(); + java.util.List getUnreachableLocationsList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @return The count of unreachableLocations. */ int getUnreachableLocationsCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the element to return. * @return The unreachableLocations at the given index. */ java.lang.String getUnreachableLocations(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable_locations = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachableLocations at the given index. */ - com.google.protobuf.ByteString - getUnreachableLocationsBytes(int index); + com.google.protobuf.ByteString getUnreachableLocationsBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/LocationName.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/LocationName.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadata.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadata.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadata.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadata.java index deb1b8d..32df3f3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadata.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadata.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -29,16 +47,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,77 +75,90 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + target_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - statusMessage_ = s; - break; - } - case 48: { + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - requestedCancellation_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + statusMessage_ = s; + break; + } + case 48: + { + requestedCancellation_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - diagnostics_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + apiVersion_ = s; + break; } - diagnostics_.add( - input.readMessage(com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 66: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + diagnostics_ = + new java.util.ArrayList< + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic>(); + mutable_bitField0_ |= 0x00000001; + } + diagnostics_.add( + input.readMessage( + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -136,8 +166,7 @@ private OperationMetadata( } 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)) { diagnostics_ = java.util.Collections.unmodifiableList(diagnostics_); @@ -146,79 +175,96 @@ private OperationMetadata( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.OperationMetadata.class, com.google.cloud.apigateway.v1.OperationMetadata.Builder.class); + com.google.cloud.apigateway.v1.OperationMetadata.class, + com.google.cloud.apigateway.v1.OperationMetadata.Builder.class); } - public interface DiagnosticOrBuilder extends + public interface DiagnosticOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.OperationMetadata.Diagnostic) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Location of the diagnostic.
      * 
* * string location = 1; + * * @return The location. */ java.lang.String getLocation(); /** + * + * *
      * Location of the diagnostic.
      * 
* * string location = 1; + * * @return The bytes for location. */ - com.google.protobuf.ByteString - getLocationBytes(); + com.google.protobuf.ByteString getLocationBytes(); /** + * + * *
      * The diagnostic message.
      * 
* * string message = 2; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
      * The diagnostic message.
      * 
* * string message = 2; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); } /** + * + * *
    * Diagnostic information from configuration processing.
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.OperationMetadata.Diagnostic} */ - public static final class Diagnostic extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Diagnostic extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.OperationMetadata.Diagnostic) DiagnosticOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Diagnostic.newBuilder() to construct. private Diagnostic(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Diagnostic() { location_ = ""; message_ = ""; @@ -226,16 +272,15 @@ private Diagnostic() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Diagnostic(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Diagnostic( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -254,25 +299,27 @@ private Diagnostic( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - location_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + location_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + message_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -280,34 +327,39 @@ private Diagnostic( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.class, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder.class); + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.class, + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private volatile java.lang.Object location_; /** + * + * *
      * Location of the diagnostic.
      * 
* * string location = 1; + * * @return The location. */ @java.lang.Override @@ -316,29 +368,29 @@ public java.lang.String getLocation() { 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(); location_ = s; return s; } } /** + * + * *
      * Location of the diagnostic.
      * 
* * string location = 1; + * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; 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); location_ = b; return b; } else { @@ -349,11 +401,14 @@ public java.lang.String getLocation() { public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** + * + * *
      * The diagnostic message.
      * 
* * string message = 2; + * * @return The message. */ @java.lang.Override @@ -362,29 +417,29 @@ public java.lang.String getMessage() { 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(); message_ = s; return s; } } /** + * + * *
      * The diagnostic message.
      * 
* * string message = 2; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; 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); message_ = b; return b; } else { @@ -393,6 +448,7 @@ public java.lang.String getMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -404,8 +460,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(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -435,17 +490,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.apigateway.v1.OperationMetadata.Diagnostic)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic other = (com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic) obj; + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic other = + (com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic) obj; - if (!getLocation() - .equals(other.getLocation())) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -467,87 +521,94 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic 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.apigateway.v1.OperationMetadata.Diagnostic 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.apigateway.v1.OperationMetadata.Diagnostic parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic 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.apigateway.v1.OperationMetadata.Diagnostic parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic 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.apigateway.v1.OperationMetadata.Diagnostic parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic 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.apigateway.v1.OperationMetadata.Diagnostic parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic 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.apigateway.v1.OperationMetadata.Diagnostic 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.apigateway.v1.OperationMetadata.Diagnostic 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.apigateway.v1.OperationMetadata.Diagnostic prototype) { + + public static Builder newBuilder( + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic 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 @@ -557,27 +618,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Diagnostic information from configuration processing.
      * 
* * Protobuf type {@code google.cloud.apigateway.v1.OperationMetadata.Diagnostic} */ - 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.apigateway.v1.OperationMetadata.Diagnostic) com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.class, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder.class); + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.class, + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder.class); } // Construct using com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.newBuilder() @@ -585,16 +651,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(); @@ -606,13 +671,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_OperationMetadata_Diagnostic_descriptor; } @java.lang.Override - public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic getDefaultInstanceForType() { + public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic + getDefaultInstanceForType() { return com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.getDefaultInstance(); } @@ -627,7 +693,8 @@ public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic build() { @java.lang.Override public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic buildPartial() { - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic result = new com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic(this); + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic result = + new com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic(this); result.location_ = location_; result.message_ = message_; onBuilt(); @@ -638,38 +705,41 @@ public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic 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) { + 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.apigateway.v1.OperationMetadata.Diagnostic) { - return mergeFrom((com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic)other); + return mergeFrom((com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic) other); } else { super.mergeFrom(other); return this; @@ -677,7 +747,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic other) { - if (other == com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.getDefaultInstance()) return this; + if (other + == com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.getDefaultInstance()) + return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); @@ -705,7 +777,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -717,18 +791,20 @@ public Builder mergeFrom( private java.lang.Object location_ = ""; /** + * + * *
        * Location of the diagnostic.
        * 
* * string location = 1; + * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; 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(); location_ = s; return s; @@ -737,20 +813,21 @@ public java.lang.String getLocation() { } } /** + * + * *
        * Location of the diagnostic.
        * 
* * string location = 1; + * * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; 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); location_ = b; return b; } else { @@ -758,54 +835,61 @@ public java.lang.String getLocation() { } } /** + * + * *
        * Location of the diagnostic.
        * 
* * string location = 1; + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { + public Builder setLocation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** + * + * *
        * Location of the diagnostic.
        * 
* * string location = 1; + * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** + * + * *
        * Location of the diagnostic.
        * 
* * string location = 1; + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; @@ -813,18 +897,20 @@ public Builder setLocationBytes( private java.lang.Object message_ = ""; /** + * + * *
        * The diagnostic message.
        * 
* * string message = 2; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; 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(); message_ = s; return s; @@ -833,20 +919,21 @@ public java.lang.String getMessage() { } } /** + * + * *
        * The diagnostic message.
        * 
* * string message = 2; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; 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); message_ = b; return b; } else { @@ -854,58 +941,66 @@ public java.lang.String getMessage() { } } /** + * + * *
        * The diagnostic message.
        * 
* * string message = 2; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { + public Builder setMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
        * The diagnostic message.
        * 
* * string message = 2; + * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** + * + * *
        * The diagnostic message.
        * 
* * string message = 2; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -918,12 +1013,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.OperationMetadata.Diagnostic) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.OperationMetadata.Diagnostic) - private static final com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic DEFAULT_INSTANCE; + private static final com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic(); } @@ -932,16 +1028,16 @@ public static com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Diagnostic parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Diagnostic(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Diagnostic parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Diagnostic(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -956,17 +1052,20 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -974,11 +1073,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -986,11 +1089,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1000,11 +1106,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -1012,11 +1122,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -1024,11 +1138,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -1038,11 +1155,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -1051,29 +1171,29 @@ public java.lang.String getTarget() { 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(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; 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); target_ = b; return b; } else { @@ -1084,11 +1204,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -1097,29 +1220,29 @@ public java.lang.String getVerb() { 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(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; 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); verb_ = b; return b; } else { @@ -1130,11 +1253,14 @@ public java.lang.String getVerb() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -1143,29 +1269,29 @@ public java.lang.String getStatusMessage() { 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(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; 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); statusMessage_ = b; return b; } else { @@ -1176,6 +1302,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -1184,6 +1312,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1194,11 +1323,14 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -1207,29 +1339,29 @@ public java.lang.String getApiVersion() { 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(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; 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); apiVersion_ = b; return b; } else { @@ -1240,64 +1372,87 @@ public java.lang.String getApiVersion() { public static final int DIAGNOSTICS_FIELD_NUMBER = 8; private java.util.List diagnostics_; /** + * + * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getDiagnosticsList() { + public java.util.List + getDiagnosticsList() { return diagnostics_; } /** + * + * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder> getDiagnosticsOrBuilderList() { return diagnostics_; } /** + * + * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getDiagnosticsCount() { return diagnostics_.size(); } /** + * + * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic getDiagnostics(int index) { return diagnostics_.get(index); } /** + * + * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder getDiagnosticsOrBuilder( - int index) { + public com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder + getDiagnosticsOrBuilder(int index) { return diagnostics_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1309,8 +1464,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -1345,12 +1499,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -1362,15 +1514,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } for (int i = 0; i < diagnostics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, diagnostics_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, diagnostics_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1380,35 +1530,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigateway.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.OperationMetadata other = (com.google.cloud.apigateway.v1.OperationMetadata) obj; + com.google.cloud.apigateway.v1.OperationMetadata other = + (com.google.cloud.apigateway.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; - if (!getDiagnosticsList() - .equals(other.getDiagnosticsList())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getDiagnosticsList().equals(other.getDiagnosticsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1435,8 +1578,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); if (getDiagnosticsCount() > 0) { @@ -1448,118 +1590,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.OperationMetadata 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.apigateway.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.OperationMetadata 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.apigateway.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.OperationMetadata 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.apigateway.v1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.OperationMetadata 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.apigateway.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.OperationMetadata 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.apigateway.v1.OperationMetadata 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.apigateway.v1.OperationMetadata 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.apigateway.v1.OperationMetadata 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; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.OperationMetadata} */ - 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.apigateway.v1.OperationMetadata) com.google.cloud.apigateway.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.OperationMetadata.class, com.google.cloud.apigateway.v1.OperationMetadata.Builder.class); + com.google.cloud.apigateway.v1.OperationMetadata.class, + com.google.cloud.apigateway.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.apigateway.v1.OperationMetadata.newBuilder() @@ -1567,17 +1718,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) { getDiagnosticsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1613,9 +1764,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -1634,7 +1785,8 @@ public com.google.cloud.apigateway.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.apigateway.v1.OperationMetadata buildPartial() { - com.google.cloud.apigateway.v1.OperationMetadata result = new com.google.cloud.apigateway.v1.OperationMetadata(this); + com.google.cloud.apigateway.v1.OperationMetadata result = + new com.google.cloud.apigateway.v1.OperationMetadata(this); int from_bitField0_ = bitField0_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; @@ -1668,38 +1820,39 @@ public com.google.cloud.apigateway.v1.OperationMetadata 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.apigateway.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.apigateway.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.apigateway.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -1707,7 +1860,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.OperationMetadata other) { - if (other == com.google.cloud.apigateway.v1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1751,9 +1905,10 @@ public Builder mergeFrom(com.google.cloud.apigateway.v1.OperationMetadata other) diagnosticsBuilder_ = null; diagnostics_ = other.diagnostics_; bitField0_ = (bitField0_ & ~0x00000001); - diagnosticsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDiagnosticsFieldBuilder() : null; + diagnosticsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDiagnosticsFieldBuilder() + : null; } else { diagnosticsBuilder_.addAllMessages(other.diagnostics_); } @@ -1787,43 +1942,63 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1839,14 +2014,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1857,17 +2035,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1879,11 +2061,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1897,48 +2083,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1946,24 +2148,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1974,11 +2187,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1994,14 +2210,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -2012,17 +2230,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -2034,11 +2255,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -2052,48 +2276,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -2101,18 +2336,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; 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(); target_ = s; return s; @@ -2121,20 +2358,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; 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); target_ = b; return b; } else { @@ -2142,54 +2380,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -2197,18 +2442,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; 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(); verb_ = s; return s; @@ -2217,20 +2464,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; 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); verb_ = b; return b; } else { @@ -2238,54 +2486,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -2293,18 +2548,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; 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(); statusMessage_ = s; return s; @@ -2313,20 +2570,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; 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); statusMessage_ = b; return b; } else { @@ -2334,61 +2592,70 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { + public Builder setStatusMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -2397,6 +2664,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -2404,6 +2672,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -2412,16 +2682,19 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -2430,10 +2703,11 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -2441,18 +2715,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; 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(); apiVersion_ = s; return s; @@ -2461,20 +2737,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; 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); apiVersion_ = b; return b; } else { @@ -2482,79 +2759,97 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - private java.util.List diagnostics_ = - java.util.Collections.emptyList(); + private java.util.List + diagnostics_ = java.util.Collections.emptyList(); + private void ensureDiagnosticsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - diagnostics_ = new java.util.ArrayList(diagnostics_); + diagnostics_ = + new java.util.ArrayList( + diagnostics_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder, com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder> diagnosticsBuilder_; + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic, + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder, + com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder> + diagnosticsBuilder_; /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getDiagnosticsList() { + public java.util.List + getDiagnosticsList() { if (diagnosticsBuilder_ == null) { return java.util.Collections.unmodifiableList(diagnostics_); } else { @@ -2562,11 +2857,15 @@ public java.util.List * Output only. Diagnostics generated during processing of configuration source files. *
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getDiagnosticsCount() { if (diagnosticsBuilder_ == null) { @@ -2576,11 +2875,15 @@ public int getDiagnosticsCount() { } } /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic getDiagnostics(int index) { if (diagnosticsBuilder_ == null) { @@ -2590,11 +2893,15 @@ public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic getDiagnostic } } /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDiagnostics( int index, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic value) { @@ -2611,14 +2918,19 @@ public Builder setDiagnostics( return this; } /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDiagnostics( - int index, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder builderForValue) { + int index, + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder builderForValue) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.set(index, builderForValue.build()); @@ -2629,13 +2941,18 @@ public Builder setDiagnostics( return this; } /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addDiagnostics(com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic value) { + public Builder addDiagnostics( + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic value) { if (diagnosticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2649,11 +2966,15 @@ public Builder addDiagnostics(com.google.cloud.apigateway.v1.OperationMetadata.D return this; } /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addDiagnostics( int index, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic value) { @@ -2670,11 +2991,15 @@ public Builder addDiagnostics( return this; } /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addDiagnostics( com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder builderForValue) { @@ -2688,14 +3013,19 @@ public Builder addDiagnostics( return this; } /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addDiagnostics( - int index, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder builderForValue) { + int index, + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder builderForValue) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); diagnostics_.add(index, builderForValue.build()); @@ -2706,18 +3036,22 @@ public Builder addDiagnostics( return this; } /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllDiagnostics( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (diagnosticsBuilder_ == null) { ensureDiagnosticsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, diagnostics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, diagnostics_); onChanged(); } else { diagnosticsBuilder_.addAllMessages(values); @@ -2725,11 +3059,15 @@ public Builder addAllDiagnostics( return this; } /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDiagnostics() { if (diagnosticsBuilder_ == null) { @@ -2742,11 +3080,15 @@ public Builder clearDiagnostics() { return this; } /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeDiagnostics(int index) { if (diagnosticsBuilder_ == null) { @@ -2759,39 +3101,53 @@ public Builder removeDiagnostics(int index) { return this; } /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder getDiagnosticsBuilder( - int index) { + public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder + getDiagnosticsBuilder(int index) { return getDiagnosticsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder getDiagnosticsOrBuilder( - int index) { + public com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder + getDiagnosticsOrBuilder(int index) { if (diagnosticsBuilder_ == null) { - return diagnostics_.get(index); } else { + return diagnostics_.get(index); + } else { return diagnosticsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getDiagnosticsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder> + getDiagnosticsOrBuilderList() { if (diagnosticsBuilder_ != null) { return diagnosticsBuilder_.getMessageOrBuilderList(); } else { @@ -2799,56 +3155,75 @@ public com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder getD } } /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder addDiagnosticsBuilder() { - return getDiagnosticsFieldBuilder().addBuilder( - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.getDefaultInstance()); + public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder + addDiagnosticsBuilder() { + return getDiagnosticsFieldBuilder() + .addBuilder( + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.getDefaultInstance()); } /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder addDiagnosticsBuilder( - int index) { - return getDiagnosticsFieldBuilder().addBuilder( - index, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.getDefaultInstance()); + public com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder + addDiagnosticsBuilder(int index) { + return getDiagnosticsFieldBuilder() + .addBuilder( + index, + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.getDefaultInstance()); } /** + * + * *
      * Output only. Diagnostics generated during processing of configuration source files.
      * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getDiagnosticsBuilderList() { + public java.util.List + getDiagnosticsBuilderList() { return getDiagnosticsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder, com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder> + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic, + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder, + com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder> getDiagnosticsFieldBuilder() { if (diagnosticsBuilder_ == null) { - diagnosticsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic, com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder, com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder>( - diagnostics_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + diagnosticsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic, + com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic.Builder, + com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder>( + diagnostics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); diagnostics_ = null; } return diagnosticsBuilder_; } + @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); } @@ -2858,12 +3233,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.OperationMetadata) private static final com.google.cloud.apigateway.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.OperationMetadata(); } @@ -2872,16 +3247,16 @@ public static com.google.cloud.apigateway.v1.OperationMetadata getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2896,6 +3271,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadataOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadataOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadataOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadataOrBuilder.java index 46aad14..22b03c1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * 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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,70 +185,95 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); /** + * + * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getDiagnosticsList(); + java.util.List getDiagnosticsList(); /** + * + * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.apigateway.v1.OperationMetadata.Diagnostic getDiagnostics(int index); /** + * + * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getDiagnosticsCount(); /** + * + * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getDiagnosticsOrBuilderList(); /** + * + * *
    * Output only. Diagnostics generated during processing of configuration source files.
    * 
* - * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.apigateway.v1.OperationMetadata.Diagnostic diagnostics = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.apigateway.v1.OperationMetadata.DiagnosticOrBuilder getDiagnosticsOrBuilder( int index); diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequest.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequest.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequest.java index 4ed5274..00e4f6f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequest.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Request message for ApiGatewayService.UpdateApiConfig
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.UpdateApiConfigRequest} */ -public final class UpdateApiConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateApiConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.UpdateApiConfigRequest) UpdateApiConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateApiConfigRequest.newBuilder() to construct. private UpdateApiConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateApiConfigRequest() { - } + + private UpdateApiConfigRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateApiConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateApiConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateApiConfigRequest( case 0: done = true; break; - case 10: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.apigateway.v1.ApiConfig.Builder subBuilder = null; - if (apiConfig_ != null) { - subBuilder = apiConfig_.toBuilder(); - } - apiConfig_ = input.readMessage(com.google.cloud.apigateway.v1.ApiConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(apiConfig_); - apiConfig_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.apigateway.v1.ApiConfig.Builder subBuilder = null; + if (apiConfig_ != null) { + subBuilder = apiConfig_.toBuilder(); + } + apiConfig_ = + input.readMessage( + com.google.cloud.apigateway.v1.ApiConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(apiConfig_); + apiConfig_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +113,33 @@ private UpdateApiConfigRequest( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.UpdateApiConfigRequest.class, com.google.cloud.apigateway.v1.UpdateApiConfigRequest.Builder.class); + com.google.cloud.apigateway.v1.UpdateApiConfigRequest.class, + com.google.cloud.apigateway.v1.UpdateApiConfigRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * ApiConfig resource by the update.
@@ -124,6 +149,7 @@ private UpdateApiConfigRequest(
    * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -131,6 +157,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * ApiConfig resource by the update.
@@ -140,6 +168,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return The updateMask. */ @java.lang.Override @@ -147,6 +176,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * ApiConfig resource by the update.
@@ -165,11 +196,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int API_CONFIG_FIELD_NUMBER = 2;
   private com.google.cloud.apigateway.v1.ApiConfig apiConfig_;
   /**
+   *
+   *
    * 
    * Required. API Config resource.
    * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the apiConfig field is set. */ @java.lang.Override @@ -177,23 +213,34 @@ public boolean hasApiConfig() { return apiConfig_ != null; } /** + * + * *
    * Required. API Config resource.
    * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The apiConfig. */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfig getApiConfig() { - return apiConfig_ == null ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() : apiConfig_; + return apiConfig_ == null + ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() + : apiConfig_; } /** + * + * *
    * Required. API Config resource.
    * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigOrBuilder() { @@ -201,6 +248,7 @@ public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,8 +260,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 (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -230,12 +277,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (apiConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getApiConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getApiConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -245,22 +290,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigateway.v1.UpdateApiConfigRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.UpdateApiConfigRequest other = (com.google.cloud.apigateway.v1.UpdateApiConfigRequest) obj; + com.google.cloud.apigateway.v1.UpdateApiConfigRequest other = + (com.google.cloud.apigateway.v1.UpdateApiConfigRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasApiConfig() != other.hasApiConfig()) return false; if (hasApiConfig()) { - if (!getApiConfig() - .equals(other.getApiConfig())) return false; + if (!getApiConfig().equals(other.getApiConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -287,117 +331,127 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.UpdateApiConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.UpdateApiConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.apigateway.v1.UpdateApiConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ApiGatewayService.UpdateApiConfig
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.UpdateApiConfigRequest} */ - 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.apigateway.v1.UpdateApiConfigRequest) com.google.cloud.apigateway.v1.UpdateApiConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.UpdateApiConfigRequest.class, com.google.cloud.apigateway.v1.UpdateApiConfigRequest.Builder.class); + com.google.cloud.apigateway.v1.UpdateApiConfigRequest.class, + com.google.cloud.apigateway.v1.UpdateApiConfigRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.UpdateApiConfigRequest.newBuilder() @@ -405,16 +459,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(); @@ -434,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_UpdateApiConfigRequest_descriptor; } @java.lang.Override @@ -455,7 +508,8 @@ public com.google.cloud.apigateway.v1.UpdateApiConfigRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.UpdateApiConfigRequest buildPartial() { - com.google.cloud.apigateway.v1.UpdateApiConfigRequest result = new com.google.cloud.apigateway.v1.UpdateApiConfigRequest(this); + com.google.cloud.apigateway.v1.UpdateApiConfigRequest result = + new com.google.cloud.apigateway.v1.UpdateApiConfigRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -474,38 +528,39 @@ public com.google.cloud.apigateway.v1.UpdateApiConfigRequest 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.apigateway.v1.UpdateApiConfigRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.UpdateApiConfigRequest)other); + return mergeFrom((com.google.cloud.apigateway.v1.UpdateApiConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -513,7 +568,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.UpdateApiConfigRequest other) { - if (other == com.google.cloud.apigateway.v1.UpdateApiConfigRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.UpdateApiConfigRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -539,7 +595,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.apigateway.v1.UpdateApiConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.apigateway.v1.UpdateApiConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -551,8 +608,13 @@ public Builder mergeFrom( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -562,12 +624,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -577,16 +642,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -611,6 +681,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -621,8 +693,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 1;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -633,6 +704,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -647,7 +720,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -659,6 +732,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -681,6 +756,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -692,11 +769,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -711,11 +790,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * ApiConfig resource by the update.
@@ -727,14 +809,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
@@ -742,39 +827,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.cloud.apigateway.v1.ApiConfig apiConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder> apiConfigBuilder_;
+            com.google.cloud.apigateway.v1.ApiConfig,
+            com.google.cloud.apigateway.v1.ApiConfig.Builder,
+            com.google.cloud.apigateway.v1.ApiConfigOrBuilder>
+        apiConfigBuilder_;
     /**
+     *
+     *
      * 
      * Required. API Config resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the apiConfig field is set. */ public boolean hasApiConfig() { return apiConfigBuilder_ != null || apiConfig_ != null; } /** + * + * *
      * Required. API Config resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The apiConfig. */ public com.google.cloud.apigateway.v1.ApiConfig getApiConfig() { if (apiConfigBuilder_ == null) { - return apiConfig_ == null ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() : apiConfig_; + return apiConfig_ == null + ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() + : apiConfig_; } else { return apiConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. API Config resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setApiConfig(com.google.cloud.apigateway.v1.ApiConfig value) { if (apiConfigBuilder_ == null) { @@ -790,14 +894,17 @@ public Builder setApiConfig(com.google.cloud.apigateway.v1.ApiConfig value) { return this; } /** + * + * *
      * Required. API Config resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setApiConfig( - com.google.cloud.apigateway.v1.ApiConfig.Builder builderForValue) { + public Builder setApiConfig(com.google.cloud.apigateway.v1.ApiConfig.Builder builderForValue) { if (apiConfigBuilder_ == null) { apiConfig_ = builderForValue.build(); onChanged(); @@ -808,17 +915,23 @@ public Builder setApiConfig( return this; } /** + * + * *
      * Required. API Config resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeApiConfig(com.google.cloud.apigateway.v1.ApiConfig value) { if (apiConfigBuilder_ == null) { if (apiConfig_ != null) { apiConfig_ = - com.google.cloud.apigateway.v1.ApiConfig.newBuilder(apiConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.apigateway.v1.ApiConfig.newBuilder(apiConfig_) + .mergeFrom(value) + .buildPartial(); } else { apiConfig_ = value; } @@ -830,11 +943,15 @@ public Builder mergeApiConfig(com.google.cloud.apigateway.v1.ApiConfig value) { return this; } /** + * + * *
      * Required. API Config resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearApiConfig() { if (apiConfigBuilder_ == null) { @@ -848,55 +965,71 @@ public Builder clearApiConfig() { return this; } /** + * + * *
      * Required. API Config resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.apigateway.v1.ApiConfig.Builder getApiConfigBuilder() { - + onChanged(); return getApiConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. API Config resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigOrBuilder() { if (apiConfigBuilder_ != null) { return apiConfigBuilder_.getMessageOrBuilder(); } else { - return apiConfig_ == null ? - com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() : apiConfig_; + return apiConfig_ == null + ? com.google.cloud.apigateway.v1.ApiConfig.getDefaultInstance() + : apiConfig_; } } /** + * + * *
      * Required. API Config resource.
      * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder> + com.google.cloud.apigateway.v1.ApiConfig, + com.google.cloud.apigateway.v1.ApiConfig.Builder, + com.google.cloud.apigateway.v1.ApiConfigOrBuilder> getApiConfigFieldBuilder() { if (apiConfigBuilder_ == null) { - apiConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.ApiConfig, com.google.cloud.apigateway.v1.ApiConfig.Builder, com.google.cloud.apigateway.v1.ApiConfigOrBuilder>( - getApiConfig(), - getParentForChildren(), - isClean()); + apiConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigateway.v1.ApiConfig, + com.google.cloud.apigateway.v1.ApiConfig.Builder, + com.google.cloud.apigateway.v1.ApiConfigOrBuilder>( + getApiConfig(), getParentForChildren(), isClean()); apiConfig_ = null; } return apiConfigBuilder_; } + @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); } @@ -906,12 +1039,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.UpdateApiConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.UpdateApiConfigRequest) private static final com.google.cloud.apigateway.v1.UpdateApiConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.UpdateApiConfigRequest(); } @@ -920,16 +1053,16 @@ public static com.google.cloud.apigateway.v1.UpdateApiConfigRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateApiConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateApiConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateApiConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateApiConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -944,6 +1077,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.UpdateApiConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequestOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequestOrBuilder.java index 8d2be20..f9d8b80 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequestOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiConfigRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface UpdateApiConfigRequestOrBuilder extends +public interface UpdateApiConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.UpdateApiConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * ApiConfig resource by the update.
@@ -17,10 +35,13 @@ public interface UpdateApiConfigRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * ApiConfig resource by the update.
@@ -30,10 +51,13 @@ public interface UpdateApiConfigRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * ApiConfig resource by the update.
@@ -47,29 +71,43 @@ public interface UpdateApiConfigRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. API Config resource.
    * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the apiConfig field is set. */ boolean hasApiConfig(); /** + * + * *
    * Required. API Config resource.
    * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The apiConfig. */ com.google.cloud.apigateway.v1.ApiConfig getApiConfig(); /** + * + * *
    * Required. API Config resource.
    * 
* - * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.ApiConfig api_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.apigateway.v1.ApiConfigOrBuilder getApiConfigOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequest.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequest.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequest.java index 2d6a4d9..84a0c55 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequest.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Request message for ApiGatewayService.UpdateApi
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.UpdateApiRequest} */ -public final class UpdateApiRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateApiRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.UpdateApiRequest) UpdateApiRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateApiRequest.newBuilder() to construct. private UpdateApiRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateApiRequest() { - } + + private UpdateApiRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateApiRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateApiRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,43 @@ private UpdateApiRequest( case 0: done = true; break; - case 10: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.apigateway.v1.Api.Builder subBuilder = null; - if (api_ != null) { - subBuilder = api_.toBuilder(); - } - api_ = input.readMessage(com.google.cloud.apigateway.v1.Api.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(api_); - api_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.apigateway.v1.Api.Builder subBuilder = null; + if (api_ != null) { + subBuilder = api_.toBuilder(); + } + api_ = + input.readMessage(com.google.cloud.apigateway.v1.Api.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(api_); + api_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +112,33 @@ private UpdateApiRequest( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_UpdateApiRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.UpdateApiRequest.class, com.google.cloud.apigateway.v1.UpdateApiRequest.Builder.class); + com.google.cloud.apigateway.v1.UpdateApiRequest.class, + com.google.cloud.apigateway.v1.UpdateApiRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * Api resource by the update.
@@ -124,6 +148,7 @@ private UpdateApiRequest(
    * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -131,6 +156,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * Api resource by the update.
@@ -140,6 +167,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return The updateMask. */ @java.lang.Override @@ -147,6 +175,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * Api resource by the update.
@@ -165,11 +195,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int API_FIELD_NUMBER = 2;
   private com.google.cloud.apigateway.v1.Api api_;
   /**
+   *
+   *
    * 
    * Required. API resource.
    * 
* * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the api field is set. */ @java.lang.Override @@ -177,11 +210,14 @@ public boolean hasApi() { return api_ != null; } /** + * + * *
    * Required. API resource.
    * 
* * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The api. */ @java.lang.Override @@ -189,6 +225,8 @@ public com.google.cloud.apigateway.v1.Api getApi() { return api_ == null ? com.google.cloud.apigateway.v1.Api.getDefaultInstance() : api_; } /** + * + * *
    * Required. API resource.
    * 
@@ -201,6 +239,7 @@ public com.google.cloud.apigateway.v1.ApiOrBuilder getApiOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,8 +251,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 (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -230,12 +268,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (api_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getApi()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getApi()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -245,22 +281,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigateway.v1.UpdateApiRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.UpdateApiRequest other = (com.google.cloud.apigateway.v1.UpdateApiRequest) obj; + com.google.cloud.apigateway.v1.UpdateApiRequest other = + (com.google.cloud.apigateway.v1.UpdateApiRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasApi() != other.hasApi()) return false; if (hasApi()) { - if (!getApi() - .equals(other.getApi())) return false; + if (!getApi().equals(other.getApi())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -286,118 +321,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigateway.v1.UpdateApiRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigateway.v1.UpdateApiRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.UpdateApiRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ApiGatewayService.UpdateApi
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.UpdateApiRequest} */ - 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.apigateway.v1.UpdateApiRequest) com.google.cloud.apigateway.v1.UpdateApiRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_UpdateApiRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.UpdateApiRequest.class, com.google.cloud.apigateway.v1.UpdateApiRequest.Builder.class); + com.google.cloud.apigateway.v1.UpdateApiRequest.class, + com.google.cloud.apigateway.v1.UpdateApiRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.UpdateApiRequest.newBuilder() @@ -405,16 +449,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(); @@ -434,9 +477,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_UpdateApiRequest_descriptor; } @java.lang.Override @@ -455,7 +498,8 @@ public com.google.cloud.apigateway.v1.UpdateApiRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.UpdateApiRequest buildPartial() { - com.google.cloud.apigateway.v1.UpdateApiRequest result = new com.google.cloud.apigateway.v1.UpdateApiRequest(this); + com.google.cloud.apigateway.v1.UpdateApiRequest result = + new com.google.cloud.apigateway.v1.UpdateApiRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -474,38 +518,39 @@ public com.google.cloud.apigateway.v1.UpdateApiRequest 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.apigateway.v1.UpdateApiRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.UpdateApiRequest)other); + return mergeFrom((com.google.cloud.apigateway.v1.UpdateApiRequest) other); } else { super.mergeFrom(other); return this; @@ -513,7 +558,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.UpdateApiRequest other) { - if (other == com.google.cloud.apigateway.v1.UpdateApiRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.UpdateApiRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -551,8 +597,13 @@ public Builder mergeFrom( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -562,12 +613,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -577,16 +631,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -611,6 +670,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -621,8 +682,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 1;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -633,6 +693,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -647,7 +709,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -659,6 +721,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -681,6 +745,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -692,11 +758,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -711,11 +779,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Api resource by the update.
@@ -727,14 +798,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
@@ -742,24 +816,35 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.cloud.apigateway.v1.Api api_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder> apiBuilder_;
+            com.google.cloud.apigateway.v1.Api,
+            com.google.cloud.apigateway.v1.Api.Builder,
+            com.google.cloud.apigateway.v1.ApiOrBuilder>
+        apiBuilder_;
     /**
+     *
+     *
      * 
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the api field is set. */ public boolean hasApi() { return apiBuilder_ != null || api_ != null; } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The api. */ public com.google.cloud.apigateway.v1.Api getApi() { @@ -770,11 +855,14 @@ public com.google.cloud.apigateway.v1.Api getApi() { } } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setApi(com.google.cloud.apigateway.v1.Api value) { if (apiBuilder_ == null) { @@ -790,14 +878,16 @@ public Builder setApi(com.google.cloud.apigateway.v1.Api value) { return this; } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setApi( - com.google.cloud.apigateway.v1.Api.Builder builderForValue) { + public Builder setApi(com.google.cloud.apigateway.v1.Api.Builder builderForValue) { if (apiBuilder_ == null) { api_ = builderForValue.build(); onChanged(); @@ -808,17 +898,20 @@ public Builder setApi( return this; } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeApi(com.google.cloud.apigateway.v1.Api value) { if (apiBuilder_ == null) { if (api_ != null) { api_ = - com.google.cloud.apigateway.v1.Api.newBuilder(api_).mergeFrom(value).buildPartial(); + com.google.cloud.apigateway.v1.Api.newBuilder(api_).mergeFrom(value).buildPartial(); } else { api_ = value; } @@ -830,11 +923,14 @@ public Builder mergeApi(com.google.cloud.apigateway.v1.Api value) { return this; } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearApi() { if (apiBuilder_ == null) { @@ -848,55 +944,66 @@ public Builder clearApi() { return this; } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.apigateway.v1.Api.Builder getApiBuilder() { - + onChanged(); return getApiFieldBuilder().getBuilder(); } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.apigateway.v1.ApiOrBuilder getApiOrBuilder() { if (apiBuilder_ != null) { return apiBuilder_.getMessageOrBuilder(); } else { - return api_ == null ? - com.google.cloud.apigateway.v1.Api.getDefaultInstance() : api_; + return api_ == null ? com.google.cloud.apigateway.v1.Api.getDefaultInstance() : api_; } } /** + * + * *
      * Required. API resource.
      * 
* - * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder> + com.google.cloud.apigateway.v1.Api, + com.google.cloud.apigateway.v1.Api.Builder, + com.google.cloud.apigateway.v1.ApiOrBuilder> getApiFieldBuilder() { if (apiBuilder_ == null) { - apiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Api, com.google.cloud.apigateway.v1.Api.Builder, com.google.cloud.apigateway.v1.ApiOrBuilder>( - getApi(), - getParentForChildren(), - isClean()); + apiBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigateway.v1.Api, + com.google.cloud.apigateway.v1.Api.Builder, + com.google.cloud.apigateway.v1.ApiOrBuilder>( + getApi(), getParentForChildren(), isClean()); api_ = null; } return apiBuilder_; } + @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); } @@ -906,12 +1013,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.UpdateApiRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.UpdateApiRequest) private static final com.google.cloud.apigateway.v1.UpdateApiRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.UpdateApiRequest(); } @@ -920,16 +1027,16 @@ public static com.google.cloud.apigateway.v1.UpdateApiRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateApiRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateApiRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateApiRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateApiRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -944,6 +1051,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.UpdateApiRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequestOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequestOrBuilder.java index 1e072c3..c922207 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequestOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateApiRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface UpdateApiRequestOrBuilder extends +public interface UpdateApiRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.UpdateApiRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * Api resource by the update.
@@ -17,10 +35,13 @@ public interface UpdateApiRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * Api resource by the update.
@@ -30,10 +51,13 @@ public interface UpdateApiRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * Api resource by the update.
@@ -47,24 +71,32 @@ public interface UpdateApiRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. API resource.
    * 
* * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the api field is set. */ boolean hasApi(); /** + * + * *
    * Required. API resource.
    * 
* * .google.cloud.apigateway.v1.Api api = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The api. */ com.google.cloud.apigateway.v1.Api getApi(); /** + * + * *
    * Required. API resource.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequest.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequest.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequest.java index edcdd11..8d072d9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequest.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequest.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/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; /** + * + * *
  * Request message for ApiGatewayService.UpdateGateway
  * 
* * Protobuf type {@code google.cloud.apigateway.v1.UpdateGatewayRequest} */ -public final class UpdateGatewayRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateGatewayRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigateway.v1.UpdateGatewayRequest) UpdateGatewayRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateGatewayRequest.newBuilder() to construct. private UpdateGatewayRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateGatewayRequest() { - } + + private UpdateGatewayRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateGatewayRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateGatewayRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateGatewayRequest( case 0: done = true; break; - case 10: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.apigateway.v1.Gateway.Builder subBuilder = null; - if (gateway_ != null) { - subBuilder = gateway_.toBuilder(); - } - gateway_ = input.readMessage(com.google.cloud.apigateway.v1.Gateway.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gateway_); - gateway_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.apigateway.v1.Gateway.Builder subBuilder = null; + if (gateway_ != null) { + subBuilder = gateway_.toBuilder(); + } + gateway_ = + input.readMessage( + com.google.cloud.apigateway.v1.Gateway.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gateway_); + gateway_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +113,33 @@ private UpdateGatewayRequest( } 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.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.UpdateGatewayRequest.class, com.google.cloud.apigateway.v1.UpdateGatewayRequest.Builder.class); + com.google.cloud.apigateway.v1.UpdateGatewayRequest.class, + com.google.cloud.apigateway.v1.UpdateGatewayRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * Gateway resource by the update.
@@ -124,6 +149,7 @@ private UpdateGatewayRequest(
    * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -131,6 +157,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * Gateway resource by the update.
@@ -140,6 +168,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return The updateMask. */ @java.lang.Override @@ -147,6 +176,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * Gateway resource by the update.
@@ -165,11 +196,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int GATEWAY_FIELD_NUMBER = 2;
   private com.google.cloud.apigateway.v1.Gateway gateway_;
   /**
+   *
+   *
    * 
    * Required. Gateway resource.
    * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gateway field is set. */ @java.lang.Override @@ -177,23 +213,34 @@ public boolean hasGateway() { return gateway_ != null; } /** + * + * *
    * Required. Gateway resource.
    * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gateway. */ @java.lang.Override public com.google.cloud.apigateway.v1.Gateway getGateway() { - return gateway_ == null ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() : gateway_; + return gateway_ == null + ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() + : gateway_; } /** + * + * *
    * Required. Gateway resource.
    * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewayOrBuilder() { @@ -201,6 +248,7 @@ public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewayOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,8 +260,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 (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -230,12 +277,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (gateway_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGateway()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGateway()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -245,22 +290,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigateway.v1.UpdateGatewayRequest)) { return super.equals(obj); } - com.google.cloud.apigateway.v1.UpdateGatewayRequest other = (com.google.cloud.apigateway.v1.UpdateGatewayRequest) obj; + com.google.cloud.apigateway.v1.UpdateGatewayRequest other = + (com.google.cloud.apigateway.v1.UpdateGatewayRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasGateway() != other.hasGateway()) return false; if (hasGateway()) { - if (!getGateway() - .equals(other.getGateway())) return false; + if (!getGateway().equals(other.getGateway())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -287,117 +331,126 @@ public int hashCode() { } public static com.google.cloud.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.UpdateGatewayRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigateway.v1.UpdateGatewayRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for ApiGatewayService.UpdateGateway
    * 
* * Protobuf type {@code google.cloud.apigateway.v1.UpdateGatewayRequest} */ - 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.apigateway.v1.UpdateGatewayRequest) com.google.cloud.apigateway.v1.UpdateGatewayRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_fieldAccessorTable + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigateway.v1.UpdateGatewayRequest.class, com.google.cloud.apigateway.v1.UpdateGatewayRequest.Builder.class); + com.google.cloud.apigateway.v1.UpdateGatewayRequest.class, + com.google.cloud.apigateway.v1.UpdateGatewayRequest.Builder.class); } // Construct using com.google.cloud.apigateway.v1.UpdateGatewayRequest.newBuilder() @@ -405,16 +458,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(); @@ -434,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigateway.v1.Apigateway.internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigateway.v1.Apigateway + .internal_static_google_cloud_apigateway_v1_UpdateGatewayRequest_descriptor; } @java.lang.Override @@ -455,7 +507,8 @@ public com.google.cloud.apigateway.v1.UpdateGatewayRequest build() { @java.lang.Override public com.google.cloud.apigateway.v1.UpdateGatewayRequest buildPartial() { - com.google.cloud.apigateway.v1.UpdateGatewayRequest result = new com.google.cloud.apigateway.v1.UpdateGatewayRequest(this); + com.google.cloud.apigateway.v1.UpdateGatewayRequest result = + new com.google.cloud.apigateway.v1.UpdateGatewayRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -474,38 +527,39 @@ public com.google.cloud.apigateway.v1.UpdateGatewayRequest 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.apigateway.v1.UpdateGatewayRequest) { - return mergeFrom((com.google.cloud.apigateway.v1.UpdateGatewayRequest)other); + return mergeFrom((com.google.cloud.apigateway.v1.UpdateGatewayRequest) other); } else { super.mergeFrom(other); return this; @@ -513,7 +567,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigateway.v1.UpdateGatewayRequest other) { - if (other == com.google.cloud.apigateway.v1.UpdateGatewayRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.apigateway.v1.UpdateGatewayRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -539,7 +594,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.apigateway.v1.UpdateGatewayRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.apigateway.v1.UpdateGatewayRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -551,8 +607,13 @@ public Builder mergeFrom( private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -562,12 +623,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -577,16 +641,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -611,6 +680,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -621,8 +692,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 1;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -633,6 +703,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -647,7 +719,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -659,6 +731,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -681,6 +755,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -692,11 +768,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -711,11 +789,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * Field mask is used to specify the fields to be overwritten in the
      * Gateway resource by the update.
@@ -727,14 +808,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
@@ -742,39 +826,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
 
     private com.google.cloud.apigateway.v1.Gateway gateway_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder> gatewayBuilder_;
+            com.google.cloud.apigateway.v1.Gateway,
+            com.google.cloud.apigateway.v1.Gateway.Builder,
+            com.google.cloud.apigateway.v1.GatewayOrBuilder>
+        gatewayBuilder_;
     /**
+     *
+     *
      * 
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gateway field is set. */ public boolean hasGateway() { return gatewayBuilder_ != null || gateway_ != null; } /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gateway. */ public com.google.cloud.apigateway.v1.Gateway getGateway() { if (gatewayBuilder_ == null) { - return gateway_ == null ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() : gateway_; + return gateway_ == null + ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() + : gateway_; } else { return gatewayBuilder_.getMessage(); } } /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setGateway(com.google.cloud.apigateway.v1.Gateway value) { if (gatewayBuilder_ == null) { @@ -790,14 +893,17 @@ public Builder setGateway(com.google.cloud.apigateway.v1.Gateway value) { return this; } /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setGateway( - com.google.cloud.apigateway.v1.Gateway.Builder builderForValue) { + public Builder setGateway(com.google.cloud.apigateway.v1.Gateway.Builder builderForValue) { if (gatewayBuilder_ == null) { gateway_ = builderForValue.build(); onChanged(); @@ -808,17 +914,23 @@ public Builder setGateway( return this; } /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeGateway(com.google.cloud.apigateway.v1.Gateway value) { if (gatewayBuilder_ == null) { if (gateway_ != null) { gateway_ = - com.google.cloud.apigateway.v1.Gateway.newBuilder(gateway_).mergeFrom(value).buildPartial(); + com.google.cloud.apigateway.v1.Gateway.newBuilder(gateway_) + .mergeFrom(value) + .buildPartial(); } else { gateway_ = value; } @@ -830,11 +942,15 @@ public Builder mergeGateway(com.google.cloud.apigateway.v1.Gateway value) { return this; } /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearGateway() { if (gatewayBuilder_ == null) { @@ -848,55 +964,71 @@ public Builder clearGateway() { return this; } /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.apigateway.v1.Gateway.Builder getGatewayBuilder() { - + onChanged(); return getGatewayFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewayOrBuilder() { if (gatewayBuilder_ != null) { return gatewayBuilder_.getMessageOrBuilder(); } else { - return gateway_ == null ? - com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() : gateway_; + return gateway_ == null + ? com.google.cloud.apigateway.v1.Gateway.getDefaultInstance() + : gateway_; } } /** + * + * *
      * Required. Gateway resource.
      * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder> + com.google.cloud.apigateway.v1.Gateway, + com.google.cloud.apigateway.v1.Gateway.Builder, + com.google.cloud.apigateway.v1.GatewayOrBuilder> getGatewayFieldBuilder() { if (gatewayBuilder_ == null) { - gatewayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigateway.v1.Gateway, com.google.cloud.apigateway.v1.Gateway.Builder, com.google.cloud.apigateway.v1.GatewayOrBuilder>( - getGateway(), - getParentForChildren(), - isClean()); + gatewayBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigateway.v1.Gateway, + com.google.cloud.apigateway.v1.Gateway.Builder, + com.google.cloud.apigateway.v1.GatewayOrBuilder>( + getGateway(), getParentForChildren(), isClean()); gateway_ = null; } return gatewayBuilder_; } + @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); } @@ -906,12 +1038,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigateway.v1.UpdateGatewayRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigateway.v1.UpdateGatewayRequest) private static final com.google.cloud.apigateway.v1.UpdateGatewayRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigateway.v1.UpdateGatewayRequest(); } @@ -920,16 +1052,16 @@ public static com.google.cloud.apigateway.v1.UpdateGatewayRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateGatewayRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateGatewayRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateGatewayRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -944,6 +1076,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigateway.v1.UpdateGatewayRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequestOrBuilder.java b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequestOrBuilder.java rename to proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequestOrBuilder.java index e528707..97c5793 100644 --- a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequestOrBuilder.java +++ b/proto-google-cloud-api-gateway-v1/src/main/java/com/google/cloud/apigateway/v1/UpdateGatewayRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigateway/v1/apigateway.proto package com.google.cloud.apigateway.v1; -public interface UpdateGatewayRequestOrBuilder extends +public interface UpdateGatewayRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigateway.v1.UpdateGatewayRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * Gateway resource by the update.
@@ -17,10 +35,13 @@ public interface UpdateGatewayRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * Gateway resource by the update.
@@ -30,10 +51,13 @@ public interface UpdateGatewayRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 1; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Field mask is used to specify the fields to be overwritten in the
    * Gateway resource by the update.
@@ -47,29 +71,43 @@ public interface UpdateGatewayRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. Gateway resource.
    * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the gateway field is set. */ boolean hasGateway(); /** + * + * *
    * Required. Gateway resource.
    * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The gateway. */ com.google.cloud.apigateway.v1.Gateway getGateway(); /** + * + * *
    * Required. Gateway resource.
    * 
* - * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.apigateway.v1.Gateway gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.apigateway.v1.GatewayOrBuilder getGatewayOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/proto/google/cloud/apigateway/v1/apigateway.proto b/proto-google-cloud-api-gateway-v1/src/main/proto/google/cloud/apigateway/v1/apigateway.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/proto/google/cloud/apigateway/v1/apigateway.proto rename to proto-google-cloud-api-gateway-v1/src/main/proto/google/cloud/apigateway/v1/apigateway.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/proto/google/cloud/apigateway/v1/apigateway_service.proto b/proto-google-cloud-api-gateway-v1/src/main/proto/google/cloud/apigateway/v1/apigateway_service.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-api-gateway-v1/src/main/proto/google/cloud/apigateway/v1/apigateway_service.proto rename to proto-google-cloud-api-gateway-v1/src/main/proto/google/cloud/apigateway/v1/apigateway_service.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApi.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApi.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApi.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApi.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApiLRO.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApiLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApiLRO.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/AsyncCreateApiLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApi.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApi.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApi.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApi.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiLocationnameApiString.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiLocationnameApiString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiLocationnameApiString.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiLocationnameApiString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiStringApiString.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiStringApiString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiStringApiString.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapi/SyncCreateApiStringApiString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfig.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfig.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfigLRO.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfigLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfigLRO.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/AsyncCreateApiConfigLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfig.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfig.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigApinameApiconfigString.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigApinameApiconfigString.java similarity index 94% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigApinameApiconfigString.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigApinameApiconfigString.java index 1447fab..8871e99 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigApinameApiconfigString.java +++ b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigApinameApiconfigString.java @@ -16,7 +16,8 @@ package com.google.cloud.apigateway.v1.samples; -// [START apigateway_v1_generated_apigatewayserviceclient_createapiconfig_apinameapiconfigstring_sync] +// [START +// apigateway_v1_generated_apigatewayserviceclient_createapiconfig_apinameapiconfigstring_sync] import com.google.cloud.apigateway.v1.ApiConfig; import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; import com.google.cloud.apigateway.v1.ApiName; diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigStringApiconfigString.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigStringApiconfigString.java similarity index 94% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigStringApiconfigString.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigStringApiconfigString.java index 209a787..e93f356 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigStringApiconfigString.java +++ b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/createapiconfig/SyncCreateApiConfigStringApiconfigString.java @@ -16,7 +16,8 @@ package com.google.cloud.apigateway.v1.samples; -// [START apigateway_v1_generated_apigatewayserviceclient_createapiconfig_stringapiconfigstring_sync] +// [START +// apigateway_v1_generated_apigatewayserviceclient_createapiconfig_stringapiconfigstring_sync] import com.google.cloud.apigateway.v1.ApiConfig; import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; import com.google.cloud.apigateway.v1.ApiName; diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGateway.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGateway.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGateway.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGateway.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGatewayLRO.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGatewayLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGatewayLRO.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/AsyncCreateGatewayLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGateway.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGateway.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGateway.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGateway.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayLocationnameGatewayString.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayLocationnameGatewayString.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayLocationnameGatewayString.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayLocationnameGatewayString.java index cb988ad..1cbccf8 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayLocationnameGatewayString.java +++ b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayLocationnameGatewayString.java @@ -16,7 +16,8 @@ package com.google.cloud.apigateway.v1.samples; -// [START apigateway_v1_generated_apigatewayserviceclient_creategateway_locationnamegatewaystring_sync] +// [START +// apigateway_v1_generated_apigatewayserviceclient_creategateway_locationnamegatewaystring_sync] import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; import com.google.cloud.apigateway.v1.Gateway; import com.google.cloud.apigateway.v1.LocationName; @@ -39,4 +40,5 @@ public static void syncCreateGatewayLocationnameGatewayString() throws Exception } } } -// [END apigateway_v1_generated_apigatewayserviceclient_creategateway_locationnamegatewaystring_sync] +// [END +// apigateway_v1_generated_apigatewayserviceclient_creategateway_locationnamegatewaystring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayStringGatewayString.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayStringGatewayString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayStringGatewayString.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/creategateway/SyncCreateGatewayStringGatewayString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApi.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApi.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApi.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApi.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApiLRO.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApiLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApiLRO.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/AsyncDeleteApiLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApi.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApi.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApi.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApi.java index e49cd4b..24f0a1a 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApi.java +++ b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApi.java @@ -20,7 +20,6 @@ import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; import com.google.cloud.apigateway.v1.ApiName; import com.google.cloud.apigateway.v1.DeleteApiRequest; -import com.google.protobuf.Empty; public class SyncDeleteApi { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiApiname.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiApiname.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiApiname.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiApiname.java index 4c2b9b2..f03e8c0 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiApiname.java +++ b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiApiname.java @@ -19,7 +19,6 @@ // [START apigateway_v1_generated_apigatewayserviceclient_deleteapi_apiname_sync] import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; import com.google.cloud.apigateway.v1.ApiName; -import com.google.protobuf.Empty; public class SyncDeleteApiApiname { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiString.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiString.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiString.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiString.java index 4b193dc..427c4ad 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiString.java +++ b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapi/SyncDeleteApiString.java @@ -19,7 +19,6 @@ // [START apigateway_v1_generated_apigatewayserviceclient_deleteapi_string_sync] import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; import com.google.cloud.apigateway.v1.ApiName; -import com.google.protobuf.Empty; public class SyncDeleteApiString { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfig.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfig.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfigLRO.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfigLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfigLRO.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/AsyncDeleteApiConfigLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfig.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfig.java similarity index 98% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfig.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfig.java index cc1fd5e..2295082 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfig.java +++ b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfig.java @@ -20,7 +20,6 @@ import com.google.cloud.apigateway.v1.ApiConfigName; import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; import com.google.cloud.apigateway.v1.DeleteApiConfigRequest; -import com.google.protobuf.Empty; public class SyncDeleteApiConfig { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigApiconfigname.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigApiconfigname.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigApiconfigname.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigApiconfigname.java index af07152..56171c9 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigApiconfigname.java +++ b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigApiconfigname.java @@ -19,7 +19,6 @@ // [START apigateway_v1_generated_apigatewayserviceclient_deleteapiconfig_apiconfigname_sync] import com.google.cloud.apigateway.v1.ApiConfigName; import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; -import com.google.protobuf.Empty; public class SyncDeleteApiConfigApiconfigname { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigString.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigString.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigString.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigString.java index 254df77..2512af8 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigString.java +++ b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deleteapiconfig/SyncDeleteApiConfigString.java @@ -19,7 +19,6 @@ // [START apigateway_v1_generated_apigatewayserviceclient_deleteapiconfig_string_sync] import com.google.cloud.apigateway.v1.ApiConfigName; import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; -import com.google.protobuf.Empty; public class SyncDeleteApiConfigString { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGateway.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGateway.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGateway.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGateway.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGatewayLRO.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGatewayLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGatewayLRO.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/AsyncDeleteGatewayLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGateway.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGateway.java similarity index 98% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGateway.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGateway.java index fe8f28b..69ba645 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGateway.java +++ b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGateway.java @@ -20,7 +20,6 @@ import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; import com.google.cloud.apigateway.v1.DeleteGatewayRequest; import com.google.cloud.apigateway.v1.GatewayName; -import com.google.protobuf.Empty; public class SyncDeleteGateway { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayGatewayname.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayGatewayname.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayGatewayname.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayGatewayname.java index d0fbf36..317ae6e 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayGatewayname.java +++ b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayGatewayname.java @@ -19,7 +19,6 @@ // [START apigateway_v1_generated_apigatewayserviceclient_deletegateway_gatewayname_sync] import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; import com.google.cloud.apigateway.v1.GatewayName; -import com.google.protobuf.Empty; public class SyncDeleteGatewayGatewayname { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayString.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayString.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayString.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayString.java index 80ebb31..b8b8baa 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayString.java +++ b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/deletegateway/SyncDeleteGatewayString.java @@ -19,7 +19,6 @@ // [START apigateway_v1_generated_apigatewayserviceclient_deletegateway_string_sync] import com.google.cloud.apigateway.v1.ApiGatewayServiceClient; import com.google.cloud.apigateway.v1.GatewayName; -import com.google.protobuf.Empty; public class SyncDeleteGatewayString { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/AsyncGetApi.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/AsyncGetApi.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/AsyncGetApi.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/AsyncGetApi.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApi.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApi.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApi.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApi.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiApiname.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiApiname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiApiname.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiApiname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiString.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiString.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapi/SyncGetApiString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/AsyncGetApiConfig.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/AsyncGetApiConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/AsyncGetApiConfig.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/AsyncGetApiConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfig.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfig.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigApiconfigname.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigApiconfigname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigApiconfigname.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigApiconfigname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigString.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigString.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getapiconfig/SyncGetApiConfigString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/AsyncGetGateway.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/AsyncGetGateway.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/AsyncGetGateway.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/AsyncGetGateway.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGateway.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGateway.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGateway.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGateway.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayGatewayname.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayGatewayname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayGatewayname.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayGatewayname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayString.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayString.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/getgateway/SyncGetGatewayString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigs.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigs.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigs.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigs.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigsPaged.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigsPaged.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/AsyncListApiConfigsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigs.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigs.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigs.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigs.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsApiname.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsApiname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsApiname.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsApiname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsString.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsString.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapiconfigs/SyncListApiConfigsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApis.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApis.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApis.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApis.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApisPaged.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApisPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApisPaged.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/AsyncListApisPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApis.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApis.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApis.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApis.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisLocationname.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisLocationname.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisString.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisString.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listapis/SyncListApisString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGateways.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGateways.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGateways.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGateways.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGatewaysPaged.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGatewaysPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGatewaysPaged.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/AsyncListGatewaysPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGateways.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGateways.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGateways.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGateways.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysLocationname.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysLocationname.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysString.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysString.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/listgateways/SyncListGatewaysString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApi.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApi.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApi.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApi.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApiLRO.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApiLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApiLRO.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/AsyncUpdateApiLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApi.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApi.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApi.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApi.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApiApiFieldmask.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApiApiFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApiApiFieldmask.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapi/SyncUpdateApiApiFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfig.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfig.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfigLRO.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfigLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfigLRO.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/AsyncUpdateApiConfigLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfig.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfig.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfigApiconfigFieldmask.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfigApiconfigFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfigApiconfigFieldmask.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updateapiconfig/SyncUpdateApiConfigApiconfigFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGateway.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGateway.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGateway.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGateway.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGatewayLRO.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGatewayLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGatewayLRO.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/AsyncUpdateGatewayLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGateway.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGateway.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGateway.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGateway.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGatewayGatewayFieldmask.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGatewayGatewayFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGatewayGatewayFieldmask.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayserviceclient/updategateway/SyncUpdateGatewayGatewayFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayservicesettings/getgateway/SyncGetGateway.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayservicesettings/getgateway/SyncGetGateway.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayservicesettings/getgateway/SyncGetGateway.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/apigatewayservicesettings/getgateway/SyncGetGateway.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/stub/apigatewayservicestubsettings/getgateway/SyncGetGateway.java b/samples/snippets/generated/com/google/cloud/apigateway/v1/stub/apigatewayservicestubsettings/getgateway/SyncGetGateway.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigateway/v1/stub/apigatewayservicestubsettings/getgateway/SyncGetGateway.java rename to samples/snippets/generated/com/google/cloud/apigateway/v1/stub/apigatewayservicestubsettings/getgateway/SyncGetGateway.java From 9492f2f360ae190a53e876acf742d0e549d69f2f Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 23 Jun 2022 11:43:44 -0400 Subject: [PATCH 3/3] Update pom.xml --- google-cloud-api-gateway/pom.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/google-cloud-api-gateway/pom.xml b/google-cloud-api-gateway/pom.xml index b566f2f..3cd57aa 100644 --- a/google-cloud-api-gateway/pom.xml +++ b/google-cloud-api-gateway/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 +