From 9702f56092bb3cdec2d68bb7fd1a10b7b425fa3f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 31 Aug 2022 22:49:48 +0000 Subject: [PATCH 1/3] feat!: update BigQuery Analytics Hub API v1beta1 client BREAKING CHANGE: refresh current dataexchange/v1beta1/* directory to include recent change in protos. Removed common directory and use local enum Category fix!: refactor references to Category message docs: improve proto documentation. PiperOrigin-RevId: 471349319 Source-Link: https://github.com/googleapis/googleapis/commit/84950242f2bb5d57bcc35511725508302d2403ab Source-Link: https://github.com/googleapis/googleapis-gen/commit/2d8c38b90a5a198d71eb1a8eb43e0ce56127ac0d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmQ4YzM4YjkwYTVhMTk4ZDcxZWIxYThlYjQzZTBjZTU2MTI3YWMwZCJ9 --- .../v1beta1/AnalyticsHubServiceGrpc.java | 2094 ------------ .../v1beta1/AnalyticsHubServiceClient.java | 451 ++- .../v1beta1/AnalyticsHubServiceSettings.java | 41 +- .../dataexchange/v1beta1/gapic_metadata.json | 6 + .../dataexchange/v1beta1/package-info.java | 9 +- .../v1beta1/stub/AnalyticsHubServiceStub.java | 18 + .../stub/AnalyticsHubServiceStubSettings.java | 140 +- ...rpcAnalyticsHubServiceCallableFactory.java | 0 .../stub/GrpcAnalyticsHubServiceStub.java | 74 + ...sonAnalyticsHubServiceCallableFactory.java | 0 .../stub/HttpJsonAnalyticsHubServiceStub.java | 113 + ...AnalyticsHubServiceClientHttpJsonTest.java | 138 +- .../AnalyticsHubServiceClientTest.java | 124 +- .../v1beta1/MockAnalyticsHubService.java | 0 .../v1beta1/MockAnalyticsHubServiceImpl.java | 0 .../dataexchange/v1beta1/MockLocations.java | 59 + .../v1beta1/MockLocationsImpl.java | 105 + .../v1beta1/AnalyticsHubServiceGrpc.java | 1552 +++++++++ .../v1beta1/CreateDataExchangeRequest.java | 685 ++-- .../CreateDataExchangeRequestOrBuilder.java | 86 + .../v1beta1/CreateListingRequest.java | 619 ++-- .../CreateListingRequestOrBuilder.java | 68 +- .../dataexchange/v1beta1/DataExchange.java | 806 ++--- .../v1beta1/DataExchangeName.java | 0 .../v1beta1/DataExchangeOrBuilder.java | 95 +- .../v1beta1/DataExchangeProto.java | 552 +++ .../dataexchange/v1beta1/DataProvider.java | 425 +-- .../v1beta1/DataProviderOrBuilder.java | 44 +- .../v1beta1/DeleteDataExchangeRequest.java | 420 +-- .../DeleteDataExchangeRequestOrBuilder.java | 31 + .../v1beta1/DeleteListingRequest.java | 379 +-- .../DeleteListingRequestOrBuilder.java | 31 + .../v1beta1/DestinationDataset.java | 1080 +++--- .../v1beta1/DestinationDatasetOrBuilder.java | 115 +- .../v1beta1/DestinationDatasetReference.java | 493 ++- .../DestinationDatasetReferenceOrBuilder.java | 36 +- .../v1beta1/GetDataExchangeRequest.java | 393 +-- .../GetDataExchangeRequestOrBuilder.java | 31 + .../v1beta1/GetListingRequest.java | 367 +- .../v1beta1/GetListingRequestOrBuilder.java | 31 + .../v1beta1/ListDataExchangesRequest.java | 516 ++- .../ListDataExchangesRequestOrBuilder.java | 51 +- .../v1beta1/ListDataExchangesResponse.java | 656 ++-- .../ListDataExchangesResponseOrBuilder.java | 66 +- .../v1beta1/ListListingsRequest.java | 492 ++- .../v1beta1/ListListingsRequestOrBuilder.java | 47 +- .../v1beta1/ListListingsResponse.java | 493 +-- .../ListListingsResponseOrBuilder.java | 45 +- .../v1beta1/ListOrgDataExchangesRequest.java | 531 ++- .../ListOrgDataExchangesRequestOrBuilder.java | 39 +- .../v1beta1/ListOrgDataExchangesResponse.java | 706 ++-- ...ListOrgDataExchangesResponseOrBuilder.java | 66 +- .../dataexchange/v1beta1/Listing.java | 3015 ++++++++--------- .../dataexchange/v1beta1/ListingName.java | 0 .../v1beta1/ListingOrBuilder.java | 280 +- .../dataexchange/v1beta1/LocationName.java | 0 .../dataexchange/v1beta1/Publisher.java | 425 +-- .../v1beta1/PublisherOrBuilder.java | 44 +- .../v1beta1/SubscribeListingRequest.java | 828 ++--- .../SubscribeListingRequestOrBuilder.java | 86 +- .../v1beta1/SubscribeListingResponse.java | 287 +- .../SubscribeListingResponseOrBuilder.java | 9 + .../v1beta1/UpdateDataExchangeRequest.java | 690 ++-- .../UpdateDataExchangeRequestOrBuilder.java | 69 + .../v1beta1/UpdateListingRequest.java | 634 ++-- .../UpdateListingRequestOrBuilder.java | 69 + .../dataexchange/v1beta1/dataexchange.proto | 256 +- .../dataexchange/common/Category.java | 232 -- .../dataexchange/common/CommonProto.java | 69 - .../CreateDataExchangeRequestOrBuilder.java | 130 - .../v1beta1/DataExchangeProto.java | 599 ---- .../DeleteDataExchangeRequestOrBuilder.java | 56 - .../DeleteListingRequestOrBuilder.java | 56 - .../GetDataExchangeRequestOrBuilder.java | 56 - .../v1beta1/GetListingRequestOrBuilder.java | 56 - .../SubscribeListingResponseOrBuilder.java | 24 - .../UpdateDataExchangeRequestOrBuilder.java | 113 - .../UpdateListingRequestOrBuilder.java | 113 - 78 files changed, 10053 insertions(+), 13562 deletions(-) delete mode 100644 grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java rename {google-cloud-bigquery-data-exchange => owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java (83%) rename {google-cloud-bigquery-data-exchange => owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java (89%) rename {google-cloud-bigquery-data-exchange => owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/gapic_metadata.json (91%) rename {google-cloud-bigquery-data-exchange => owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/package-info.java (76%) rename {google-cloud-bigquery-data-exchange => owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStub.java (88%) rename {google-cloud-bigquery-data-exchange => owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java (86%) rename {google-cloud-bigquery-data-exchange => owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceCallableFactory.java (100%) rename {google-cloud-bigquery-data-exchange => owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java (89%) rename {google-cloud-bigquery-data-exchange => owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceCallableFactory.java (100%) rename {google-cloud-bigquery-data-exchange => owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceStub.java (89%) rename {google-cloud-bigquery-data-exchange => owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange}/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientHttpJsonTest.java (91%) rename {google-cloud-bigquery-data-exchange => owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange}/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientTest.java (90%) rename {google-cloud-bigquery-data-exchange => owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange}/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubService.java (100%) rename {google-cloud-bigquery-data-exchange => owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange}/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubServiceImpl.java (100%) create mode 100644 owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocations.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocationsImpl.java create mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.java (59%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.java (63%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java (55%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java (69%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeName.java (100%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java (65%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.java (67%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java (52%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.java (56%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.java (62%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequestOrBuilder.java rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.java (62%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetOrBuilder.java (71%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.java (63%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReferenceOrBuilder.java (65%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.java (60%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.java (63%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequestOrBuilder.java rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.java (63%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java (51%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.java (64%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java (58%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.java (66%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequestOrBuilder.java (57%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.java (71%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponseOrBuilder.java (67%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java (63%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequestOrBuilder.java (66%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java (61%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java (57%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.java (60%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingName.java (100%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java (55%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/LocationName.java (100%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.java (68%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java (51%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.java (61%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java (51%) rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java (60%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponseOrBuilder.java rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.java (53%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.java (56%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java rename {proto-google-cloud-bigquery-data-exchange-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/proto/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto (76%) delete mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/common/Category.java delete mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/common/CommonProto.java delete mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java delete mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java delete mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java delete mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequestOrBuilder.java delete mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java delete mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequestOrBuilder.java delete mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponseOrBuilder.java delete mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java delete mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java diff --git a/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java b/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java deleted file mode 100644 index 22d6a56..0000000 --- a/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java +++ /dev/null @@ -1,2094 +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.bigquery.dataexchange.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The AnalyticsHubService API facilitates data sharing within and across
- * organizations. It allows data providers to publish Listings --- a
- * discoverable and searchable SKU representing a dataset. Data consumers can
- * subscribe to Listings. Upon subscription, AnalyticsHub provisions a "Linked
- * Datasets" surfacing the data in the consumer's project.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AnalyticsHubServiceGrpc { - - private AnalyticsHubServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse> - getListDataExchangesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDataExchanges", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse> - getListDataExchangesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse> - getListDataExchangesMethod; - if ((getListDataExchangesMethod = AnalyticsHubServiceGrpc.getListDataExchangesMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getListDataExchangesMethod = AnalyticsHubServiceGrpc.getListDataExchangesMethod) - == null) { - AnalyticsHubServiceGrpc.getListDataExchangesMethod = - getListDataExchangesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataExchanges")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1 - .ListDataExchangesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1 - .ListDataExchangesResponse.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsHubServiceMethodDescriptorSupplier("ListDataExchanges")) - .build(); - } - } - } - return getListDataExchangesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse> - getListOrgDataExchangesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListOrgDataExchanges", - requestType = - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.class, - responseType = - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse> - getListOrgDataExchangesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse> - getListOrgDataExchangesMethod; - if ((getListOrgDataExchangesMethod = AnalyticsHubServiceGrpc.getListOrgDataExchangesMethod) - == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getListOrgDataExchangesMethod = AnalyticsHubServiceGrpc.getListOrgDataExchangesMethod) - == null) { - AnalyticsHubServiceGrpc.getListOrgDataExchangesMethod = - getListOrgDataExchangesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListOrgDataExchanges")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1 - .ListOrgDataExchangesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1 - .ListOrgDataExchangesResponse.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsHubServiceMethodDescriptorSupplier("ListOrgDataExchanges")) - .build(); - } - } - } - return getListOrgDataExchangesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> - getGetDataExchangeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataExchange", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> - getGetDataExchangeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> - getGetDataExchangeMethod; - if ((getGetDataExchangeMethod = AnalyticsHubServiceGrpc.getGetDataExchangeMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getGetDataExchangeMethod = AnalyticsHubServiceGrpc.getGetDataExchangeMethod) == null) { - AnalyticsHubServiceGrpc.getGetDataExchangeMethod = - getGetDataExchangeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataExchange")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsHubServiceMethodDescriptorSupplier("GetDataExchange")) - .build(); - } - } - } - return getGetDataExchangeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> - getCreateDataExchangeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDataExchange", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> - getCreateDataExchangeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> - getCreateDataExchangeMethod; - if ((getCreateDataExchangeMethod = AnalyticsHubServiceGrpc.getCreateDataExchangeMethod) - == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getCreateDataExchangeMethod = AnalyticsHubServiceGrpc.getCreateDataExchangeMethod) - == null) { - AnalyticsHubServiceGrpc.getCreateDataExchangeMethod = - getCreateDataExchangeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataExchange")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1 - .CreateDataExchangeRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsHubServiceMethodDescriptorSupplier("CreateDataExchange")) - .build(); - } - } - } - return getCreateDataExchangeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> - getUpdateDataExchangeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDataExchange", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> - getUpdateDataExchangeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> - getUpdateDataExchangeMethod; - if ((getUpdateDataExchangeMethod = AnalyticsHubServiceGrpc.getUpdateDataExchangeMethod) - == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getUpdateDataExchangeMethod = AnalyticsHubServiceGrpc.getUpdateDataExchangeMethod) - == null) { - AnalyticsHubServiceGrpc.getUpdateDataExchangeMethod = - getUpdateDataExchangeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataExchange")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1 - .UpdateDataExchangeRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsHubServiceMethodDescriptorSupplier("UpdateDataExchange")) - .build(); - } - } - } - return getUpdateDataExchangeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest, - com.google.protobuf.Empty> - getDeleteDataExchangeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDataExchange", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest, - com.google.protobuf.Empty> - getDeleteDataExchangeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest, - com.google.protobuf.Empty> - getDeleteDataExchangeMethod; - if ((getDeleteDataExchangeMethod = AnalyticsHubServiceGrpc.getDeleteDataExchangeMethod) - == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getDeleteDataExchangeMethod = AnalyticsHubServiceGrpc.getDeleteDataExchangeMethod) - == null) { - AnalyticsHubServiceGrpc.getDeleteDataExchangeMethod = - getDeleteDataExchangeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataExchange")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1 - .DeleteDataExchangeRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsHubServiceMethodDescriptorSupplier("DeleteDataExchange")) - .build(); - } - } - } - return getDeleteDataExchangeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse> - getListListingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListListings", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse> - getListListingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse> - getListListingsMethod; - if ((getListListingsMethod = AnalyticsHubServiceGrpc.getListListingsMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getListListingsMethod = AnalyticsHubServiceGrpc.getListListingsMethod) == null) { - AnalyticsHubServiceGrpc.getListListingsMethod = - getListListingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListListings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsHubServiceMethodDescriptorSupplier("ListListings")) - .build(); - } - } - } - return getListListingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing> - getGetListingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetListing", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing> - getGetListingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing> - getGetListingMethod; - if ((getGetListingMethod = AnalyticsHubServiceGrpc.getGetListingMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getGetListingMethod = AnalyticsHubServiceGrpc.getGetListingMethod) == null) { - AnalyticsHubServiceGrpc.getGetListingMethod = - getGetListingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetListing")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsHubServiceMethodDescriptorSupplier("GetListing")) - .build(); - } - } - } - return getGetListingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing> - getCreateListingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateListing", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing> - getCreateListingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing> - getCreateListingMethod; - if ((getCreateListingMethod = AnalyticsHubServiceGrpc.getCreateListingMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getCreateListingMethod = AnalyticsHubServiceGrpc.getCreateListingMethod) == null) { - AnalyticsHubServiceGrpc.getCreateListingMethod = - getCreateListingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateListing")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsHubServiceMethodDescriptorSupplier("CreateListing")) - .build(); - } - } - } - return getCreateListingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing> - getUpdateListingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateListing", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing> - getUpdateListingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing> - getUpdateListingMethod; - if ((getUpdateListingMethod = AnalyticsHubServiceGrpc.getUpdateListingMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getUpdateListingMethod = AnalyticsHubServiceGrpc.getUpdateListingMethod) == null) { - AnalyticsHubServiceGrpc.getUpdateListingMethod = - getUpdateListingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateListing")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsHubServiceMethodDescriptorSupplier("UpdateListing")) - .build(); - } - } - } - return getUpdateListingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest, - com.google.protobuf.Empty> - getDeleteListingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteListing", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest, - com.google.protobuf.Empty> - getDeleteListingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest, - com.google.protobuf.Empty> - getDeleteListingMethod; - if ((getDeleteListingMethod = AnalyticsHubServiceGrpc.getDeleteListingMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getDeleteListingMethod = AnalyticsHubServiceGrpc.getDeleteListingMethod) == null) { - AnalyticsHubServiceGrpc.getDeleteListingMethod = - getDeleteListingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteListing")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsHubServiceMethodDescriptorSupplier("DeleteListing")) - .build(); - } - } - } - return getDeleteListingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse> - getSubscribeListingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SubscribeListing", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse> - getSubscribeListingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse> - getSubscribeListingMethod; - if ((getSubscribeListingMethod = AnalyticsHubServiceGrpc.getSubscribeListingMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getSubscribeListingMethod = AnalyticsHubServiceGrpc.getSubscribeListingMethod) - == null) { - AnalyticsHubServiceGrpc.getSubscribeListingMethod = - getSubscribeListingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubscribeListing")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1 - .SubscribeListingResponse.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsHubServiceMethodDescriptorSupplier("SubscribeListing")) - .build(); - } - } - } - return getSubscribeListingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = AnalyticsHubServiceGrpc.getGetIamPolicyMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getGetIamPolicyMethod = AnalyticsHubServiceGrpc.getGetIamPolicyMethod) == null) { - AnalyticsHubServiceGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsHubServiceMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = AnalyticsHubServiceGrpc.getSetIamPolicyMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getSetIamPolicyMethod = AnalyticsHubServiceGrpc.getSetIamPolicyMethod) == null) { - AnalyticsHubServiceGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsHubServiceMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = AnalyticsHubServiceGrpc.getTestIamPermissionsMethod) - == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getTestIamPermissionsMethod = AnalyticsHubServiceGrpc.getTestIamPermissionsMethod) - == null) { - AnalyticsHubServiceGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsHubServiceMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AnalyticsHubServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsHubServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsHubServiceStub(channel, callOptions); - } - }; - return AnalyticsHubServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AnalyticsHubServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsHubServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsHubServiceBlockingStub(channel, callOptions); - } - }; - return AnalyticsHubServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AnalyticsHubServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsHubServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsHubServiceFutureStub(channel, callOptions); - } - }; - return AnalyticsHubServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The AnalyticsHubService API facilitates data sharing within and across
-   * organizations. It allows data providers to publish Listings --- a
-   * discoverable and searchable SKU representing a dataset. Data consumers can
-   * subscribe to Listings. Upon subscription, AnalyticsHub provisions a "Linked
-   * Datasets" surfacing the data in the consumer's project.
-   * 
- */ - public abstract static class AnalyticsHubServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists DataExchanges in a given project and location.
-     * 
- */ - public void listDataExchanges( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDataExchangesMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists DataExchanges from projects in a given organization and location.
-     * 
- */ - public void listOrgDataExchanges( - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListOrgDataExchangesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single DataExchange.
-     * 
- */ - public void getDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDataExchangeMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new DataExchange in a given project and location.
-     * 
- */ - public void createDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDataExchangeMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single DataExchange.
-     * 
- */ - public void updateDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateDataExchangeMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single DataExchange.
-     * 
- */ - public void deleteDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDataExchangeMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists Listings in a given project and location.
-     * 
- */ - public void listListings( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListListingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Listing.
-     * 
- */ - public void getListing( - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetListingMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Listing in a given project and location.
-     * 
- */ - public void createListing( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateListingMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Listing.
-     * 
- */ - public void updateListing( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateListingMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a single Listing, as long as there are no subscriptions
-     * associated with the source of this Listing.
-     * 
- */ - public void deleteListing( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteListingMethod(), responseObserver); - } - - /** - * - * - *
-     * Subscribes to a single Listing.
-     * Data Exchange currently supports one type of Listing: a BigQuery dataset.
-     * Upon subscription to a Listing for a BigQuery dataset, Data Exchange
-     * creates a linked dataset in the subscriber's project.
-     * 
- */ - public void subscribeListing( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSubscribeListingMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the IAM policy for a dataExchange or a listing.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the IAM policy for a dataExchange or a listing.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on a specified dataExchange or
-     * listing.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListDataExchangesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse>( - this, METHODID_LIST_DATA_EXCHANGES))) - .addMethod( - getListOrgDataExchangesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse>( - this, METHODID_LIST_ORG_DATA_EXCHANGES))) - .addMethod( - getGetDataExchangeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>( - this, METHODID_GET_DATA_EXCHANGE))) - .addMethod( - getCreateDataExchangeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>( - this, METHODID_CREATE_DATA_EXCHANGE))) - .addMethod( - getUpdateDataExchangeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>( - this, METHODID_UPDATE_DATA_EXCHANGE))) - .addMethod( - getDeleteDataExchangeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_DATA_EXCHANGE))) - .addMethod( - getListListingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse>( - this, METHODID_LIST_LISTINGS))) - .addMethod( - getGetListingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing>( - this, METHODID_GET_LISTING))) - .addMethod( - getCreateListingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing>( - this, METHODID_CREATE_LISTING))) - .addMethod( - getUpdateListingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing>( - this, METHODID_UPDATE_LISTING))) - .addMethod( - getDeleteListingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_LISTING))) - .addMethod( - getSubscribeListingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse>( - this, METHODID_SUBSCRIBE_LISTING))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .build(); - } - } - - /** - * - * - *
-   * The AnalyticsHubService API facilitates data sharing within and across
-   * organizations. It allows data providers to publish Listings --- a
-   * discoverable and searchable SKU representing a dataset. Data consumers can
-   * subscribe to Listings. Upon subscription, AnalyticsHub provisions a "Linked
-   * Datasets" surfacing the data in the consumer's project.
-   * 
- */ - public static final class AnalyticsHubServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AnalyticsHubServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnalyticsHubServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsHubServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists DataExchanges in a given project and location.
-     * 
- */ - public void listDataExchanges( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDataExchangesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists DataExchanges from projects in a given organization and location.
-     * 
- */ - public void listOrgDataExchanges( - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListOrgDataExchangesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single DataExchange.
-     * 
- */ - public void getDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataExchangeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new DataExchange in a given project and location.
-     * 
- */ - public void createDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDataExchangeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single DataExchange.
-     * 
- */ - public void updateDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDataExchangeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single DataExchange.
-     * 
- */ - public void deleteDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDataExchangeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists Listings in a given project and location.
-     * 
- */ - public void listListings( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListListingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Listing.
-     * 
- */ - public void getListing( - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetListingMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a new Listing in a given project and location.
-     * 
- */ - public void createListing( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateListingMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the parameters of a single Listing.
-     * 
- */ - public void updateListing( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateListingMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a single Listing, as long as there are no subscriptions
-     * associated with the source of this Listing.
-     * 
- */ - public void deleteListing( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteListingMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Subscribes to a single Listing.
-     * Data Exchange currently supports one type of Listing: a BigQuery dataset.
-     * Upon subscription to a Listing for a BigQuery dataset, Data Exchange
-     * creates a linked dataset in the subscriber's project.
-     * 
- */ - public void subscribeListing( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSubscribeListingMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the IAM policy for a dataExchange or a listing.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the IAM policy for a dataExchange or a listing.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on a specified dataExchange or
-     * listing.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The AnalyticsHubService API facilitates data sharing within and across
-   * organizations. It allows data providers to publish Listings --- a
-   * discoverable and searchable SKU representing a dataset. Data consumers can
-   * subscribe to Listings. Upon subscription, AnalyticsHub provisions a "Linked
-   * Datasets" surfacing the data in the consumer's project.
-   * 
- */ - public static final class AnalyticsHubServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AnalyticsHubServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnalyticsHubServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsHubServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists DataExchanges in a given project and location.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse - listDataExchanges( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDataExchangesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists DataExchanges from projects in a given organization and location.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - listOrgDataExchanges( - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListOrgDataExchangesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single DataExchange.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataExchangeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new DataExchange in a given project and location.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange createDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDataExchangeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single DataExchange.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange updateDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDataExchangeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single DataExchange.
-     * 
- */ - public com.google.protobuf.Empty deleteDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDataExchangeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists Listings in a given project and location.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse listListings( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListListingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single Listing.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing( - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetListingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Listing in a given project and location.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing createListing( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateListingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Listing.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing updateListing( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateListingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a single Listing, as long as there are no subscriptions
-     * associated with the source of this Listing.
-     * 
- */ - public com.google.protobuf.Empty deleteListing( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteListingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Subscribes to a single Listing.
-     * Data Exchange currently supports one type of Listing: a BigQuery dataset.
-     * Upon subscription to a Listing for a BigQuery dataset, Data Exchange
-     * creates a linked dataset in the subscriber's project.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse subscribeListing( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSubscribeListingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the IAM policy for a dataExchange or a listing.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the IAM policy for a dataExchange or a listing.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on a specified dataExchange or
-     * listing.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The AnalyticsHubService API facilitates data sharing within and across
-   * organizations. It allows data providers to publish Listings --- a
-   * discoverable and searchable SKU representing a dataset. Data consumers can
-   * subscribe to Listings. Upon subscription, AnalyticsHub provisions a "Linked
-   * Datasets" surfacing the data in the consumer's project.
-   * 
- */ - public static final class AnalyticsHubServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AnalyticsHubServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnalyticsHubServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsHubServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists DataExchanges in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse> - listDataExchanges( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDataExchangesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists DataExchanges from projects in a given organization and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse> - listOrgDataExchanges( - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListOrgDataExchangesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single DataExchange.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> - getDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDataExchangeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new DataExchange in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> - createDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDataExchangeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single DataExchange.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> - updateDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDataExchangeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single DataExchange.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDataExchangeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists Listings in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse> - listListings(com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListListingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single Listing.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing> - getListing(com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetListingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Listing in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing> - createListing(com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateListingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the parameters of a single Listing.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing> - updateListing(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateListingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a single Listing, as long as there are no subscriptions
-     * associated with the source of this Listing.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteListing(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteListingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Subscribes to a single Listing.
-     * Data Exchange currently supports one type of Listing: a BigQuery dataset.
-     * Upon subscription to a Listing for a BigQuery dataset, Data Exchange
-     * creates a linked dataset in the subscriber's project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse> - subscribeListing( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSubscribeListingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the IAM policy for a dataExchange or a listing.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the IAM policy for a dataExchange or a listing.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on a specified dataExchange or
-     * listing.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_DATA_EXCHANGES = 0; - private static final int METHODID_LIST_ORG_DATA_EXCHANGES = 1; - private static final int METHODID_GET_DATA_EXCHANGE = 2; - private static final int METHODID_CREATE_DATA_EXCHANGE = 3; - private static final int METHODID_UPDATE_DATA_EXCHANGE = 4; - private static final int METHODID_DELETE_DATA_EXCHANGE = 5; - private static final int METHODID_LIST_LISTINGS = 6; - private static final int METHODID_GET_LISTING = 7; - private static final int METHODID_CREATE_LISTING = 8; - private static final int METHODID_UPDATE_LISTING = 9; - private static final int METHODID_DELETE_LISTING = 10; - private static final int METHODID_SUBSCRIBE_LISTING = 11; - private static final int METHODID_GET_IAM_POLICY = 12; - private static final int METHODID_SET_IAM_POLICY = 13; - private static final int METHODID_TEST_IAM_PERMISSIONS = 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 AnalyticsHubServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AnalyticsHubServiceImplBase 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_DATA_EXCHANGES: - serviceImpl.listDataExchanges( - (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse>) - responseObserver); - break; - case METHODID_LIST_ORG_DATA_EXCHANGES: - serviceImpl.listOrgDataExchanges( - (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse>) - responseObserver); - break; - case METHODID_GET_DATA_EXCHANGE: - serviceImpl.getDataExchange( - (com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>) - responseObserver); - break; - case METHODID_CREATE_DATA_EXCHANGE: - serviceImpl.createDataExchange( - (com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>) - responseObserver); - break; - case METHODID_UPDATE_DATA_EXCHANGE: - serviceImpl.updateDataExchange( - (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>) - responseObserver); - break; - case METHODID_DELETE_DATA_EXCHANGE: - serviceImpl.deleteDataExchange( - (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_LISTINGS: - serviceImpl.listListings( - (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse>) - responseObserver); - break; - case METHODID_GET_LISTING: - serviceImpl.getListing( - (com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_LISTING: - serviceImpl.createListing( - (com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_LISTING: - serviceImpl.updateListing( - (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_LISTING: - serviceImpl.deleteListing( - (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SUBSCRIBE_LISTING: - serviceImpl.subscribeListing( - (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse>) - responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) 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 AnalyticsHubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AnalyticsHubServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AnalyticsHubService"); - } - } - - private static final class AnalyticsHubServiceFileDescriptorSupplier - extends AnalyticsHubServiceBaseDescriptorSupplier { - AnalyticsHubServiceFileDescriptorSupplier() {} - } - - private static final class AnalyticsHubServiceMethodDescriptorSupplier - extends AnalyticsHubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AnalyticsHubServiceMethodDescriptorSupplier(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 (AnalyticsHubServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AnalyticsHubServiceFileDescriptorSupplier()) - .addMethod(getListDataExchangesMethod()) - .addMethod(getListOrgDataExchangesMethod()) - .addMethod(getGetDataExchangeMethod()) - .addMethod(getCreateDataExchangeMethod()) - .addMethod(getUpdateDataExchangeMethod()) - .addMethod(getDeleteDataExchangeMethod()) - .addMethod(getListListingsMethod()) - .addMethod(getGetListingMethod()) - .addMethod(getCreateListingMethod()) - .addMethod(getUpdateListingMethod()) - .addMethod(getDeleteListingMethod()) - .addMethod(getSubscribeListingMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java similarity index 83% rename from google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java rename to owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java index 1a33a7a..5f44793 100644 --- a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java +++ b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java @@ -27,6 +27,10 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.bigquery.dataexchange.v1beta1.stub.AnalyticsHubServiceStub; import com.google.cloud.bigquery.dataexchange.v1beta1.stub.AnalyticsHubServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; @@ -42,10 +46,11 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: The AnalyticsHubService API facilitates data sharing within and across - * organizations. It allows data providers to publish Listings --- a discoverable and searchable SKU - * representing a dataset. Data consumers can subscribe to Listings. Upon subscription, AnalyticsHub - * provisions a "Linked Datasets" surfacing the data in the consumer's project. + * Service Description: The `AnalyticsHubService` API facilitates data sharing within and across + * organizations. It allows data providers to publish listings that reference shared datasets. With + * Analytics Hub, users can discover and search for listings that they have access to. Subscribers + * can view and subscribe to listings. When you subscribe to a listing, Analytics Hub creates a + * linked dataset in your project. * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -67,13 +72,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -180,7 +185,7 @@ public AnalyticsHubServiceStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DataExchanges in a given project and location. + * Lists all data exchanges in a given project and location. * *

Sample code: * @@ -196,7 +201,7 @@ public AnalyticsHubServiceStub getStub() { * } * } * - * @param parent Required. The parent resource path of the DataExchanges. e.g. + * @param parent Required. The parent resource path of the data exchanges. e.g. * `projects/myproject/locations/US`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -210,7 +215,7 @@ public final ListDataExchangesPagedResponse listDataExchanges(LocationName paren // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DataExchanges in a given project and location. + * Lists all data exchanges in a given project and location. * *

Sample code: * @@ -226,7 +231,7 @@ public final ListDataExchangesPagedResponse listDataExchanges(LocationName paren * } * } * - * @param parent Required. The parent resource path of the DataExchanges. e.g. + * @param parent Required. The parent resource path of the data exchanges. e.g. * `projects/myproject/locations/US`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -238,7 +243,7 @@ public final ListDataExchangesPagedResponse listDataExchanges(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DataExchanges in a given project and location. + * Lists all data exchanges in a given project and location. * *

Sample code: * @@ -268,7 +273,7 @@ public final ListDataExchangesPagedResponse listDataExchanges(ListDataExchangesR // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DataExchanges in a given project and location. + * Lists all data exchanges in a given project and location. * *

Sample code: * @@ -298,7 +303,7 @@ public final ListDataExchangesPagedResponse listDataExchanges(ListDataExchangesR // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DataExchanges in a given project and location. + * Lists all data exchanges in a given project and location. * *

Sample code: * @@ -335,7 +340,7 @@ public final ListDataExchangesPagedResponse listDataExchanges(ListDataExchangesR // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DataExchanges from projects in a given organization and location. + * Lists all data exchanges from projects in a given organization and location. * *

Sample code: * @@ -363,7 +368,7 @@ public final ListOrgDataExchangesPagedResponse listOrgDataExchanges(String organ // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DataExchanges from projects in a given organization and location. + * Lists all data exchanges from projects in a given organization and location. * *

Sample code: * @@ -394,7 +399,7 @@ public final ListOrgDataExchangesPagedResponse listOrgDataExchanges( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DataExchanges from projects in a given organization and location. + * Lists all data exchanges from projects in a given organization and location. * *

Sample code: * @@ -424,7 +429,7 @@ public final ListOrgDataExchangesPagedResponse listOrgDataExchanges( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DataExchanges from projects in a given organization and location. + * Lists all data exchanges from projects in a given organization and location. * *

Sample code: * @@ -461,7 +466,7 @@ public final ListOrgDataExchangesPagedResponse listOrgDataExchanges( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single DataExchange. + * Gets the details of a data exchange. * *

Sample code: * @@ -474,7 +479,7 @@ public final ListOrgDataExchangesPagedResponse listOrgDataExchanges( * } * } * - * @param name Required. The resource name of the DataExchange. e.g. + * @param name Required. The resource name of the data exchange. e.g. * `projects/myproject/locations/US/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -486,7 +491,7 @@ public final DataExchange getDataExchange(DataExchangeName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single DataExchange. + * Gets the details of a data exchange. * *

Sample code: * @@ -499,7 +504,7 @@ public final DataExchange getDataExchange(DataExchangeName name) { * } * } * - * @param name Required. The resource name of the DataExchange. e.g. + * @param name Required. The resource name of the data exchange. e.g. * `projects/myproject/locations/US/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -510,7 +515,7 @@ public final DataExchange getDataExchange(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single DataExchange. + * Gets the details of a data exchange. * *

Sample code: * @@ -535,7 +540,7 @@ public final DataExchange getDataExchange(GetDataExchangeRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single DataExchange. + * Gets the details of a data exchange. * *

Sample code: * @@ -560,7 +565,7 @@ public final UnaryCallable getDataExchange // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new DataExchange in a given project and location. + * Creates a new data exchange. * *

Sample code: * @@ -574,9 +579,9 @@ public final UnaryCallable getDataExchange * } * } * - * @param parent Required. The parent resource path of the DataExchange. e.g. + * @param parent Required. The parent resource path of the data exchange. e.g. * `projects/myproject/locations/US`. - * @param dataExchange Required. The DataExchange to create. + * @param dataExchange Required. The data exchange to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataExchange createDataExchange(LocationName parent, DataExchange dataExchange) { @@ -590,7 +595,7 @@ public final DataExchange createDataExchange(LocationName parent, DataExchange d // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new DataExchange in a given project and location. + * Creates a new data exchange. * *

Sample code: * @@ -604,9 +609,9 @@ public final DataExchange createDataExchange(LocationName parent, DataExchange d * } * } * - * @param parent Required. The parent resource path of the DataExchange. e.g. + * @param parent Required. The parent resource path of the data exchange. e.g. * `projects/myproject/locations/US`. - * @param dataExchange Required. The DataExchange to create. + * @param dataExchange Required. The data exchange to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataExchange createDataExchange(String parent, DataExchange dataExchange) { @@ -620,7 +625,7 @@ public final DataExchange createDataExchange(String parent, DataExchange dataExc // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new DataExchange in a given project and location. + * Creates a new data exchange. * *

Sample code: * @@ -647,7 +652,7 @@ public final DataExchange createDataExchange(CreateDataExchangeRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new DataExchange in a given project and location. + * Creates a new data exchange. * *

Sample code: * @@ -674,7 +679,7 @@ public final UnaryCallable createDataEx // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single DataExchange. + * Updates an existing data exchange. * *

Sample code: * @@ -689,10 +694,10 @@ public final UnaryCallable createDataEx * } * } * - * @param dataExchange Required. The DataExchange to update. - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the - * DataExchange resource by the update. The fields specified in the update_mask are relative - * to the resource, not the full request. + * @param dataExchange Required. The data exchange to update. + * @param updateMask Required. Field mask specifies the fields to update in the data exchange + * resource. The fields specified in the `updateMask` are relative to the resource and are not + * a full request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DataExchange updateDataExchange(DataExchange dataExchange, FieldMask updateMask) { @@ -706,7 +711,7 @@ public final DataExchange updateDataExchange(DataExchange dataExchange, FieldMas // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single DataExchange. + * Updates an existing data exchange. * *

Sample code: * @@ -732,7 +737,7 @@ public final DataExchange updateDataExchange(UpdateDataExchangeRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single DataExchange. + * Updates an existing data exchange. * *

Sample code: * @@ -758,7 +763,7 @@ public final UnaryCallable updateDataEx // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single DataExchange. + * Deletes an existing data exchange. * *

Sample code: * @@ -771,8 +776,8 @@ public final UnaryCallable updateDataEx * } * } * - * @param name Required. Resource name of the DataExchange to delete. e.g. - * `projects/myproject/locations/US/dataExchanges/123`. + * @param name Required. The full name of the data exchange resource that you want to delete. For + * example, `projects/myproject/locations/US/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteDataExchange(DataExchangeName name) { @@ -785,7 +790,7 @@ public final void deleteDataExchange(DataExchangeName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single DataExchange. + * Deletes an existing data exchange. * *

Sample code: * @@ -798,8 +803,8 @@ public final void deleteDataExchange(DataExchangeName name) { * } * } * - * @param name Required. Resource name of the DataExchange to delete. e.g. - * `projects/myproject/locations/US/dataExchanges/123`. + * @param name Required. The full name of the data exchange resource that you want to delete. For + * example, `projects/myproject/locations/US/dataExchanges/123`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteDataExchange(String name) { @@ -810,7 +815,7 @@ public final void deleteDataExchange(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single DataExchange. + * Deletes an existing data exchange. * *

Sample code: * @@ -835,7 +840,7 @@ public final void deleteDataExchange(DeleteDataExchangeRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single DataExchange. + * Deletes an existing data exchange. * *

Sample code: * @@ -860,7 +865,7 @@ public final UnaryCallable deleteDataExchangeC // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Listings in a given project and location. + * Lists all listings in a given project and location. * *

Sample code: * @@ -889,7 +894,7 @@ public final ListListingsPagedResponse listListings(DataExchangeName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Listings in a given project and location. + * Lists all listings in a given project and location. * *

Sample code: * @@ -915,7 +920,7 @@ public final ListListingsPagedResponse listListings(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Listings in a given project and location. + * Lists all listings in a given project and location. * *

Sample code: * @@ -945,7 +950,7 @@ public final ListListingsPagedResponse listListings(ListListingsRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Listings in a given project and location. + * Lists all listings in a given project and location. * *

Sample code: * @@ -976,7 +981,7 @@ public final ListListingsPagedResponse listListings(ListListingsRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Listings in a given project and location. + * Lists all listings in a given project and location. * *

Sample code: * @@ -1013,7 +1018,7 @@ public final UnaryCallable listListin // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Listing. + * Gets the details of a listing. * *

Sample code: * @@ -1038,7 +1043,7 @@ public final Listing getListing(ListingName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Listing. + * Gets the details of a listing. * *

Sample code: * @@ -1063,7 +1068,7 @@ public final Listing getListing(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Listing. + * Gets the details of a listing. * *

Sample code: * @@ -1090,7 +1095,7 @@ public final Listing getListing(GetListingRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Listing. + * Gets the details of a listing. * *

Sample code: * @@ -1117,7 +1122,7 @@ public final UnaryCallable getListingCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Listing in a given project and location. + * Creates a new listing. * *

Sample code: * @@ -1147,7 +1152,7 @@ public final Listing createListing(DataExchangeName parent, Listing listing) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Listing in a given project and location. + * Creates a new listing. * *

Sample code: * @@ -1174,7 +1179,7 @@ public final Listing createListing(String parent, Listing listing) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Listing in a given project and location. + * Creates a new listing. * *

Sample code: * @@ -1202,7 +1207,7 @@ public final Listing createListing(CreateListingRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Listing in a given project and location. + * Creates a new listing. * *

Sample code: * @@ -1230,7 +1235,7 @@ public final UnaryCallable createListingCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Listing. + * Updates an existing listing. * *

Sample code: * @@ -1245,9 +1250,9 @@ public final UnaryCallable createListingCallable( * } * * @param listing Required. The listing to update. - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the - * Listing resource by the update. The fields specified in the update_mask are relative to the - * resource, not the full request. + * @param updateMask Required. Field mask specifies the fields to update in the listing resource. + * The fields specified in the `updateMask` are relative to the resource and are not a full + * request. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Listing updateListing(Listing listing, FieldMask updateMask) { @@ -1258,7 +1263,7 @@ public final Listing updateListing(Listing listing, FieldMask updateMask) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Listing. + * Updates an existing listing. * *

Sample code: * @@ -1284,7 +1289,7 @@ public final Listing updateListing(UpdateListingRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Listing. + * Updates an existing listing. * *

Sample code: * @@ -1310,8 +1315,7 @@ public final UnaryCallable updateListingCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Listing, as long as there are no subscriptions associated with the source of - * this Listing. + * Deletes a listing. * *

Sample code: * @@ -1336,8 +1340,7 @@ public final void deleteListing(ListingName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Listing, as long as there are no subscriptions associated with the source of - * this Listing. + * Deletes a listing. * *

Sample code: * @@ -1362,8 +1365,7 @@ public final void deleteListing(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Listing, as long as there are no subscriptions associated with the source of - * this Listing. + * Deletes a listing. * *

Sample code: * @@ -1390,8 +1392,7 @@ public final void deleteListing(DeleteListingRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a single Listing, as long as there are no subscriptions associated with the source of - * this Listing. + * Deletes a listing. * *

Sample code: * @@ -1418,11 +1419,11 @@ public final UnaryCallable deleteListingCallable() // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Subscribes to a single Listing. + * Subscribes to a listing. * - *

Data Exchange currently supports one type of Listing: a BigQuery dataset. Upon subscription - * to a Listing for a BigQuery dataset, Data Exchange creates a linked dataset in the subscriber's - * project. + *

Currently, with Analytics Hub, you can create listings that reference only BigQuery + * datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked + * dataset in the subscriber's project. * *

Sample code: * @@ -1435,7 +1436,7 @@ public final UnaryCallable deleteListingCallable() * } * } * - * @param name Required. Resource name of the listing to subscribe to. e.g. + * @param name Required. Resource name of the listing that you want to subscribe to. e.g. * `projects/myproject/locations/US/dataExchanges/123/listings/456`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1447,11 +1448,11 @@ public final SubscribeListingResponse subscribeListing(ListingName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Subscribes to a single Listing. + * Subscribes to a listing. * - *

Data Exchange currently supports one type of Listing: a BigQuery dataset. Upon subscription - * to a Listing for a BigQuery dataset, Data Exchange creates a linked dataset in the subscriber's - * project. + *

Currently, with Analytics Hub, you can create listings that reference only BigQuery + * datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked + * dataset in the subscriber's project. * *

Sample code: * @@ -1465,7 +1466,7 @@ public final SubscribeListingResponse subscribeListing(ListingName name) { * } * } * - * @param name Required. Resource name of the listing to subscribe to. e.g. + * @param name Required. Resource name of the listing that you want to subscribe to. e.g. * `projects/myproject/locations/US/dataExchanges/123/listings/456`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1476,11 +1477,11 @@ public final SubscribeListingResponse subscribeListing(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Subscribes to a single Listing. + * Subscribes to a listing. * - *

Data Exchange currently supports one type of Listing: a BigQuery dataset. Upon subscription - * to a Listing for a BigQuery dataset, Data Exchange creates a linked dataset in the subscriber's - * project. + *

Currently, with Analytics Hub, you can create listings that reference only BigQuery + * datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked + * dataset in the subscriber's project. * *

Sample code: * @@ -1507,11 +1508,11 @@ public final SubscribeListingResponse subscribeListing(SubscribeListingRequest r // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Subscribes to a single Listing. + * Subscribes to a listing. * - *

Data Exchange currently supports one type of Listing: a BigQuery dataset. Upon subscription - * to a Listing for a BigQuery dataset, Data Exchange creates a linked dataset in the subscriber's - * project. + *

Currently, with Analytics Hub, you can create listings that reference only BigQuery + * datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked + * dataset in the subscriber's project. * *

Sample code: * @@ -1539,7 +1540,7 @@ public final SubscribeListingResponse subscribeListing(SubscribeListingRequest r // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the IAM policy for a dataExchange or a listing. + * Gets the IAM policy. * *

Sample code: * @@ -1566,7 +1567,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the IAM policy for a dataExchange or a listing. + * Gets the IAM policy. * *

Sample code: * @@ -1593,7 +1594,7 @@ public final UnaryCallable getIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the IAM policy for a dataExchange or a listing. + * Sets the IAM policy. * *

Sample code: * @@ -1621,7 +1622,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the IAM policy for a dataExchange or a listing. + * Sets the IAM policy. * *

Sample code: * @@ -1649,7 +1650,7 @@ public final UnaryCallable setIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the permissions that a caller has on a specified dataExchange or listing. + * Returns the permissions that a caller has. * *

Sample code: * @@ -1676,7 +1677,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the permissions that a caller has on a specified dataExchange or listing. + * Returns the permissions that a caller has. * *

Sample code: * @@ -1702,6 +1703,148 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq return stub.testIamPermissionsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : analyticsHubServiceClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsHubServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         analyticsHubServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = analyticsHubServiceClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsHubServiceClient analyticsHubServiceClient = AnalyticsHubServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       analyticsHubServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + @Override public final void close() { stub.close(); @@ -1734,10 +1877,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListDataExchangesPagedResponse extends AbstractPagedListResponse< - ListDataExchangesRequest, - ListDataExchangesResponse, - DataExchange, - ListDataExchangesPage, + ListDataExchangesRequest, ListDataExchangesResponse, DataExchange, ListDataExchangesPage, ListDataExchangesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1758,9 +1898,7 @@ private ListDataExchangesPagedResponse(ListDataExchangesPage page) { public static class ListDataExchangesPage extends AbstractPage< - ListDataExchangesRequest, - ListDataExchangesResponse, - DataExchange, + ListDataExchangesRequest, ListDataExchangesResponse, DataExchange, ListDataExchangesPage> { private ListDataExchangesPage( @@ -1790,10 +1928,7 @@ public ApiFuture createPageAsync( public static class ListDataExchangesFixedSizeCollection extends AbstractFixedSizeCollection< - ListDataExchangesRequest, - ListDataExchangesResponse, - DataExchange, - ListDataExchangesPage, + ListDataExchangesRequest, ListDataExchangesResponse, DataExchange, ListDataExchangesPage, ListDataExchangesFixedSizeCollection> { private ListDataExchangesFixedSizeCollection( @@ -1814,11 +1949,8 @@ protected ListDataExchangesFixedSizeCollection createCollection( public static class ListOrgDataExchangesPagedResponse extends AbstractPagedListResponse< - ListOrgDataExchangesRequest, - ListOrgDataExchangesResponse, - DataExchange, - ListOrgDataExchangesPage, - ListOrgDataExchangesFixedSizeCollection> { + ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, DataExchange, + ListOrgDataExchangesPage, ListOrgDataExchangesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -1839,9 +1971,7 @@ private ListOrgDataExchangesPagedResponse(ListOrgDataExchangesPage page) { public static class ListOrgDataExchangesPage extends AbstractPage< - ListOrgDataExchangesRequest, - ListOrgDataExchangesResponse, - DataExchange, + ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, DataExchange, ListOrgDataExchangesPage> { private ListOrgDataExchangesPage( @@ -1874,11 +2004,8 @@ public ApiFuture createPageAsync( public static class ListOrgDataExchangesFixedSizeCollection extends AbstractFixedSizeCollection< - ListOrgDataExchangesRequest, - ListOrgDataExchangesResponse, - DataExchange, - ListOrgDataExchangesPage, - ListOrgDataExchangesFixedSizeCollection> { + ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, DataExchange, + ListOrgDataExchangesPage, ListOrgDataExchangesFixedSizeCollection> { private ListOrgDataExchangesFixedSizeCollection( List pages, int collectionSize) { @@ -1898,10 +2025,7 @@ protected ListOrgDataExchangesFixedSizeCollection createCollection( public static class ListListingsPagedResponse extends AbstractPagedListResponse< - ListListingsRequest, - ListListingsResponse, - Listing, - ListListingsPage, + ListListingsRequest, ListListingsResponse, Listing, ListListingsPage, ListListingsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1950,10 +2074,7 @@ public ApiFuture createPageAsync( public static class ListListingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListListingsRequest, - ListListingsResponse, - Listing, - ListListingsPage, + ListListingsRequest, ListListingsResponse, Listing, ListListingsPage, ListListingsFixedSizeCollection> { private ListListingsFixedSizeCollection(List pages, int collectionSize) { @@ -1970,4 +2091,74 @@ protected ListListingsFixedSizeCollection createCollection( return new ListListingsFixedSizeCollection(pages, collectionSize); } } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java similarity index 89% rename from google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java rename to owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java index 083506b..51673a1 100644 --- a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse; import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListListingsPagedResponse; +import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListLocationsPagedResponse; import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse; import com.google.api.core.ApiFunction; @@ -30,9 +31,14 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.dataexchange.v1beta1.stub.AnalyticsHubServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -50,9 +56,9 @@ *

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

    - *
  • The default service address (analyticshub.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 (analyticshub.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 @@ -91,8 +97,7 @@ public class AnalyticsHubServiceSettings extends ClientSettings listOrgDataExchangesSettings() { return ((AnalyticsHubServiceStubSettings) getStubSettings()).listOrgDataExchangesSettings(); @@ -166,6 +171,17 @@ public UnaryCallSettings setIamPolicySettings() { return ((AnalyticsHubServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); } + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((AnalyticsHubServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((AnalyticsHubServiceStubSettings) getStubSettings()).getLocationSettings(); + } + public static final AnalyticsHubServiceSettings create(AnalyticsHubServiceStubSettings stub) throws IOException { return new AnalyticsHubServiceSettings.Builder(stub.toBuilder()).build(); @@ -290,8 +306,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listOrgDataExchanges. */ public PagedCallSettings.Builder< - ListOrgDataExchangesRequest, - ListOrgDataExchangesResponse, + ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, ListOrgDataExchangesPagedResponse> listOrgDataExchangesSettings() { return getStubSettingsBuilder().listOrgDataExchangesSettings(); @@ -370,6 +385,18 @@ public UnaryCallSettings.Builder setIamPolicySettin return getStubSettingsBuilder().testIamPermissionsSettings(); } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + @Override public AnalyticsHubServiceSettings build() throws IOException { return new AnalyticsHubServiceSettings(this); diff --git a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/gapic_metadata.json b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/gapic_metadata.json similarity index 91% rename from google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/gapic_metadata.json rename to owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/gapic_metadata.json index a7285e6..e19c8f0 100644 --- a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/gapic_metadata.json +++ b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/gapic_metadata.json @@ -31,12 +31,18 @@ "GetListing": { "methods": ["getListing", "getListing", "getListing", "getListingCallable"] }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, "ListDataExchanges": { "methods": ["listDataExchanges", "listDataExchanges", "listDataExchanges", "listDataExchangesPagedCallable", "listDataExchangesCallable"] }, "ListListings": { "methods": ["listListings", "listListings", "listListings", "listListingsPagedCallable", "listListingsCallable"] }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, "ListOrgDataExchanges": { "methods": ["listOrgDataExchanges", "listOrgDataExchanges", "listOrgDataExchangesPagedCallable", "listOrgDataExchangesCallable"] }, diff --git a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/package-info.java b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/package-info.java similarity index 76% rename from google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/package-info.java rename to owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/package-info.java index 2ae458d..0d28f9a 100644 --- a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/package-info.java +++ b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/package-info.java @@ -21,10 +21,11 @@ * *

======================= AnalyticsHubServiceClient ======================= * - *

Service Description: The AnalyticsHubService API facilitates data sharing within and across - * organizations. It allows data providers to publish Listings --- a discoverable and searchable SKU - * representing a dataset. Data consumers can subscribe to Listings. Upon subscription, AnalyticsHub - * provisions a "Linked Datasets" surfacing the data in the consumer's project. + *

Service Description: The `AnalyticsHubService` API facilitates data sharing within and across + * organizations. It allows data providers to publish listings that reference shared datasets. With + * Analytics Hub, users can discover and search for listings that they have access to. Subscribers + * can view and subscribe to listings. When you subscribe to a listing, Analytics Hub creates a + * linked dataset in your project. * *

Sample for AnalyticsHubServiceClient: * diff --git a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStub.java similarity index 88% rename from google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStub.java index be9ce9b..3a474a7 100644 --- a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse; import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListListingsPagedResponse; +import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListLocationsPagedResponse; import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse; import com.google.api.core.BetaApi; @@ -41,6 +42,10 @@ import com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse; import com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest; import com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -137,6 +142,19 @@ public UnaryCallable setIamPolicyCallable() { throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); } + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java similarity index 86% rename from google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java index 866c6cc..fb2bd6e 100644 --- a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse; import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListListingsPagedResponse; +import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListLocationsPagedResponse; import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse; import com.google.api.core.ApiFunction; @@ -63,6 +64,10 @@ import com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse; import com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest; import com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -85,9 +90,9 @@ *

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

    - *
  • The default service address (analyticshub.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 (analyticshub.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 @@ -127,8 +132,7 @@ public class AnalyticsHubServiceStubSettings extends StubSettings listDataExchangesSettings; private final PagedCallSettings< - ListOrgDataExchangesRequest, - ListOrgDataExchangesResponse, + ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, ListOrgDataExchangesPagedResponse> listOrgDataExchangesSettings; private final UnaryCallSettings getDataExchangeSettings; @@ -150,6 +154,10 @@ public class AnalyticsHubServiceStubSettings extends StubSettings setIamPolicySettings; private final UnaryCallSettings testIamPermissionsSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; private static final PagedListDescriptor< ListDataExchangesRequest, ListDataExchangesResponse, DataExchange> @@ -267,12 +275,47 @@ public Iterable

extractResources(ListListingsResponse payload) { } }; + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList() == null + ? ImmutableList.of() + : payload.getLocationsList(); + } + }; + private static final PagedListResponseFactory< ListDataExchangesRequest, ListDataExchangesResponse, ListDataExchangesPagedResponse> LIST_DATA_EXCHANGES_PAGE_STR_FACT = new PagedListResponseFactory< - ListDataExchangesRequest, - ListDataExchangesResponse, + ListDataExchangesRequest, ListDataExchangesResponse, ListDataExchangesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -289,13 +332,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListOrgDataExchangesRequest, - ListOrgDataExchangesResponse, + ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, ListOrgDataExchangesPagedResponse> LIST_ORG_DATA_EXCHANGES_PAGE_STR_FACT = new PagedListResponseFactory< - ListOrgDataExchangesRequest, - ListOrgDataExchangesResponse, + ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, ListOrgDataExchangesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -328,6 +369,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to listDataExchanges. */ public PagedCallSettings< ListDataExchangesRequest, ListDataExchangesResponse, ListDataExchangesPagedResponse> @@ -337,8 +395,7 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listOrgDataExchanges. */ public PagedCallSettings< - ListOrgDataExchangesRequest, - ListOrgDataExchangesResponse, + ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, ListOrgDataExchangesPagedResponse> listOrgDataExchangesSettings() { return listOrgDataExchangesSettings; @@ -412,6 +469,17 @@ public UnaryCallSettings setIamPolicySettings() { return testIamPermissionsSettings; } + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + public AnalyticsHubServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -533,6 +601,8 @@ protected AnalyticsHubServiceStubSettings(Builder settingsBuilder) throws IOExce getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); } /** Builder for AnalyticsHubServiceStubSettings. */ @@ -543,8 +613,7 @@ public static class Builder ListDataExchangesRequest, ListDataExchangesResponse, ListDataExchangesPagedResponse> listDataExchangesSettings; private final PagedCallSettings.Builder< - ListOrgDataExchangesRequest, - ListOrgDataExchangesResponse, + ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, ListOrgDataExchangesPagedResponse> listOrgDataExchangesSettings; private final UnaryCallSettings.Builder @@ -568,6 +637,10 @@ public static class Builder private final UnaryCallSettings.Builder setIamPolicySettings; private final UnaryCallSettings.Builder testIamPermissionsSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -624,6 +697,8 @@ protected Builder(ClientContext clientContext) { getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -641,7 +716,9 @@ protected Builder(ClientContext clientContext) { subscribeListingSettings, getIamPolicySettings, setIamPolicySettings, - testIamPermissionsSettings); + testIamPermissionsSettings, + listLocationsSettings, + getLocationSettings); initDefaults(this); } @@ -663,6 +740,8 @@ protected Builder(AnalyticsHubServiceStubSettings settings) { getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -680,7 +759,9 @@ protected Builder(AnalyticsHubServiceStubSettings settings) { subscribeListingSettings, getIamPolicySettings, setIamPolicySettings, - testIamPermissionsSettings); + testIamPermissionsSettings, + listLocationsSettings, + getLocationSettings); } private static Builder createDefault() { @@ -785,6 +866,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + return builder; } @@ -812,8 +903,7 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listOrgDataExchanges. */ public PagedCallSettings.Builder< - ListOrgDataExchangesRequest, - ListOrgDataExchangesResponse, + ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, ListOrgDataExchangesPagedResponse> listOrgDataExchangesSettings() { return listOrgDataExchangesSettings; @@ -892,6 +982,18 @@ public UnaryCallSettings.Builder setIamPolicySettin return testIamPermissionsSettings; } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + @Override public AnalyticsHubServiceStubSettings build() throws IOException { return new AnalyticsHubServiceStubSettings(this); diff --git a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceCallableFactory.java similarity index 100% rename from google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceCallableFactory.java diff --git a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java similarity index 89% rename from google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java index 7ca21d7..b5ed32f 100644 --- a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse; import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListListingsPagedResponse; +import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListLocationsPagedResponse; import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse; import com.google.api.core.BetaApi; @@ -45,6 +46,10 @@ import com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse; import com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest; import com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.collect.ImmutableMap; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; @@ -56,6 +61,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; @@ -229,6 +235,25 @@ public class GrpcAnalyticsHubServiceStub extends AnalyticsHubServiceStub { ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + private final UnaryCallable listDataExchangesCallable; private final UnaryCallable @@ -254,6 +279,10 @@ public class GrpcAnalyticsHubServiceStub extends AnalyticsHubServiceStub { private final UnaryCallable setIamPolicyCallable; private final UnaryCallable testIamPermissionsCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -454,6 +483,26 @@ protected GrpcAnalyticsHubServiceStub( return params.build(); }) .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); this.listDataExchangesCallable = callableFactory.createUnaryCallable( @@ -525,6 +574,15 @@ protected GrpcAnalyticsHubServiceStub( testIamPermissionsTransportSettings, settings.testIamPermissionsSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -630,6 +688,22 @@ public UnaryCallable setIamPolicyCallable() { return testIamPermissionsCallable; } + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + @Override public final void close() { try { diff --git a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceCallableFactory.java similarity index 100% rename from google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceCallableFactory.java diff --git a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceStub.java similarity index 89% rename from google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceStub.java index b11de5e..98fcc1a 100644 --- a/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse; import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListListingsPagedResponse; +import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListLocationsPagedResponse; import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse; import com.google.api.core.BetaApi; @@ -50,6 +51,10 @@ import com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse; import com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest; import com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -629,6 +634,72 @@ public class HttpJsonAnalyticsHubServiceStub extends AnalyticsHubServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*}/locations", + 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(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*}", + 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(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable listDataExchangesCallable; private final UnaryCallable @@ -654,6 +725,10 @@ public class HttpJsonAnalyticsHubServiceStub extends AnalyticsHubServiceStub { private final UnaryCallable setIamPolicyCallable; private final UnaryCallable testIamPermissionsCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -781,6 +856,17 @@ protected HttpJsonAnalyticsHubServiceStub( .setMethodDescriptor(testIamPermissionsMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); this.listDataExchangesCallable = callableFactory.createUnaryCallable( @@ -852,6 +938,15 @@ protected HttpJsonAnalyticsHubServiceStub( testIamPermissionsTransportSettings, settings.testIamPermissionsSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -875,6 +970,8 @@ public static List getMethodDescriptors() { methodDescriptors.add(getIamPolicyMethodDescriptor); methodDescriptors.add(setIamPolicyMethodDescriptor); methodDescriptors.add(testIamPermissionsMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; } @@ -974,6 +1071,22 @@ public UnaryCallable setIamPolicyCallable() { return testIamPermissionsCallable; } + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + @Override public final void close() { try { diff --git a/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientHttpJsonTest.java b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientHttpJsonTest.java similarity index 91% rename from google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientHttpJsonTest.java rename to owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientHttpJsonTest.java index bf1c735..0d85ee0 100644 --- a/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientHttpJsonTest.java +++ b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientHttpJsonTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse; import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListListingsPagedResponse; +import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListLocationsPagedResponse; import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -29,8 +30,11 @@ 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.bigquery.dataexchange.common.Category; import com.google.cloud.bigquery.dataexchange.v1beta1.stub.HttpJsonAnalyticsHubServiceStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.collect.Lists; import com.google.iam.v1.AuditConfig; import com.google.iam.v1.Binding; @@ -40,12 +44,14 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Any; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import javax.annotation.Generated; import org.junit.After; @@ -708,7 +714,7 @@ public void getListingTest() throws Exception { .setDocumentation("documentation1587405498") .setIcon(ByteString.EMPTY) .setDataProvider(DataProvider.newBuilder().build()) - .addAllCategories(new ArrayList()) + .addAllCategories(new ArrayList()) .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .build(); @@ -763,7 +769,7 @@ public void getListingTest2() throws Exception { .setDocumentation("documentation1587405498") .setIcon(ByteString.EMPTY) .setDataProvider(DataProvider.newBuilder().build()) - .addAllCategories(new ArrayList()) + .addAllCategories(new ArrayList()) .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .build(); @@ -820,7 +826,7 @@ public void createListingTest() throws Exception { .setDocumentation("documentation1587405498") .setIcon(ByteString.EMPTY) .setDataProvider(DataProvider.newBuilder().build()) - .addAllCategories(new ArrayList()) + .addAllCategories(new ArrayList()) .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .build(); @@ -877,7 +883,7 @@ public void createListingTest2() throws Exception { .setDocumentation("documentation1587405498") .setIcon(ByteString.EMPTY) .setDataProvider(DataProvider.newBuilder().build()) - .addAllCategories(new ArrayList()) + .addAllCategories(new ArrayList()) .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .build(); @@ -935,7 +941,7 @@ public void updateListingTest() throws Exception { .setDocumentation("documentation1587405498") .setIcon(ByteString.EMPTY) .setDataProvider(DataProvider.newBuilder().build()) - .addAllCategories(new ArrayList()) + .addAllCategories(new ArrayList()) .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .build(); @@ -952,7 +958,7 @@ public void updateListingTest() throws Exception { .setDocumentation("documentation1587405498") .setIcon(ByteString.EMPTY) .setDataProvider(DataProvider.newBuilder().build()) - .addAllCategories(new ArrayList()) + .addAllCategories(new ArrayList()) .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .build(); @@ -995,7 +1001,7 @@ public void updateListingExceptionTest() throws Exception { .setDocumentation("documentation1587405498") .setIcon(ByteString.EMPTY) .setDataProvider(DataProvider.newBuilder().build()) - .addAllCategories(new ArrayList()) + .addAllCategories(new ArrayList()) .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .build(); @@ -1340,4 +1346,120 @@ public void testIamPermissionsExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientTest.java b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientTest.java similarity index 90% rename from google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientTest.java index 32ecb80..1c6928c 100644 --- a/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientTest.java +++ b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListDataExchangesPagedResponse; import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListListingsPagedResponse; +import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListLocationsPagedResponse; import static com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient.ListOrgDataExchangesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -27,7 +28,10 @@ import com.google.api.gax.grpc.testing.MockServiceHelper; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.cloud.bigquery.dataexchange.common.Category; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.collect.Lists; import com.google.iam.v1.AuditConfig; import com.google.iam.v1.Binding; @@ -38,6 +42,7 @@ import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; @@ -45,6 +50,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.UUID; import javax.annotation.Generated; @@ -58,6 +64,7 @@ @Generated("by gapic-generator-java") public class AnalyticsHubServiceClientTest { private static MockAnalyticsHubService mockAnalyticsHubService; + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; private AnalyticsHubServiceClient client; @@ -65,9 +72,11 @@ public class AnalyticsHubServiceClientTest { @BeforeClass public static void startStaticServer() { mockAnalyticsHubService = new MockAnalyticsHubService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockAnalyticsHubService)); + UUID.randomUUID().toString(), + Arrays.asList(mockAnalyticsHubService, mockLocations)); mockServiceHelper.start(); } @@ -624,7 +633,7 @@ public void getListingTest() throws Exception { .setDocumentation("documentation1587405498") .setIcon(ByteString.EMPTY) .setDataProvider(DataProvider.newBuilder().build()) - .addAllCategories(new ArrayList()) + .addAllCategories(new ArrayList()) .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .build(); @@ -673,7 +682,7 @@ public void getListingTest2() throws Exception { .setDocumentation("documentation1587405498") .setIcon(ByteString.EMPTY) .setDataProvider(DataProvider.newBuilder().build()) - .addAllCategories(new ArrayList()) + .addAllCategories(new ArrayList()) .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .build(); @@ -722,7 +731,7 @@ public void createListingTest() throws Exception { .setDocumentation("documentation1587405498") .setIcon(ByteString.EMPTY) .setDataProvider(DataProvider.newBuilder().build()) - .addAllCategories(new ArrayList()) + .addAllCategories(new ArrayList()) .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .build(); @@ -774,7 +783,7 @@ public void createListingTest2() throws Exception { .setDocumentation("documentation1587405498") .setIcon(ByteString.EMPTY) .setDataProvider(DataProvider.newBuilder().build()) - .addAllCategories(new ArrayList()) + .addAllCategories(new ArrayList()) .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .build(); @@ -826,7 +835,7 @@ public void updateListingTest() throws Exception { .setDocumentation("documentation1587405498") .setIcon(ByteString.EMPTY) .setDataProvider(DataProvider.newBuilder().build()) - .addAllCategories(new ArrayList()) + .addAllCategories(new ArrayList()) .setPublisher(Publisher.newBuilder().build()) .setRequestAccess("requestAccess871967955") .build(); @@ -1156,4 +1165,105 @@ public void testIamPermissionsExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubService.java b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubService.java similarity index 100% rename from google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubService.java rename to owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubService.java diff --git a/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubServiceImpl.java b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubServiceImpl.java similarity index 100% rename from google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubServiceImpl.java rename to owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubServiceImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocations.java b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocations.java new file mode 100644 index 0000000..4195aac --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.dataexchange.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocationsImpl.java b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocationsImpl.java new file mode 100644 index 0000000..42b0f70 --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocationsImpl.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.bigquery.dataexchange.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLocation(GetLocationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Location) { + requests.add(request); + responseObserver.onNext(((Location) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetLocation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Location.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java new file mode 100644 index 0000000..c31be20 --- /dev/null +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java @@ -0,0 +1,1552 @@ +package com.google.cloud.bigquery.dataexchange.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * The `AnalyticsHubService` API facilitates data sharing within and across
+ * organizations. It allows data providers to publish listings that reference
+ * shared datasets. With Analytics Hub, users can discover and search for
+ * listings that they have access to. Subscribers can view and subscribe to
+ * listings. When you subscribe to a listing, Analytics Hub creates a linked
+ * dataset in your project.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AnalyticsHubServiceGrpc { + + private AnalyticsHubServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListDataExchangesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDataExchanges", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDataExchangesMethod() { + io.grpc.MethodDescriptor getListDataExchangesMethod; + if ((getListDataExchangesMethod = AnalyticsHubServiceGrpc.getListDataExchangesMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getListDataExchangesMethod = AnalyticsHubServiceGrpc.getListDataExchangesMethod) == null) { + AnalyticsHubServiceGrpc.getListDataExchangesMethod = getListDataExchangesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataExchanges")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.getDefaultInstance())) + .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("ListDataExchanges")) + .build(); + } + } + } + return getListDataExchangesMethod; + } + + private static volatile io.grpc.MethodDescriptor getListOrgDataExchangesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOrgDataExchanges", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListOrgDataExchangesMethod() { + io.grpc.MethodDescriptor getListOrgDataExchangesMethod; + if ((getListOrgDataExchangesMethod = AnalyticsHubServiceGrpc.getListOrgDataExchangesMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getListOrgDataExchangesMethod = AnalyticsHubServiceGrpc.getListOrgDataExchangesMethod) == null) { + AnalyticsHubServiceGrpc.getListOrgDataExchangesMethod = getListOrgDataExchangesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOrgDataExchanges")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.getDefaultInstance())) + .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("ListOrgDataExchanges")) + .build(); + } + } + } + return getListOrgDataExchangesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetDataExchangeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataExchange", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetDataExchangeMethod() { + io.grpc.MethodDescriptor getGetDataExchangeMethod; + if ((getGetDataExchangeMethod = AnalyticsHubServiceGrpc.getGetDataExchangeMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getGetDataExchangeMethod = AnalyticsHubServiceGrpc.getGetDataExchangeMethod) == null) { + AnalyticsHubServiceGrpc.getGetDataExchangeMethod = getGetDataExchangeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataExchange")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance())) + .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("GetDataExchange")) + .build(); + } + } + } + return getGetDataExchangeMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateDataExchangeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDataExchange", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateDataExchangeMethod() { + io.grpc.MethodDescriptor getCreateDataExchangeMethod; + if ((getCreateDataExchangeMethod = AnalyticsHubServiceGrpc.getCreateDataExchangeMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getCreateDataExchangeMethod = AnalyticsHubServiceGrpc.getCreateDataExchangeMethod) == null) { + AnalyticsHubServiceGrpc.getCreateDataExchangeMethod = getCreateDataExchangeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataExchange")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance())) + .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("CreateDataExchange")) + .build(); + } + } + } + return getCreateDataExchangeMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateDataExchangeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataExchange", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateDataExchangeMethod() { + io.grpc.MethodDescriptor getUpdateDataExchangeMethod; + if ((getUpdateDataExchangeMethod = AnalyticsHubServiceGrpc.getUpdateDataExchangeMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getUpdateDataExchangeMethod = AnalyticsHubServiceGrpc.getUpdateDataExchangeMethod) == null) { + AnalyticsHubServiceGrpc.getUpdateDataExchangeMethod = getUpdateDataExchangeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataExchange")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance())) + .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("UpdateDataExchange")) + .build(); + } + } + } + return getUpdateDataExchangeMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteDataExchangeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDataExchange", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteDataExchangeMethod() { + io.grpc.MethodDescriptor getDeleteDataExchangeMethod; + if ((getDeleteDataExchangeMethod = AnalyticsHubServiceGrpc.getDeleteDataExchangeMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getDeleteDataExchangeMethod = AnalyticsHubServiceGrpc.getDeleteDataExchangeMethod) == null) { + AnalyticsHubServiceGrpc.getDeleteDataExchangeMethod = getDeleteDataExchangeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataExchange")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("DeleteDataExchange")) + .build(); + } + } + } + return getDeleteDataExchangeMethod; + } + + private static volatile io.grpc.MethodDescriptor getListListingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListListings", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListListingsMethod() { + io.grpc.MethodDescriptor getListListingsMethod; + if ((getListListingsMethod = AnalyticsHubServiceGrpc.getListListingsMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getListListingsMethod = AnalyticsHubServiceGrpc.getListListingsMethod) == null) { + AnalyticsHubServiceGrpc.getListListingsMethod = getListListingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListListings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("ListListings")) + .build(); + } + } + } + return getListListingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetListingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetListing", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetListingMethod() { + io.grpc.MethodDescriptor getGetListingMethod; + if ((getGetListingMethod = AnalyticsHubServiceGrpc.getGetListingMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getGetListingMethod = AnalyticsHubServiceGrpc.getGetListingMethod) == null) { + AnalyticsHubServiceGrpc.getGetListingMethod = getGetListingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetListing")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance())) + .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("GetListing")) + .build(); + } + } + } + return getGetListingMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateListingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateListing", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateListingMethod() { + io.grpc.MethodDescriptor getCreateListingMethod; + if ((getCreateListingMethod = AnalyticsHubServiceGrpc.getCreateListingMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getCreateListingMethod = AnalyticsHubServiceGrpc.getCreateListingMethod) == null) { + AnalyticsHubServiceGrpc.getCreateListingMethod = getCreateListingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateListing")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance())) + .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("CreateListing")) + .build(); + } + } + } + return getCreateListingMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateListingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateListing", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateListingMethod() { + io.grpc.MethodDescriptor getUpdateListingMethod; + if ((getUpdateListingMethod = AnalyticsHubServiceGrpc.getUpdateListingMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getUpdateListingMethod = AnalyticsHubServiceGrpc.getUpdateListingMethod) == null) { + AnalyticsHubServiceGrpc.getUpdateListingMethod = getUpdateListingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateListing")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance())) + .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("UpdateListing")) + .build(); + } + } + } + return getUpdateListingMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteListingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteListing", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteListingMethod() { + io.grpc.MethodDescriptor getDeleteListingMethod; + if ((getDeleteListingMethod = AnalyticsHubServiceGrpc.getDeleteListingMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getDeleteListingMethod = AnalyticsHubServiceGrpc.getDeleteListingMethod) == null) { + AnalyticsHubServiceGrpc.getDeleteListingMethod = getDeleteListingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteListing")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("DeleteListing")) + .build(); + } + } + } + return getDeleteListingMethod; + } + + private static volatile io.grpc.MethodDescriptor getSubscribeListingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SubscribeListing", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSubscribeListingMethod() { + io.grpc.MethodDescriptor getSubscribeListingMethod; + if ((getSubscribeListingMethod = AnalyticsHubServiceGrpc.getSubscribeListingMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getSubscribeListingMethod = AnalyticsHubServiceGrpc.getSubscribeListingMethod) == null) { + AnalyticsHubServiceGrpc.getSubscribeListingMethod = getSubscribeListingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubscribeListing")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.getDefaultInstance())) + .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("SubscribeListing")) + .build(); + } + } + } + return getSubscribeListingMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { + io.grpc.MethodDescriptor getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = AnalyticsHubServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getGetIamPolicyMethod = AnalyticsHubServiceGrpc.getGetIamPolicyMethod) == null) { + AnalyticsHubServiceGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { + io.grpc.MethodDescriptor getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = AnalyticsHubServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getSetIamPolicyMethod = AnalyticsHubServiceGrpc.getSetIamPolicyMethod) == null) { + AnalyticsHubServiceGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = AnalyticsHubServiceGrpc.getTestIamPermissionsMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getTestIamPermissionsMethod = AnalyticsHubServiceGrpc.getTestIamPermissionsMethod) == null) { + AnalyticsHubServiceGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AnalyticsHubServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AnalyticsHubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsHubServiceStub(channel, callOptions); + } + }; + return AnalyticsHubServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AnalyticsHubServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AnalyticsHubServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsHubServiceBlockingStub(channel, callOptions); + } + }; + return AnalyticsHubServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AnalyticsHubServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AnalyticsHubServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsHubServiceFutureStub(channel, callOptions); + } + }; + return AnalyticsHubServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * The `AnalyticsHubService` API facilitates data sharing within and across
+   * organizations. It allows data providers to publish listings that reference
+   * shared datasets. With Analytics Hub, users can discover and search for
+   * listings that they have access to. Subscribers can view and subscribe to
+   * listings. When you subscribe to a listing, Analytics Hub creates a linked
+   * dataset in your project.
+   * 
+ */ + public static abstract class AnalyticsHubServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists all data exchanges in a given project and location.
+     * 
+ */ + public void listDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDataExchangesMethod(), responseObserver); + } + + /** + *
+     * Lists all data exchanges from projects in a given organization and
+     * location.
+     * 
+ */ + public void listOrgDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOrgDataExchangesMethod(), responseObserver); + } + + /** + *
+     * Gets the details of a data exchange.
+     * 
+ */ + public void getDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDataExchangeMethod(), responseObserver); + } + + /** + *
+     * Creates a new data exchange.
+     * 
+ */ + public void createDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDataExchangeMethod(), responseObserver); + } + + /** + *
+     * Updates an existing data exchange.
+     * 
+ */ + public void updateDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDataExchangeMethod(), responseObserver); + } + + /** + *
+     * Deletes an existing data exchange.
+     * 
+ */ + public void deleteDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDataExchangeMethod(), responseObserver); + } + + /** + *
+     * Lists all listings in a given project and location.
+     * 
+ */ + public void listListings(com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListListingsMethod(), responseObserver); + } + + /** + *
+     * Gets the details of a listing.
+     * 
+ */ + public void getListing(com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetListingMethod(), responseObserver); + } + + /** + *
+     * Creates a new listing.
+     * 
+ */ + public void createListing(com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateListingMethod(), responseObserver); + } + + /** + *
+     * Updates an existing listing.
+     * 
+ */ + public void updateListing(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateListingMethod(), responseObserver); + } + + /** + *
+     * Deletes a listing.
+     * 
+ */ + public void deleteListing(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteListingMethod(), responseObserver); + } + + /** + *
+     * Subscribes to a listing.
+     * Currently, with Analytics Hub, you can create listings that
+     * reference only BigQuery datasets.
+     * Upon subscription to a listing for a BigQuery dataset, Analytics Hub
+     * creates a linked dataset in the subscriber's project.
+     * 
+ */ + public void subscribeListing(com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubscribeListingMethod(), responseObserver); + } + + /** + *
+     * Gets the IAM policy.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Sets the IAM policy.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Returns the permissions that a caller has.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListDataExchangesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse>( + this, METHODID_LIST_DATA_EXCHANGES))) + .addMethod( + getListOrgDataExchangesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse>( + this, METHODID_LIST_ORG_DATA_EXCHANGES))) + .addMethod( + getGetDataExchangeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>( + this, METHODID_GET_DATA_EXCHANGE))) + .addMethod( + getCreateDataExchangeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>( + this, METHODID_CREATE_DATA_EXCHANGE))) + .addMethod( + getUpdateDataExchangeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>( + this, METHODID_UPDATE_DATA_EXCHANGE))) + .addMethod( + getDeleteDataExchangeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_DATA_EXCHANGE))) + .addMethod( + getListListingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse>( + this, METHODID_LIST_LISTINGS))) + .addMethod( + getGetListingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing>( + this, METHODID_GET_LISTING))) + .addMethod( + getCreateListingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing>( + this, METHODID_CREATE_LISTING))) + .addMethod( + getUpdateListingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing>( + this, METHODID_UPDATE_LISTING))) + .addMethod( + getDeleteListingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_LISTING))) + .addMethod( + getSubscribeListingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse>( + this, METHODID_SUBSCRIBE_LISTING))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .build(); + } + } + + /** + *
+   * The `AnalyticsHubService` API facilitates data sharing within and across
+   * organizations. It allows data providers to publish listings that reference
+   * shared datasets. With Analytics Hub, users can discover and search for
+   * listings that they have access to. Subscribers can view and subscribe to
+   * listings. When you subscribe to a listing, Analytics Hub creates a linked
+   * dataset in your project.
+   * 
+ */ + public static final class AnalyticsHubServiceStub extends io.grpc.stub.AbstractAsyncStub { + private AnalyticsHubServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnalyticsHubServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsHubServiceStub(channel, callOptions); + } + + /** + *
+     * Lists all data exchanges in a given project and location.
+     * 
+ */ + public void listDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDataExchangesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all data exchanges from projects in a given organization and
+     * location.
+     * 
+ */ + public void listOrgDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOrgDataExchangesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the details of a data exchange.
+     * 
+ */ + public void getDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataExchangeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new data exchange.
+     * 
+ */ + public void createDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDataExchangeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing data exchange.
+     * 
+ */ + public void updateDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDataExchangeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an existing data exchange.
+     * 
+ */ + public void deleteDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDataExchangeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all listings in a given project and location.
+     * 
+ */ + public void listListings(com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListListingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the details of a listing.
+     * 
+ */ + public void getListing(com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetListingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new listing.
+     * 
+ */ + public void createListing(com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateListingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing listing.
+     * 
+ */ + public void updateListing(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateListingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a listing.
+     * 
+ */ + public void deleteListing(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteListingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Subscribes to a listing.
+     * Currently, with Analytics Hub, you can create listings that
+     * reference only BigQuery datasets.
+     * Upon subscription to a listing for a BigQuery dataset, Analytics Hub
+     * creates a linked dataset in the subscriber's project.
+     * 
+ */ + public void subscribeListing(com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSubscribeListingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the IAM policy.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the IAM policy.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the permissions that a caller has.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * The `AnalyticsHubService` API facilitates data sharing within and across
+   * organizations. It allows data providers to publish listings that reference
+   * shared datasets. With Analytics Hub, users can discover and search for
+   * listings that they have access to. Subscribers can view and subscribe to
+   * listings. When you subscribe to a listing, Analytics Hub creates a linked
+   * dataset in your project.
+   * 
+ */ + public static final class AnalyticsHubServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AnalyticsHubServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnalyticsHubServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsHubServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists all data exchanges in a given project and location.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse listDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataExchangesMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all data exchanges from projects in a given organization and
+     * location.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse listOrgDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOrgDataExchangesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a data exchange.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataExchangeMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new data exchange.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange createDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDataExchangeMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing data exchange.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange updateDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDataExchangeMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an existing data exchange.
+     * 
+ */ + public com.google.protobuf.Empty deleteDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDataExchangeMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all listings in a given project and location.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse listListings(com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListListingsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a listing.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing(com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetListingMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new listing.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing createListing(com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateListingMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing listing.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing updateListing(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateListingMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a listing.
+     * 
+ */ + public com.google.protobuf.Empty deleteListing(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteListingMethod(), getCallOptions(), request); + } + + /** + *
+     * Subscribes to a listing.
+     * Currently, with Analytics Hub, you can create listings that
+     * reference only BigQuery datasets.
+     * Upon subscription to a listing for a BigQuery dataset, Analytics Hub
+     * creates a linked dataset in the subscriber's project.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse subscribeListing(com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSubscribeListingMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the IAM policy.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the IAM policy.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the permissions that a caller has.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * The `AnalyticsHubService` API facilitates data sharing within and across
+   * organizations. It allows data providers to publish listings that reference
+   * shared datasets. With Analytics Hub, users can discover and search for
+   * listings that they have access to. Subscribers can view and subscribe to
+   * listings. When you subscribe to a listing, Analytics Hub creates a linked
+   * dataset in your project.
+   * 
+ */ + public static final class AnalyticsHubServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private AnalyticsHubServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnalyticsHubServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsHubServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists all data exchanges in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDataExchanges( + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDataExchangesMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all data exchanges from projects in a given organization and
+     * location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listOrgDataExchanges( + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOrgDataExchangesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the details of a data exchange.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataExchangeMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new data exchange.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDataExchangeMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing data exchange.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDataExchangeMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an existing data exchange.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDataExchangeMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all listings in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listListings( + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListListingsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the details of a listing.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getListing( + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetListingMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new listing.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createListing( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateListingMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing listing.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateListing( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateListingMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a listing.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteListing( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteListingMethod(), getCallOptions()), request); + } + + /** + *
+     * Subscribes to a listing.
+     * Currently, with Analytics Hub, you can create listings that
+     * reference only BigQuery datasets.
+     * Upon subscription to a listing for a BigQuery dataset, Analytics Hub
+     * creates a linked dataset in the subscriber's project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture subscribeListing( + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSubscribeListingMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the IAM policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Sets the IAM policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the permissions that a caller has.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_DATA_EXCHANGES = 0; + private static final int METHODID_LIST_ORG_DATA_EXCHANGES = 1; + private static final int METHODID_GET_DATA_EXCHANGE = 2; + private static final int METHODID_CREATE_DATA_EXCHANGE = 3; + private static final int METHODID_UPDATE_DATA_EXCHANGE = 4; + private static final int METHODID_DELETE_DATA_EXCHANGE = 5; + private static final int METHODID_LIST_LISTINGS = 6; + private static final int METHODID_GET_LISTING = 7; + private static final int METHODID_CREATE_LISTING = 8; + private static final int METHODID_UPDATE_LISTING = 9; + private static final int METHODID_DELETE_LISTING = 10; + private static final int METHODID_SUBSCRIBE_LISTING = 11; + private static final int METHODID_GET_IAM_POLICY = 12; + private static final int METHODID_SET_IAM_POLICY = 13; + private static final int METHODID_TEST_IAM_PERMISSIONS = 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 AnalyticsHubServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AnalyticsHubServiceImplBase 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_DATA_EXCHANGES: + serviceImpl.listDataExchanges((com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ORG_DATA_EXCHANGES: + serviceImpl.listOrgDataExchanges((com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DATA_EXCHANGE: + serviceImpl.getDataExchange((com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_DATA_EXCHANGE: + serviceImpl.createDataExchange((com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DATA_EXCHANGE: + serviceImpl.updateDataExchange((com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DATA_EXCHANGE: + serviceImpl.deleteDataExchange((com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_LISTINGS: + serviceImpl.listListings((com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LISTING: + serviceImpl.getListing((com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_LISTING: + serviceImpl.createListing((com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_LISTING: + serviceImpl.updateListing((com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_LISTING: + serviceImpl.deleteListing((com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SUBSCRIBE_LISTING: + serviceImpl.subscribeListing((com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) 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 AnalyticsHubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AnalyticsHubServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AnalyticsHubService"); + } + } + + private static final class AnalyticsHubServiceFileDescriptorSupplier + extends AnalyticsHubServiceBaseDescriptorSupplier { + AnalyticsHubServiceFileDescriptorSupplier() {} + } + + private static final class AnalyticsHubServiceMethodDescriptorSupplier + extends AnalyticsHubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AnalyticsHubServiceMethodDescriptorSupplier(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 (AnalyticsHubServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AnalyticsHubServiceFileDescriptorSupplier()) + .addMethod(getListDataExchangesMethod()) + .addMethod(getListOrgDataExchangesMethod()) + .addMethod(getGetDataExchangeMethod()) + .addMethod(getCreateDataExchangeMethod()) + .addMethod(getUpdateDataExchangeMethod()) + .addMethod(getDeleteDataExchangeMethod()) + .addMethod(getListListingsMethod()) + .addMethod(getGetListingMethod()) + .addMethod(getCreateListingMethod()) + .addMethod(getUpdateListingMethod()) + .addMethod(getDeleteListingMethod()) + .addMethod(getSubscribeListingMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.java similarity index 59% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.java index cdcfec2..9e1d0fc 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Message for creating a DataExchange.
+ * Message for creating a data exchange.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest} */ -public final class CreateDataExchangeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateDataExchangeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) CreateDataExchangeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateDataExchangeRequest.newBuilder() to construct. private CreateDataExchangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateDataExchangeRequest() { parent_ = ""; dataExchangeId_ = ""; @@ -44,15 +26,16 @@ private CreateDataExchangeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateDataExchangeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateDataExchangeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,44 +54,38 @@ private CreateDataExchangeRequest( 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(); - dataExchangeId_ = s; - break; + dataExchangeId_ = s; + break; + } + case 26: { + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder subBuilder = null; + if (dataExchange_ != null) { + subBuilder = dataExchange_.toBuilder(); } - case 26: - { - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder subBuilder = null; - if (dataExchange_ != null) { - subBuilder = dataExchange_.toBuilder(); - } - dataExchange_ = - input.readMessage( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataExchange_); - dataExchange_ = subBuilder.buildPartial(); - } - - break; + dataExchange_ = input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataExchange_); + dataExchange_ = 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) { @@ -116,42 +93,35 @@ private CreateDataExchangeRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
-   * Required. The parent resource path of the DataExchange.
+   * Required. The parent resource path of the data exchange.
    * e.g. `projects/myproject/locations/US`.
    * 
* - * - * 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 @@ -160,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. The parent resource path of the DataExchange.
+   * Required. The parent resource path of the data exchange.
    * e.g. `projects/myproject/locations/US`.
    * 
* - * - * 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 { @@ -196,10 +164,8 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DATA_EXCHANGE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object dataExchangeId_; /** - * - * *
-   * Required. The ID of the DataExchange to create.
+   * Required. The ID of the data exchange.
    * Must contain only Unicode letters, numbers (0-9), underscores (_).
    * Should not use characters that require URL-escaping, or characters
    * outside of ASCII, spaces.
@@ -207,7 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dataExchangeId. */ @java.lang.Override @@ -216,17 +181,16 @@ public java.lang.String getDataExchangeId() { 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(); dataExchangeId_ = s; return s; } } /** - * - * *
-   * Required. The ID of the DataExchange to create.
+   * Required. The ID of the data exchange.
    * Must contain only Unicode letters, numbers (0-9), underscores (_).
    * Should not use characters that require URL-escaping, or characters
    * outside of ASCII, spaces.
@@ -234,15 +198,16 @@ public java.lang.String getDataExchangeId() {
    * 
* * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dataExchangeId. */ @java.lang.Override - public com.google.protobuf.ByteString getDataExchangeIdBytes() { + public com.google.protobuf.ByteString + getDataExchangeIdBytes() { java.lang.Object ref = dataExchangeId_; 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); dataExchangeId_ = b; return b; } else { @@ -253,16 +218,11 @@ public com.google.protobuf.ByteString getDataExchangeIdBytes() { public static final int DATA_EXCHANGE_FIELD_NUMBER = 3; private com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange dataExchange_; /** - * - * *
-   * Required. The DataExchange to create.
+   * Required. The data exchange to create.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dataExchange field is set. */ @java.lang.Override @@ -270,43 +230,30 @@ public boolean hasDataExchange() { return dataExchange_ != null; } /** - * - * *
-   * Required. The DataExchange to create.
+   * Required. The data exchange to create.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The dataExchange. */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange() { - return dataExchange_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() - : dataExchange_; + return dataExchange_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() : dataExchange_; } /** - * - * *
-   * Required. The DataExchange to create.
+   * Required. The data exchange to create.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder - getDataExchangeOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangeOrBuilder() { return getDataExchange(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -318,7 +265,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_); } @@ -344,7 +292,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataExchangeId_); } if (dataExchange_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDataExchange()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDataExchange()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -354,20 +303,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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest)) { + if (!(obj instanceof com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest other = - (com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getDataExchangeId().equals(other.getDataExchangeId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getDataExchangeId() + .equals(other.getDataExchangeId())) return false; if (hasDataExchange() != other.hasDataExchange()) return false; if (hasDataExchange()) { - if (!getDataExchange().equals(other.getDataExchange())) return false; + if (!getDataExchange() + .equals(other.getDataExchange())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -394,146 +344,134 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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; } /** - * - * *
-   * Message for creating a DataExchange.
+   * Message for creating a data exchange.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest} */ - 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.Builder - .class); + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -551,22 +489,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest build() { - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest result = - buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -575,8 +510,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest result = - new com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest(this); result.parent_ = parent_; result.dataExchangeId_ = dataExchangeId_; if (dataExchangeBuilder_ == null) { @@ -592,52 +526,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) other); + if (other instanceof com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) { + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -668,9 +596,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -682,23 +608,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. The parent resource path of the DataExchange.
+     * Required. The parent resource path of the data exchange.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * - * 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; @@ -707,24 +629,21 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. The parent resource path of the DataExchange.
+     * Required. The parent resource path of the data exchange.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * - * 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 { @@ -732,70 +651,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. The parent resource path of the DataExchange.
+     * Required. The parent resource path of the data exchange.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * - * 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. The parent resource path of the DataExchange.
+     * Required. The parent resource path of the data exchange.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * - * 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. The parent resource path of the DataExchange.
+     * Required. The parent resource path of the data exchange.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * - * 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; @@ -803,10 +709,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object dataExchangeId_ = ""; /** - * - * *
-     * Required. The ID of the DataExchange to create.
+     * Required. The ID of the data exchange.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Should not use characters that require URL-escaping, or characters
      * outside of ASCII, spaces.
@@ -814,13 +718,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The dataExchangeId. */ public java.lang.String getDataExchangeId() { java.lang.Object ref = dataExchangeId_; 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(); dataExchangeId_ = s; return s; @@ -829,10 +733,8 @@ public java.lang.String getDataExchangeId() { } } /** - * - * *
-     * Required. The ID of the DataExchange to create.
+     * Required. The ID of the data exchange.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Should not use characters that require URL-escaping, or characters
      * outside of ASCII, spaces.
@@ -840,14 +742,15 @@ public java.lang.String getDataExchangeId() {
      * 
* * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for dataExchangeId. */ - public com.google.protobuf.ByteString getDataExchangeIdBytes() { + public com.google.protobuf.ByteString + getDataExchangeIdBytes() { java.lang.Object ref = dataExchangeId_; 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); dataExchangeId_ = b; return b; } else { @@ -855,10 +758,8 @@ public com.google.protobuf.ByteString getDataExchangeIdBytes() { } } /** - * - * *
-     * Required. The ID of the DataExchange to create.
+     * Required. The ID of the data exchange.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Should not use characters that require URL-escaping, or characters
      * outside of ASCII, spaces.
@@ -866,24 +767,22 @@ public com.google.protobuf.ByteString getDataExchangeIdBytes() {
      * 
* * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The dataExchangeId to set. * @return This builder for chaining. */ - public Builder setDataExchangeId(java.lang.String value) { + public Builder setDataExchangeId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataExchangeId_ = value; onChanged(); return this; } /** - * - * *
-     * Required. The ID of the DataExchange to create.
+     * Required. The ID of the data exchange.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Should not use characters that require URL-escaping, or characters
      * outside of ASCII, spaces.
@@ -891,20 +790,17 @@ public Builder setDataExchangeId(java.lang.String value) {
      * 
* * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDataExchangeId() { - + dataExchangeId_ = getDefaultInstance().getDataExchangeId(); onChanged(); return this; } /** - * - * *
-     * Required. The ID of the DataExchange to create.
+     * Required. The ID of the data exchange.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Should not use characters that require URL-escaping, or characters
      * outside of ASCII, spaces.
@@ -912,16 +808,16 @@ public Builder clearDataExchangeId() {
      * 
* * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for dataExchangeId to set. * @return This builder for chaining. */ - public Builder setDataExchangeIdBytes(com.google.protobuf.ByteString value) { + public Builder setDataExchangeIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataExchangeId_ = value; onChanged(); return this; @@ -929,61 +825,41 @@ public Builder setDataExchangeIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange dataExchange_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> - dataExchangeBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> dataExchangeBuilder_; /** - * - * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dataExchange field is set. */ public boolean hasDataExchange() { return dataExchangeBuilder_ != null || dataExchange_ != null; } /** - * - * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The dataExchange. */ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange() { if (dataExchangeBuilder_ == null) { - return dataExchange_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() - : dataExchange_; + return dataExchange_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() : dataExchange_; } else { return dataExchangeBuilder_.getMessage(); } } /** - * - * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { + public Builder setDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { if (dataExchangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -997,15 +873,11 @@ public Builder setDataExchange( return this; } /** - * - * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDataExchange( com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { @@ -1019,24 +891,17 @@ public Builder setDataExchange( return this; } /** - * - * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { + public Builder mergeDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { if (dataExchangeBuilder_ == null) { if (dataExchange_ != null) { dataExchange_ = - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.newBuilder(dataExchange_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.newBuilder(dataExchange_).mergeFrom(value).buildPartial(); } else { dataExchange_ = value; } @@ -1048,15 +913,11 @@ public Builder mergeDataExchange( return this; } /** - * - * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDataExchange() { if (dataExchangeBuilder_ == null) { @@ -1070,73 +931,55 @@ public Builder clearDataExchange() { return this; } /** - * - * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder - getDataExchangeBuilder() { - + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder getDataExchangeBuilder() { + onChanged(); return getDataExchangeFieldBuilder().getBuilder(); } /** - * - * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder - getDataExchangeOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangeOrBuilder() { if (dataExchangeBuilder_ != null) { return dataExchangeBuilder_.getMessageOrBuilder(); } else { - return dataExchange_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() - : dataExchange_; + return dataExchange_ == null ? + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() : dataExchange_; } } /** - * - * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> getDataExchangeFieldBuilder() { if (dataExchangeBuilder_ == null) { - dataExchangeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>( - getDataExchange(), getParentForChildren(), isClean()); + dataExchangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>( + getDataExchange(), + getParentForChildren(), + isClean()); dataExchange_ = null; } return dataExchangeBuilder_; } - @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); } @@ -1146,33 +989,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDataExchangeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDataExchangeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDataExchangeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDataExchangeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1184,8 +1024,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java new file mode 100644 index 0000000..e30c6f7 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto + +package com.google.cloud.bigquery.dataexchange.v1beta1; + +public interface CreateDataExchangeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource path of the data exchange.
+   * e.g. `projects/myproject/locations/US`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource path of the data exchange.
+   * e.g. `projects/myproject/locations/US`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The ID of the data exchange.
+   * Must contain only Unicode letters, numbers (0-9), underscores (_).
+   * Should not use characters that require URL-escaping, or characters
+   * outside of ASCII, spaces.
+   * Max length: 100 bytes.
+   * 
+ * + * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The dataExchangeId. + */ + java.lang.String getDataExchangeId(); + /** + *
+   * Required. The ID of the data exchange.
+   * Must contain only Unicode letters, numbers (0-9), underscores (_).
+   * Should not use characters that require URL-escaping, or characters
+   * outside of ASCII, spaces.
+   * Max length: 100 bytes.
+   * 
+ * + * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for dataExchangeId. + */ + com.google.protobuf.ByteString + getDataExchangeIdBytes(); + + /** + *
+   * Required. The data exchange to create.
+   * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the dataExchange field is set. + */ + boolean hasDataExchange(); + /** + *
+   * Required. The data exchange to create.
+   * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The dataExchange. + */ + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange(); + /** + *
+   * Required. The data exchange to create.
+   * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangeOrBuilder(); +} diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.java similarity index 63% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.java index e029bac..a45095c 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Message for creating a Listing.
+ * Message for creating a listing.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest} */ -public final class CreateListingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateListingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) CreateListingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateListingRequest.newBuilder() to construct. private CreateListingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateListingRequest() { parent_ = ""; listingId_ = ""; @@ -44,15 +26,16 @@ private CreateListingRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateListingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateListingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,44 +54,38 @@ private CreateListingRequest( 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(); - listingId_ = s; - break; + listingId_ = s; + break; + } + case 26: { + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder subBuilder = null; + if (listing_ != null) { + subBuilder = listing_.toBuilder(); } - case 26: - { - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder subBuilder = null; - if (listing_ != null) { - subBuilder = listing_.toBuilder(); - } - listing_ = - input.readMessage( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(listing_); - listing_ = subBuilder.buildPartial(); - } - - break; + listing_ = input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(listing_); + listing_ = 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) { @@ -116,42 +93,35 @@ private CreateListingRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource path of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * - * 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 @@ -160,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. The parent resource path of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * - * 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 { @@ -196,10 +164,8 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int LISTING_ID_FIELD_NUMBER = 2; private volatile java.lang.Object listingId_; /** - * - * *
-   * Required. The ID of the Listing to create.
+   * Required. The ID of the listing to create.
    * Must contain only Unicode letters, numbers (0-9), underscores (_).
    * Should not use characters that require URL-escaping, or characters
    * outside of ASCII, spaces.
@@ -207,7 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The listingId. */ @java.lang.Override @@ -216,17 +181,16 @@ public java.lang.String getListingId() { 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(); listingId_ = s; return s; } } /** - * - * *
-   * Required. The ID of the Listing to create.
+   * Required. The ID of the listing to create.
    * Must contain only Unicode letters, numbers (0-9), underscores (_).
    * Should not use characters that require URL-escaping, or characters
    * outside of ASCII, spaces.
@@ -234,15 +198,16 @@ public java.lang.String getListingId() {
    * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for listingId. */ @java.lang.Override - public com.google.protobuf.ByteString getListingIdBytes() { + public com.google.protobuf.ByteString + getListingIdBytes() { java.lang.Object ref = listingId_; 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); listingId_ = b; return b; } else { @@ -253,16 +218,11 @@ public com.google.protobuf.ByteString getListingIdBytes() { public static final int LISTING_FIELD_NUMBER = 3; private com.google.cloud.bigquery.dataexchange.v1beta1.Listing listing_; /** - * - * *
    * Required. The listing to create.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the listing field is set. */ @java.lang.Override @@ -270,34 +230,23 @@ public boolean hasListing() { return listing_ != null; } /** - * - * *
    * Required. The listing to create.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The listing. */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing() { - return listing_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() - : listing_; + return listing_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() : listing_; } /** - * - * *
    * Required. The listing to create.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingOrBuilder() { @@ -305,7 +254,6 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListin } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +265,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_); } @@ -343,7 +292,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, listingId_); } if (listing_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getListing()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getListing()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -353,19 +303,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.bigquery.dataexchange.v1beta1.CreateListingRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest other = - (com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getListingId().equals(other.getListingId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getListingId() + .equals(other.getListingId())) return false; if (hasListing() != other.hasListing()) return false; if (hasListing()) { - if (!getListing().equals(other.getListing())) return false; + if (!getListing() + .equals(other.getListing())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -392,145 +344,134 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest 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.bigquery.dataexchange.v1beta1.CreateListingRequest 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.bigquery.dataexchange.v1beta1.CreateListingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest 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.bigquery.dataexchange.v1beta1.CreateListingRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest 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.bigquery.dataexchange.v1beta1.CreateListingRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest 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.bigquery.dataexchange.v1beta1.CreateListingRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest 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.bigquery.dataexchange.v1beta1.CreateListingRequest 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.bigquery.dataexchange.v1beta1.CreateListingRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest 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; } /** - * - * *
-   * Message for creating a Listing.
+   * Message for creating a listing.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest} */ - 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.bigquery.dataexchange.v1beta1.CreateListingRequest) com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -548,16 +489,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.getDefaultInstance(); } @java.lang.Override @@ -571,8 +510,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest build @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest result = - new com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest(this); result.parent_ = parent_; result.listingId_ = listingId_; if (listingBuilder_ == null) { @@ -588,51 +526,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest build 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.bigquery.dataexchange.v1beta1.CreateListingRequest) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) other); + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -663,9 +596,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -677,23 +608,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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; @@ -702,24 +629,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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 { @@ -727,70 +651,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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; @@ -798,10 +709,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object listingId_ = ""; /** - * - * *
-     * Required. The ID of the Listing to create.
+     * Required. The ID of the listing to create.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Should not use characters that require URL-escaping, or characters
      * outside of ASCII, spaces.
@@ -809,13 +718,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The listingId. */ public java.lang.String getListingId() { java.lang.Object ref = listingId_; 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(); listingId_ = s; return s; @@ -824,10 +733,8 @@ public java.lang.String getListingId() { } } /** - * - * *
-     * Required. The ID of the Listing to create.
+     * Required. The ID of the listing to create.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Should not use characters that require URL-escaping, or characters
      * outside of ASCII, spaces.
@@ -835,14 +742,15 @@ public java.lang.String getListingId() {
      * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for listingId. */ - public com.google.protobuf.ByteString getListingIdBytes() { + public com.google.protobuf.ByteString + getListingIdBytes() { java.lang.Object ref = listingId_; 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); listingId_ = b; return b; } else { @@ -850,10 +758,8 @@ public com.google.protobuf.ByteString getListingIdBytes() { } } /** - * - * *
-     * Required. The ID of the Listing to create.
+     * Required. The ID of the listing to create.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Should not use characters that require URL-escaping, or characters
      * outside of ASCII, spaces.
@@ -861,24 +767,22 @@ public com.google.protobuf.ByteString getListingIdBytes() {
      * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The listingId to set. * @return This builder for chaining. */ - public Builder setListingId(java.lang.String value) { + public Builder setListingId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + listingId_ = value; onChanged(); return this; } /** - * - * *
-     * Required. The ID of the Listing to create.
+     * Required. The ID of the listing to create.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Should not use characters that require URL-escaping, or characters
      * outside of ASCII, spaces.
@@ -886,20 +790,17 @@ public Builder setListingId(java.lang.String value) {
      * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearListingId() { - + listingId_ = getDefaultInstance().getListingId(); onChanged(); return this; } /** - * - * *
-     * Required. The ID of the Listing to create.
+     * Required. The ID of the listing to create.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
      * Should not use characters that require URL-escaping, or characters
      * outside of ASCII, spaces.
@@ -907,16 +808,16 @@ public Builder clearListingId() {
      * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for listingId to set. * @return This builder for chaining. */ - public Builder setListingIdBytes(com.google.protobuf.ByteString value) { + public Builder setListingIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + listingId_ = value; onChanged(); return this; @@ -924,58 +825,39 @@ public Builder setListingIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.bigquery.dataexchange.v1beta1.Listing listing_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> - listingBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> listingBuilder_; /** - * - * *
      * Required. The listing to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the listing field is set. */ public boolean hasListing() { return listingBuilder_ != null || listing_ != null; } /** - * - * *
      * Required. The listing to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The listing. */ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing() { if (listingBuilder_ == null) { - return listing_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() - : listing_; + return listing_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() : listing_; } else { return listingBuilder_.getMessage(); } } /** - * - * *
      * Required. The listing to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setListing(com.google.cloud.bigquery.dataexchange.v1beta1.Listing value) { if (listingBuilder_ == null) { @@ -991,15 +873,11 @@ public Builder setListing(com.google.cloud.bigquery.dataexchange.v1beta1.Listing return this; } /** - * - * *
      * Required. The listing to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setListing( com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder builderForValue) { @@ -1013,23 +891,17 @@ public Builder setListing( return this; } /** - * - * *
      * Required. The listing to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeListing(com.google.cloud.bigquery.dataexchange.v1beta1.Listing value) { if (listingBuilder_ == null) { if (listing_ != null) { listing_ = - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.newBuilder(listing_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.newBuilder(listing_).mergeFrom(value).buildPartial(); } else { listing_ = value; } @@ -1041,15 +913,11 @@ public Builder mergeListing(com.google.cloud.bigquery.dataexchange.v1beta1.Listi return this; } /** - * - * *
      * Required. The listing to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearListing() { if (listingBuilder_ == null) { @@ -1063,71 +931,55 @@ public Builder clearListing() { return this; } /** - * - * *
      * Required. The listing to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder getListingBuilder() { - + onChanged(); return getListingFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The listing to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingOrBuilder() { if (listingBuilder_ != null) { return listingBuilder_.getMessageOrBuilder(); } else { - return listing_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() - : listing_; + return listing_ == null ? + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() : listing_; } } /** - * - * *
      * Required. The listing to create.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> getListingFieldBuilder() { if (listingBuilder_ == null) { - listingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder>( - getListing(), getParentForChildren(), isClean()); + listingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder>( + getListing(), + getParentForChildren(), + isClean()); listing_ = null; } return listingBuilder_; } - @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,32 +989,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateListingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateListingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateListingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateListingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1174,8 +1024,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java index e64f438..d7b783c 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface CreateListingRequestOrBuilder - extends +public interface CreateListingRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource path of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource path of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * - * 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. The ID of the Listing to create.
+   * Required. The ID of the listing to create.
    * Must contain only Unicode letters, numbers (0-9), underscores (_).
    * Should not use characters that require URL-escaping, or characters
    * outside of ASCII, spaces.
@@ -66,15 +39,12 @@ public interface CreateListingRequestOrBuilder
    * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The listingId. */ java.lang.String getListingId(); /** - * - * *
-   * Required. The ID of the Listing to create.
+   * Required. The ID of the listing to create.
    * Must contain only Unicode letters, numbers (0-9), underscores (_).
    * Should not use characters that require URL-escaping, or characters
    * outside of ASCII, spaces.
@@ -82,49 +52,35 @@ public interface CreateListingRequestOrBuilder
    * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for listingId. */ - com.google.protobuf.ByteString getListingIdBytes(); + com.google.protobuf.ByteString + getListingIdBytes(); /** - * - * *
    * Required. The listing to create.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the listing field is set. */ boolean hasListing(); /** - * - * *
    * Required. The listing to create.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The listing. */ com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing(); /** - * - * *
    * Required. The listing to create.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingOrBuilder(); } diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java similarity index 69% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java index a06b01d..b90e562 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java @@ -1,44 +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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * A data exchange is a container that enables data sharing.
- * It contains a set of listings of the data sources along with descriptive
- * information of the data exchange.
+ * A data exchange is a container that lets you share data. Along with the
+ * descriptive information about the data exchange, it contains listings that
+ * reference shared datasets.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DataExchange} */ -public final class DataExchange extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DataExchange extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.DataExchange) DataExchangeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DataExchange.newBuilder() to construct. private DataExchange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DataExchange() { name_ = ""; displayName_ = ""; @@ -50,15 +32,16 @@ private DataExchange() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DataExchange(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DataExchange( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -77,58 +60,53 @@ private DataExchange( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + displayName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + description_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - primaryContact_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + primaryContact_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - documentation_ = s; - break; - } - case 48: - { - listingCount_ = input.readInt32(); - break; - } - case 58: - { - icon_ = input.readBytes(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + documentation_ = s; + break; + } + case 48: { + + listingCount_ = input.readInt32(); + break; + } + case 58: { + + icon_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -136,40 +114,35 @@ private DataExchange( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the data exchange.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -178,30 +151,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. The resource name of the data exchange.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* * 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 { @@ -212,18 +185,15 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. Human-readable display name of the data exchange. The display name must
    * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
-   * spaces ( ), and can't start or end with spaces.
+   * spaces ( ), ampersands (&) and must not start or end with spaces.
    * Default value is an empty string.
    * Max length: 63 bytes.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -232,33 +202,33 @@ 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; } } /** - * - * *
    * Required. Human-readable display name of the data exchange. The display name must
    * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
-   * spaces ( ), and can't start or end with spaces.
+   * spaces ( ), ampersands (&) and must not start or end with spaces.
    * Default value is an empty string.
    * Max length: 63 bytes.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -269,19 +239,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
-   * Optional. Short description of the data exchange that can consist of sentences
-   * or paragraphs. The description must not contain Unicode non-characters as
-   * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-   * returns (CR), and page breaks (FF).
+   * Optional. Description of the data exchange. The description must not contain Unicode
+   * non-characters as well as C0 and C1 control codes except tabs (HT),
+   * new lines (LF), carriage returns (CR), and page breaks (FF).
    * Default value is an empty string.
    * Max length: 2000 bytes.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -290,34 +256,33 @@ public java.lang.String getDescription() { 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(); description_ = s; return s; } } /** - * - * *
-   * Optional. Short description of the data exchange that can consist of sentences
-   * or paragraphs. The description must not contain Unicode non-characters as
-   * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-   * returns (CR), and page breaks (FF).
+   * Optional. Description of the data exchange. The description must not contain Unicode
+   * non-characters as well as C0 and C1 control codes except tabs (HT),
+   * new lines (LF), carriage returns (CR), and page breaks (FF).
    * Default value is an empty string.
    * Max length: 2000 bytes.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -328,16 +293,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int PRIMARY_CONTACT_FIELD_NUMBER = 4; private volatile java.lang.Object primaryContact_; /** - * - * *
-   * Optional. Email, URL or other reference of the primary point of contact of the data
-   * exchange
+   * Optional. Email or URL of the primary point of contact of the data exchange.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The primaryContact. */ @java.lang.Override @@ -346,31 +307,30 @@ public java.lang.String getPrimaryContact() { 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(); primaryContact_ = s; return s; } } /** - * - * *
-   * Optional. Email, URL or other reference of the primary point of contact of the data
-   * exchange
+   * Optional. Email or URL of the primary point of contact of the data exchange.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for primaryContact. */ @java.lang.Override - public com.google.protobuf.ByteString getPrimaryContactBytes() { + public com.google.protobuf.ByteString + getPrimaryContactBytes() { java.lang.Object ref = primaryContact_; 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); primaryContact_ = b; return b; } else { @@ -381,14 +341,11 @@ public com.google.protobuf.ByteString getPrimaryContactBytes() { public static final int DOCUMENTATION_FIELD_NUMBER = 5; private volatile java.lang.Object documentation_; /** - * - * *
    * Optional. Documentation describing the data exchange.
    * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The documentation. */ @java.lang.Override @@ -397,29 +354,29 @@ public java.lang.String getDocumentation() { 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(); documentation_ = s; return s; } } /** - * - * *
    * Optional. Documentation describing the data exchange.
    * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for documentation. */ @java.lang.Override - public com.google.protobuf.ByteString getDocumentationBytes() { + public com.google.protobuf.ByteString + getDocumentationBytes() { java.lang.Object ref = documentation_; 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); documentation_ = b; return b; } else { @@ -430,14 +387,11 @@ public com.google.protobuf.ByteString getDocumentationBytes() { public static final int LISTING_COUNT_FIELD_NUMBER = 6; private int listingCount_; /** - * - * *
    * Output only. Number of listings contained in the data exchange.
    * 
* * int32 listing_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The listingCount. */ @java.lang.Override @@ -448,18 +402,15 @@ public int getListingCount() { public static final int ICON_FIELD_NUMBER = 7; private com.google.protobuf.ByteString icon_; /** - * - * *
    * Optional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB
    * Expected image dimensions are 512x512 pixels, however the API only
    * performs validation on size of the encoded data.
-   * Note: For byte fields, the contents of the field are base64-encoded (which
+   * Note: For byte fields, the content of the fields are base64-encoded (which
    * increases the size of the data by 33-36%) when using JSON on the wire.
    * 
* * bytes icon = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The icon. */ @java.lang.Override @@ -468,7 +419,6 @@ public com.google.protobuf.ByteString getIcon() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -480,7 +430,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_); } @@ -527,10 +478,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, documentation_); } if (listingCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, listingCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, listingCount_); } if (!icon_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, icon_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, icon_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -540,21 +493,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.bigquery.dataexchange.v1beta1.DataExchange)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange other = - (com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getPrimaryContact().equals(other.getPrimaryContact())) return false; - if (!getDocumentation().equals(other.getDocumentation())) return false; - if (getListingCount() != other.getListingCount()) return false; - if (!getIcon().equals(other.getIcon())) return false; + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange other = (com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getPrimaryContact() + .equals(other.getPrimaryContact())) return false; + if (!getDocumentation() + .equals(other.getDocumentation())) return false; + if (getListingCount() + != other.getListingCount()) return false; + if (!getIcon() + .equals(other.getIcon())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -586,129 +545,119 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange 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 data exchange is a container that enables data sharing.
-   * It contains a set of listings of the data sources along with descriptive
-   * information of the data exchange.
+   * A data exchange is a container that lets you share data. Along with the
+   * descriptive information about the data exchange, it contains listings that
+   * reference shared datasets.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DataExchange} */ - 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.bigquery.dataexchange.v1beta1.DataExchange) com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder.class); } // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.newBuilder() @@ -716,15 +665,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(); @@ -746,9 +696,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor; } @java.lang.Override @@ -767,8 +717,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange build() { @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange result = - new com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange(this); + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange result = new com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange(this); result.name_ = name_; result.displayName_ = displayName_; result.description_ = description_; @@ -784,39 +733,38 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange) other); + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange)other); } else { super.mergeFrom(other); return this; @@ -824,8 +772,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -871,8 +818,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -884,21 +830,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* * 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; @@ -907,22 +851,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* * 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 { @@ -930,64 +873,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* * 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. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* * 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. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* * 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; @@ -995,24 +931,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. Human-readable display name of the data exchange. The display name must
      * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
-     * spaces ( ), and can't start or end with spaces.
+     * spaces ( ), ampersands (&) and must not start or end with spaces.
      * Default value is an empty string.
      * Max length: 63 bytes.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -1021,25 +955,24 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Human-readable display name of the data exchange. The display name must
      * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
-     * spaces ( ), and can't start or end with spaces.
+     * spaces ( ), ampersands (&) and must not start or end with spaces.
      * Default value is an empty string.
      * Max length: 63 bytes.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -1047,73 +980,66 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Human-readable display name of the data exchange. The display name must
      * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
-     * spaces ( ), and can't start or end with spaces.
+     * spaces ( ), ampersands (&) and must not start or end with spaces.
      * Default value is an empty string.
      * Max length: 63 bytes.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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; } /** - * - * *
      * Required. Human-readable display name of the data exchange. The display name must
      * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
-     * spaces ( ), and can't start or end with spaces.
+     * spaces ( ), ampersands (&) and must not start or end with spaces.
      * Default value is an empty string.
      * Max length: 63 bytes.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. Human-readable display name of the data exchange. The display name must
      * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
-     * spaces ( ), and can't start or end with spaces.
+     * spaces ( ), ampersands (&) and must not start or end with spaces.
      * Default value is an empty string.
      * Max length: 63 bytes.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -1121,25 +1047,22 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
-     * Optional. Short description of the data exchange that can consist of sentences
-     * or paragraphs. The description must not contain Unicode non-characters as
-     * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-     * returns (CR), and page breaks (FF).
+     * Optional. Description of the data exchange. The description must not contain Unicode
+     * non-characters as well as C0 and C1 control codes except tabs (HT),
+     * new lines (LF), carriage returns (CR), and page breaks (FF).
      * Default value is an empty string.
      * Max length: 2000 bytes.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; @@ -1148,26 +1071,24 @@ public java.lang.String getDescription() { } } /** - * - * *
-     * Optional. Short description of the data exchange that can consist of sentences
-     * or paragraphs. The description must not contain Unicode non-characters as
-     * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-     * returns (CR), and page breaks (FF).
+     * Optional. Description of the data exchange. The description must not contain Unicode
+     * non-characters as well as C0 and C1 control codes except tabs (HT),
+     * new lines (LF), carriage returns (CR), and page breaks (FF).
      * Default value is an empty string.
      * Max length: 2000 bytes.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -1175,76 +1096,66 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
-     * Optional. Short description of the data exchange that can consist of sentences
-     * or paragraphs. The description must not contain Unicode non-characters as
-     * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-     * returns (CR), and page breaks (FF).
+     * Optional. Description of the data exchange. The description must not contain Unicode
+     * non-characters as well as C0 and C1 control codes except tabs (HT),
+     * new lines (LF), carriage returns (CR), and page breaks (FF).
      * Default value is an empty string.
      * Max length: 2000 bytes.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
-     * Optional. Short description of the data exchange that can consist of sentences
-     * or paragraphs. The description must not contain Unicode non-characters as
-     * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-     * returns (CR), and page breaks (FF).
+     * Optional. Description of the data exchange. The description must not contain Unicode
+     * non-characters as well as C0 and C1 control codes except tabs (HT),
+     * new lines (LF), carriage returns (CR), and page breaks (FF).
      * Default value is an empty string.
      * Max length: 2000 bytes.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
-     * Optional. Short description of the data exchange that can consist of sentences
-     * or paragraphs. The description must not contain Unicode non-characters as
-     * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-     * returns (CR), and page breaks (FF).
+     * Optional. Description of the data exchange. The description must not contain Unicode
+     * non-characters as well as C0 and C1 control codes except tabs (HT),
+     * new lines (LF), carriage returns (CR), and page breaks (FF).
      * Default value is an empty string.
      * Max length: 2000 bytes.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1252,22 +1163,19 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object primaryContact_ = ""; /** - * - * *
-     * Optional. Email, URL or other reference of the primary point of contact of the data
-     * exchange
+     * Optional. Email or URL of the primary point of contact of the data exchange.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The primaryContact. */ public java.lang.String getPrimaryContact() { java.lang.Object ref = primaryContact_; 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(); primaryContact_ = s; return s; @@ -1276,23 +1184,21 @@ public java.lang.String getPrimaryContact() { } } /** - * - * *
-     * Optional. Email, URL or other reference of the primary point of contact of the data
-     * exchange
+     * Optional. Email or URL of the primary point of contact of the data exchange.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for primaryContact. */ - public com.google.protobuf.ByteString getPrimaryContactBytes() { + public com.google.protobuf.ByteString + getPrimaryContactBytes() { java.lang.Object ref = primaryContact_; 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); primaryContact_ = b; return b; } else { @@ -1300,67 +1206,57 @@ public com.google.protobuf.ByteString getPrimaryContactBytes() { } } /** - * - * *
-     * Optional. Email, URL or other reference of the primary point of contact of the data
-     * exchange
+     * Optional. Email or URL of the primary point of contact of the data exchange.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The primaryContact to set. * @return This builder for chaining. */ - public Builder setPrimaryContact(java.lang.String value) { + public Builder setPrimaryContact( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + primaryContact_ = value; onChanged(); return this; } /** - * - * *
-     * Optional. Email, URL or other reference of the primary point of contact of the data
-     * exchange
+     * Optional. Email or URL of the primary point of contact of the data exchange.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPrimaryContact() { - + primaryContact_ = getDefaultInstance().getPrimaryContact(); onChanged(); return this; } /** - * - * *
-     * Optional. Email, URL or other reference of the primary point of contact of the data
-     * exchange
+     * Optional. Email or URL of the primary point of contact of the data exchange.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for primaryContact to set. * @return This builder for chaining. */ - public Builder setPrimaryContactBytes(com.google.protobuf.ByteString value) { + public Builder setPrimaryContactBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryContact_ = value; onChanged(); return this; @@ -1368,20 +1264,18 @@ public Builder setPrimaryContactBytes(com.google.protobuf.ByteString value) { private java.lang.Object documentation_ = ""; /** - * - * *
      * Optional. Documentation describing the data exchange.
      * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The documentation. */ public java.lang.String getDocumentation() { java.lang.Object ref = documentation_; 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(); documentation_ = s; return s; @@ -1390,21 +1284,20 @@ public java.lang.String getDocumentation() { } } /** - * - * *
      * Optional. Documentation describing the data exchange.
      * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for documentation. */ - public com.google.protobuf.ByteString getDocumentationBytes() { + public com.google.protobuf.ByteString + getDocumentationBytes() { java.lang.Object ref = documentation_; 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); documentation_ = b; return b; } else { @@ -1412,76 +1305,66 @@ public com.google.protobuf.ByteString getDocumentationBytes() { } } /** - * - * *
      * Optional. Documentation describing the data exchange.
      * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The documentation to set. * @return This builder for chaining. */ - public Builder setDocumentation(java.lang.String value) { + public Builder setDocumentation( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + documentation_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Documentation describing the data exchange.
      * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDocumentation() { - + documentation_ = getDefaultInstance().getDocumentation(); onChanged(); return this; } /** - * - * *
      * Optional. Documentation describing the data exchange.
      * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for documentation to set. * @return This builder for chaining. */ - public Builder setDocumentationBytes(com.google.protobuf.ByteString value) { + public Builder setDocumentationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentation_ = value; onChanged(); return this; } - private int listingCount_; + private int listingCount_ ; /** - * - * *
      * Output only. Number of listings contained in the data exchange.
      * 
* * int32 listing_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The listingCount. */ @java.lang.Override @@ -1489,36 +1372,30 @@ public int getListingCount() { return listingCount_; } /** - * - * *
      * Output only. Number of listings contained in the data exchange.
      * 
* * int32 listing_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The listingCount to set. * @return This builder for chaining. */ public Builder setListingCount(int value) { - + listingCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Number of listings contained in the data exchange.
      * 
* * int32 listing_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearListingCount() { - + listingCount_ = 0; onChanged(); return this; @@ -1526,18 +1403,15 @@ public Builder clearListingCount() { private com.google.protobuf.ByteString icon_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB
      * Expected image dimensions are 512x512 pixels, however the API only
      * performs validation on size of the encoded data.
-     * Note: For byte fields, the contents of the field are base64-encoded (which
+     * Note: For byte fields, the content of the fields are base64-encoded (which
      * increases the size of the data by 33-36%) when using JSON on the wire.
      * 
* * bytes icon = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The icon. */ @java.lang.Override @@ -1545,54 +1419,48 @@ public com.google.protobuf.ByteString getIcon() { return icon_; } /** - * - * *
      * Optional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB
      * Expected image dimensions are 512x512 pixels, however the API only
      * performs validation on size of the encoded data.
-     * Note: For byte fields, the contents of the field are base64-encoded (which
+     * Note: For byte fields, the content of the fields are base64-encoded (which
      * increases the size of the data by 33-36%) when using JSON on the wire.
      * 
* * bytes icon = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The icon to set. * @return This builder for chaining. */ public Builder setIcon(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + icon_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB
      * Expected image dimensions are 512x512 pixels, however the API only
      * performs validation on size of the encoded data.
-     * Note: For byte fields, the contents of the field are base64-encoded (which
+     * Note: For byte fields, the content of the fields are base64-encoded (which
      * increases the size of the data by 33-36%) when using JSON on the wire.
      * 
* * bytes icon = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIcon() { - + icon_ = getDefaultInstance().getIcon(); 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); } @@ -1602,12 +1470,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.DataExchange) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.DataExchange) private static final com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange(); } @@ -1616,16 +1484,16 @@ public static com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataExchange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DataExchange(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataExchange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DataExchange(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1640,4 +1508,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeName.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeName.java similarity index 100% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeName.java diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java similarity index 65% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java index abbb90e..d0318d1 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java @@ -1,203 +1,152 @@ -/* - * 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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface DataExchangeOrBuilder - extends +public interface DataExchangeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.DataExchange) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the data exchange.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the data exchange.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Human-readable display name of the data exchange. The display name must
    * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
-   * spaces ( ), and can't start or end with spaces.
+   * spaces ( ), ampersands (&) and must not start or end with spaces.
    * Default value is an empty string.
    * Max length: 63 bytes.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. Human-readable display name of the data exchange. The display name must
    * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
-   * spaces ( ), and can't start or end with spaces.
+   * spaces ( ), ampersands (&) and must not start or end with spaces.
    * Default value is an empty string.
    * Max length: 63 bytes.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
-   * Optional. Short description of the data exchange that can consist of sentences
-   * or paragraphs. The description must not contain Unicode non-characters as
-   * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-   * returns (CR), and page breaks (FF).
+   * Optional. Description of the data exchange. The description must not contain Unicode
+   * non-characters as well as C0 and C1 control codes except tabs (HT),
+   * new lines (LF), carriage returns (CR), and page breaks (FF).
    * Default value is an empty string.
    * Max length: 2000 bytes.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
-   * Optional. Short description of the data exchange that can consist of sentences
-   * or paragraphs. The description must not contain Unicode non-characters as
-   * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-   * returns (CR), and page breaks (FF).
+   * Optional. Description of the data exchange. The description must not contain Unicode
+   * non-characters as well as C0 and C1 control codes except tabs (HT),
+   * new lines (LF), carriage returns (CR), and page breaks (FF).
    * Default value is an empty string.
    * Max length: 2000 bytes.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
-   * Optional. Email, URL or other reference of the primary point of contact of the data
-   * exchange
+   * Optional. Email or URL of the primary point of contact of the data exchange.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The primaryContact. */ java.lang.String getPrimaryContact(); /** - * - * *
-   * Optional. Email, URL or other reference of the primary point of contact of the data
-   * exchange
+   * Optional. Email or URL of the primary point of contact of the data exchange.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for primaryContact. */ - com.google.protobuf.ByteString getPrimaryContactBytes(); + com.google.protobuf.ByteString + getPrimaryContactBytes(); /** - * - * *
    * Optional. Documentation describing the data exchange.
    * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The documentation. */ java.lang.String getDocumentation(); /** - * - * *
    * Optional. Documentation describing the data exchange.
    * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for documentation. */ - com.google.protobuf.ByteString getDocumentationBytes(); + com.google.protobuf.ByteString + getDocumentationBytes(); /** - * - * *
    * Output only. Number of listings contained in the data exchange.
    * 
* * int32 listing_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The listingCount. */ int getListingCount(); /** - * - * *
    * Optional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB
    * Expected image dimensions are 512x512 pixels, however the API only
    * performs validation on size of the encoded data.
-   * Note: For byte fields, the contents of the field are base64-encoded (which
+   * Note: For byte fields, the content of the fields are base64-encoded (which
    * increases the size of the data by 33-36%) when using JSON on the wire.
    * 
* * bytes icon = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The icon. */ com.google.protobuf.ByteString getIcon(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java new file mode 100644 index 0000000..8c4f8f7 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java @@ -0,0 +1,552 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto + +package com.google.cloud.bigquery.dataexchange.v1beta1; + +public final class DataExchangeProto { + private DataExchangeProto() {} + 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_bigquery_dataexchange_v1beta1_DataExchange_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_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/bigquery/dataexchange/v1b" + + "eta1/dataexchange.proto\022*google.cloud.bi" + + "gquery.dataexchange.v1beta1\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032\036google/iam/v1/ia" + + "m_policy.proto\032\032google/iam/v1/policy.pro" + + "to\032\033google/protobuf/empty.proto\032 google/" + + "protobuf/field_mask.proto\032\036google/protob" + + "uf/wrappers.proto\"\265\002\n\014DataExchange\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002" + + "\022\030\n\013description\030\003 \001(\tB\003\340A\001\022\034\n\017primary_co" + + "ntact\030\004 \001(\tB\003\340A\001\022\032\n\rdocumentation\030\005 \001(\tB" + + "\003\340A\001\022\032\n\rlisting_count\030\006 \001(\005B\003\340A\003\022\021\n\004icon" + + "\030\007 \001(\014B\003\340A\001:t\352Aq\n(analyticshub.googleapi" + + "s.com/DataExchange\022Eprojects/{project}/l" + + "ocations/{location}/dataExchanges/{data_" + + "exchange}\"?\n\014DataProvider\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\001\022\034\n\017primary_contact\030\002 \001(\tB\003\340A\001\"<\n\tPu" + + "blisher\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\034\n\017primary_co" + + "ntact\030\002 \001(\tB\003\340A\001\"O\n\033DestinationDatasetRe" + + "ference\022\027\n\ndataset_id\030\001 \001(\tB\003\340A\002\022\027\n\nproj" + + "ect_id\030\002 \001(\tB\003\340A\002\"\226\003\n\022DestinationDataset" + + "\022g\n\021dataset_reference\030\001 \001(\0132G.google.clo" + + "ud.bigquery.dataexchange.v1beta1.Destina" + + "tionDatasetReferenceB\003\340A\002\0228\n\rfriendly_na" + + "me\030\002 \001(\0132\034.google.protobuf.StringValueB\003" + + "\340A\001\0226\n\013description\030\003 \001(\0132\034.google.protob" + + "uf.StringValueB\003\340A\001\022_\n\006labels\030\004 \003(\0132J.go" + + "ogle.cloud.bigquery.dataexchange.v1beta1" + + ".DestinationDataset.LabelsEntryB\003\340A\001\022\025\n\010" + + "location\030\005 \001(\tB\003\340A\002\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\267\013\n\007Listing\022j" + + "\n\020bigquery_dataset\030\006 \001(\0132I.google.cloud." + + "bigquery.dataexchange.v1beta1.Listing.Bi" + + "gQueryDatasetSourceB\003\340A\002H\000\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\030\n\013desc" + + "ription\030\003 \001(\tB\003\340A\001\022\034\n\017primary_contact\030\004 " + + "\001(\tB\003\340A\001\022\032\n\rdocumentation\030\005 \001(\tB\003\340A\001\022M\n\005" + + "state\030\007 \001(\01629.google.cloud.bigquery.data" + + "exchange.v1beta1.Listing.StateB\003\340A\003\022\021\n\004i" + + "con\030\010 \001(\014B\003\340A\001\022T\n\rdata_provider\030\t \001(\01328." + + "google.cloud.bigquery.dataexchange.v1bet" + + "a1.DataProviderB\003\340A\001\022U\n\ncategories\030\n \003(\016" + + "2<.google.cloud.bigquery.dataexchange.v1" + + "beta1.Listing.CategoryB\003\340A\001\022M\n\tpublisher" + + "\030\013 \001(\01325.google.cloud.bigquery.dataexcha" + + "nge.v1beta1.PublisherB\003\340A\001\022\033\n\016request_ac" + + "cess\030\014 \001(\tB\003\340A\001\032N\n\025BigQueryDatasetSource" + + "\0225\n\007dataset\030\001 \001(\tB$\372A!\n\037bigquery.googlea" + + "pis.com/Dataset\"*\n\005State\022\025\n\021STATE_UNSPEC" + + "IFIED\020\000\022\n\n\006ACTIVE\020\001\"\267\004\n\010Category\022\030\n\024CATE" + + "GORY_UNSPECIFIED\020\000\022\023\n\017CATEGORY_OTHERS\020\001\022" + + "&\n\"CATEGORY_ADVERTISING_AND_MARKETING\020\002\022" + + "\025\n\021CATEGORY_COMMERCE\020\003\022$\n CATEGORY_CLIMA" + + "TE_AND_ENVIRONMENT\020\004\022\031\n\025CATEGORY_DEMOGRA" + + "PHICS\020\005\022\026\n\022CATEGORY_ECONOMICS\020\006\022\026\n\022CATEG" + + "ORY_EDUCATION\020\007\022\023\n\017CATEGORY_ENERGY\020\010\022\026\n\022" + + "CATEGORY_FINANCIAL\020\t\022\023\n\017CATEGORY_GAMING\020" + + "\n\022\027\n\023CATEGORY_GEOSPATIAL\020\013\022(\n$CATEGORY_H" + + "EALTHCARE_AND_LIFE_SCIENCE\020\014\022\022\n\016CATEGORY" + + "_MEDIA\020\r\022\032\n\026CATEGORY_PUBLIC_SECTOR\020\016\022\023\n\017" + + "CATEGORY_RETAIL\020\017\022\023\n\017CATEGORY_SPORTS\020\020\022!" + + "\n\035CATEGORY_SCIENCE_AND_RESEARCH\020\021\022)\n%CAT" + + "EGORY_TRANSPORTATION_AND_LOGISTICS\020\022\022\037\n\033" + + "CATEGORY_TRAVEL_AND_TOURISM\020\023:\202\001\352A\177\n#ana" + + "lyticshub.googleapis.com/Listing\022Xprojec" + + "ts/{project}/locations/{location}/dataEx" + + "changes/{data_exchange}/listings/{listin" + + "g}B\010\n\006source\"|\n\030ListDataExchangesRequest" + + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + + "leapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\"\206\001\n\031ListDataExchanges" + + "Response\022P\n\016data_exchanges\030\001 \003(\01328.googl" + + "e.cloud.bigquery.dataexchange.v1beta1.Da" + + "taExchange\022\027\n\017next_page_token\030\002 \001(\t\"_\n\033L" + + "istOrgDataExchangesRequest\022\031\n\014organizati" + + "on\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\"\211\001\n\034ListOrgDataExchangesRes" + + "ponse\022P\n\016data_exchanges\030\001 \003(\01328.google.c" + + "loud.bigquery.dataexchange.v1beta1.DataE" + + "xchange\022\027\n\017next_page_token\030\002 \001(\t\"X\n\026GetD" + + "ataExchangeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*" + + "\n(analyticshub.googleapis.com/DataExchan" + + "ge\"\313\001\n\031CreateDataExchangeRequest\0229\n\006pare" + + "nt\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.c" + + "om/Location\022\035\n\020data_exchange_id\030\002 \001(\tB\003\340" + + "A\002\022T\n\rdata_exchange\030\003 \001(\01328.google.cloud" + + ".bigquery.dataexchange.v1beta1.DataExcha" + + "ngeB\003\340A\002\"\247\001\n\031UpdateDataExchangeRequest\0224" + + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\002\022T\n\rdata_exchange\030\002 \001(\01328.go" + + "ogle.cloud.bigquery.dataexchange.v1beta1" + + ".DataExchangeB\003\340A\002\"[\n\031DeleteDataExchange" + + "Request\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analytics" + + "hub.googleapis.com/DataExchange\"~\n\023ListL" + + "istingsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(" + + "analyticshub.googleapis.com/DataExchange" + + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" + + "v\n\024ListListingsResponse\022E\n\010listings\030\001 \003(" + + "\01323.google.cloud.bigquery.dataexchange.v" + + "1beta1.Listing\022\027\n\017next_page_token\030\002 \001(\t\"" + + "N\n\021GetListingRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372" + + "A%\n#analyticshub.googleapis.com/Listing\"" + + "\274\001\n\024CreateListingRequest\022@\n\006parent\030\001 \001(\t" + + "B0\340A\002\372A*\n(analyticshub.googleapis.com/Da" + + "taExchange\022\027\n\nlisting_id\030\002 \001(\tB\003\340A\002\022I\n\007l" + + "isting\030\003 \001(\01323.google.cloud.bigquery.dat" + + "aexchange.v1beta1.ListingB\003\340A\002\"\227\001\n\024Updat" + + "eListingRequest\0224\n\013update_mask\030\001 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\003\340A\002\022I\n\007listing" + + "\030\002 \001(\01323.google.cloud.bigquery.dataexcha" + + "nge.v1beta1.ListingB\003\340A\002\"Q\n\024DeleteListin" + + "gRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#analytic" + + "shub.googleapis.com/Listing\"\302\001\n\027Subscrib" + + "eListingRequest\022]\n\023destination_dataset\030\003" + + " \001(\0132>.google.cloud.bigquery.dataexchang" + + "e.v1beta1.DestinationDatasetH\000\0229\n\004name\030\001" + + " \001(\tB+\340A\002\372A%\n#analyticshub.googleapis.co" + + "m/ListingB\r\n\013destination\"\032\n\030SubscribeLis" + + "tingResponse2\246\035\n\023AnalyticsHubService\022\351\001\n" + + "\021ListDataExchanges\022D.google.cloud.bigque" + + "ry.dataexchange.v1beta1.ListDataExchange" + + "sRequest\032E.google.cloud.bigquery.dataexc" + + "hange.v1beta1.ListDataExchangesResponse\"" + + "G\202\323\344\223\0028\0226/v1beta1/{parent=projects/*/loc" + + "ations/*}/dataExchanges\332A\006parent\022\203\002\n\024Lis" + + "tOrgDataExchanges\022G.google.cloud.bigquer" + + "y.dataexchange.v1beta1.ListOrgDataExchan" + + "gesRequest\032H.google.cloud.bigquery.datae" + + "xchange.v1beta1.ListOrgDataExchangesResp" + + "onse\"X\202\323\344\223\002C\022A/v1beta1/{organization=org" + + "anizations/*/locations/*}/dataExchanges\332" + + "A\014organization\022\326\001\n\017GetDataExchange\022B.goo" + + "gle.cloud.bigquery.dataexchange.v1beta1." + + "GetDataExchangeRequest\0328.google.cloud.bi" + + "gquery.dataexchange.v1beta1.DataExchange" + + "\"E\202\323\344\223\0028\0226/v1beta1/{name=projects/*/loca" + + "tions/*/dataExchanges/*}\332A\004name\022\373\001\n\022Crea" + + "teDataExchange\022E.google.cloud.bigquery.d" + + "ataexchange.v1beta1.CreateDataExchangeRe" + + "quest\0328.google.cloud.bigquery.dataexchan" + + "ge.v1beta1.DataExchange\"d\202\323\344\223\002G\"6/v1beta" + + "1/{parent=projects/*/locations/*}/dataEx" + + "changes:\rdata_exchange\332A\024parent,data_exc" + + "hange\022\216\002\n\022UpdateDataExchange\022E.google.cl" + + "oud.bigquery.dataexchange.v1beta1.Update" + + "DataExchangeRequest\0328.google.cloud.bigqu" + + "ery.dataexchange.v1beta1.DataExchange\"w\202" + + "\323\344\223\002U2D/v1beta1/{data_exchange.name=proj" + + "ects/*/locations/*/dataExchanges/*}:\rdat" + + "a_exchange\332A\031data_exchange,update_mask\022\272" + + "\001\n\022DeleteDataExchange\022E.google.cloud.big" + + "query.dataexchange.v1beta1.DeleteDataExc" + + "hangeRequest\032\026.google.protobuf.Empty\"E\202\323" + + "\344\223\0028*6/v1beta1/{name=projects/*/location" + + "s/*/dataExchanges/*}\332A\004name\022\345\001\n\014ListList" + + "ings\022?.google.cloud.bigquery.dataexchang" + + "e.v1beta1.ListListingsRequest\032@.google.c" + + "loud.bigquery.dataexchange.v1beta1.ListL" + + "istingsResponse\"R\202\323\344\223\002C\022A/v1beta1/{paren" + + "t=projects/*/locations/*/dataExchanges/*" + + "}/listings\332A\006parent\022\322\001\n\nGetListing\022=.goo" + + "gle.cloud.bigquery.dataexchange.v1beta1." + + "GetListingRequest\0323.google.cloud.bigquer" + + "y.dataexchange.v1beta1.Listing\"P\202\323\344\223\002C\022A" + + "/v1beta1/{name=projects/*/locations/*/da" + + "taExchanges/*/listings/*}\332A\004name\022\353\001\n\rCre" + + "ateListing\022@.google.cloud.bigquery.datae" + + "xchange.v1beta1.CreateListingRequest\0323.g" + + "oogle.cloud.bigquery.dataexchange.v1beta" + + "1.Listing\"c\202\323\344\223\002L\"A/v1beta1/{parent=proj" + + "ects/*/locations/*/dataExchanges/*}/list" + + "ings:\007listing\332A\016parent,listing\022\370\001\n\rUpdat" + + "eListing\022@.google.cloud.bigquery.dataexc" + + "hange.v1beta1.UpdateListingRequest\0323.goo" + + "gle.cloud.bigquery.dataexchange.v1beta1." + + "Listing\"p\202\323\344\223\002T2I/v1beta1/{listing.name=" + + "projects/*/locations/*/dataExchanges/*/l" + + "istings/*}:\007listing\332A\023listing,update_mas" + + "k\022\273\001\n\rDeleteListing\022@.google.cloud.bigqu" + + "ery.dataexchange.v1beta1.DeleteListingRe" + + "quest\032\026.google.protobuf.Empty\"P\202\323\344\223\002C*A/" + + "v1beta1/{name=projects/*/locations/*/dat" + + "aExchanges/*/listings/*}\332A\004name\022\374\001\n\020Subs" + + "cribeListing\022C.google.cloud.bigquery.dat" + + "aexchange.v1beta1.SubscribeListingReques" + + "t\032D.google.cloud.bigquery.dataexchange.v" + + "1beta1.SubscribeListingResponse\"]\202\323\344\223\002P\"" + + "K/v1beta1/{name=projects/*/locations/*/d" + + "ataExchanges/*/listings/*}:subscribe:\001*\332" + + "A\004name\022\370\001\n\014GetIamPolicy\022\".google.iam.v1." + + "GetIamPolicyRequest\032\025.google.iam.v1.Poli" + + "cy\"\254\001\202\323\344\223\002\245\001\"G/v1beta1/{resource=project" + + "s/*/locations/*/dataExchanges/*}:getIamP" + + "olicy:\001*ZW\"R/v1beta1/{resource=projects/" + + "*/locations/*/dataExchanges/*/listings/*" + + "}:getIamPolicy:\001*\022\370\001\n\014SetIamPolicy\022\".goo" + + "gle.iam.v1.SetIamPolicyRequest\032\025.google." + + "iam.v1.Policy\"\254\001\202\323\344\223\002\245\001\"G/v1beta1/{resou" + + "rce=projects/*/locations/*/dataExchanges" + + "/*}:setIamPolicy:\001*ZW\"R/v1beta1/{resourc" + + "e=projects/*/locations/*/dataExchanges/*" + + "/listings/*}:setIamPolicy:\001*\022\244\002\n\022TestIam" + + "Permissions\022(.google.iam.v1.TestIamPermi" + + "ssionsRequest\032).google.iam.v1.TestIamPer" + + "missionsResponse\"\270\001\202\323\344\223\002\261\001\"M/v1beta1/{re" + + "source=projects/*/locations/*/dataExchan" + + "ges/*}:testIamPermissions:\001*Z]\"X/v1beta1" + + "/{resource=projects/*/locations/*/dataEx" + + "changes/*/listings/*}:testIamPermissions" + + ":\001*\032x\312A\033analyticshub.googleapis.com\322AWht" + + "tps://www.googleapis.com/auth/bigquery,h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformB\363\002\n.com.google.cloud.bigquery.data" + + "exchange.v1beta1B\021DataExchangeProtoP\001ZVg" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/bigquery/dataexchange/v1beta1;dataexc" + + "hange\252\002*Google.Cloud.BigQuery.DataExchan" + + "ge.V1Beta1\312\002*Google\\Cloud\\BigQuery\\DataE" + + "xchange\\V1beta1\352\002.Google::Cloud::Bigquer" + + "y::DataExchange::V1beta1\352AH\n\037bigquery.go" + + "ogleapis.com/Dataset\022%projects/{project}" + + "/datasets/{dataset}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Description", "PrimaryContact", "Documentation", "ListingCount", "Icon", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor, + new java.lang.String[] { "Name", "PrimaryContact", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor, + new java.lang.String[] { "Name", "PrimaryContact", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor, + new java.lang.String[] { "DatasetId", "ProjectId", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor, + new java.lang.String[] { "DatasetReference", "FriendlyName", "Description", "Labels", "Location", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_descriptor = + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor, + new java.lang.String[] { "BigqueryDataset", "Name", "DisplayName", "Description", "PrimaryContact", "Documentation", "State", "Icon", "DataProvider", "Categories", "Publisher", "RequestAccess", "Source", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor = + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor, + new java.lang.String[] { "Dataset", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor, + new java.lang.String[] { "DataExchanges", "NextPageToken", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor, + new java.lang.String[] { "Organization", "PageSize", "PageToken", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor, + new java.lang.String[] { "DataExchanges", "NextPageToken", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor, + new java.lang.String[] { "Parent", "DataExchangeId", "DataExchange", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor, + new java.lang.String[] { "UpdateMask", "DataExchange", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor, + new java.lang.String[] { "Listings", "NextPageToken", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor, + new java.lang.String[] { "Parent", "ListingId", "Listing", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor, + new java.lang.String[] { "UpdateMask", "Listing", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor, + new java.lang.String[] { "DestinationDataset", "Name", "Destination", }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor, + new java.lang.String[] { }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.java similarity index 67% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.java index feaf870..b2ebea5 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Contains details of the Data Provider.
+ * Contains details of the data provider.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DataProvider} */ -public final class DataProvider extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DataProvider extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.DataProvider) DataProviderOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DataProvider.newBuilder() to construct. private DataProvider(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DataProvider() { name_ = ""; primaryContact_ = ""; @@ -44,15 +26,16 @@ private DataProvider() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DataProvider(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DataProvider( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private DataProvider( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - primaryContact_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + primaryContact_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +80,34 @@ private DataProvider( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.class, - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.class, com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
-   * Optional. Name of the Data Provider.
+   * Optional. Name of the data provider.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ @java.lang.Override @@ -140,29 +116,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * Optional. Name of the Data Provider.
+   * Optional. Name of the data provider.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -173,15 +149,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PRIMARY_CONTACT_FIELD_NUMBER = 2; private volatile java.lang.Object primaryContact_; /** - * - * *
-   * Optional. Email or URL of the Data Provider.
+   * Optional. Email or URL of the data provider.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The primaryContact. */ @java.lang.Override @@ -190,30 +163,30 @@ public java.lang.String getPrimaryContact() { 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(); primaryContact_ = s; return s; } } /** - * - * *
-   * Optional. Email or URL of the Data Provider.
+   * Optional. Email or URL of the data provider.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for primaryContact. */ @java.lang.Override - public com.google.protobuf.ByteString getPrimaryContactBytes() { + public com.google.protobuf.ByteString + getPrimaryContactBytes() { java.lang.Object ref = primaryContact_; 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); primaryContact_ = b; return b; } else { @@ -222,7 +195,6 @@ public com.google.protobuf.ByteString getPrimaryContactBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,7 +206,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_); } @@ -264,16 +237,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.bigquery.dataexchange.v1beta1.DataProvider)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider other = - (com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider other = (com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider) obj; - if (!getName().equals(other.getName())) return false; - if (!getPrimaryContact().equals(other.getPrimaryContact())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPrimaryContact() + .equals(other.getPrimaryContact())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -295,127 +269,117 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider 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; } /** - * - * *
-   * Contains details of the Data Provider.
+   * Contains details of the data provider.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DataProvider} */ - 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.bigquery.dataexchange.v1beta1.DataProvider) com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.class, - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.class, com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder.class); } // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.newBuilder() @@ -423,15 +387,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(); @@ -443,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor; } @java.lang.Override @@ -464,8 +429,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider build() { @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider result = - new com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider(this); + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider result = new com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider(this); result.name_ = name_; result.primaryContact_ = primaryContact_; onBuilt(); @@ -476,39 +440,38 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider) other); + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider)other); } else { super.mergeFrom(other); return this; @@ -516,8 +479,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -545,8 +507,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -558,20 +519,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
-     * Optional. Name of the Data Provider.
+     * Optional. Name of the data provider.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -580,21 +539,20 @@ public java.lang.String getName() { } } /** - * - * *
-     * Optional. Name of the Data Provider.
+     * Optional. Name of the data provider.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -602,61 +560,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * Optional. Name of the Data Provider.
+     * Optional. Name of the data provider.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
-     * Optional. Name of the Data Provider.
+     * Optional. Name of the data provider.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
-     * Optional. Name of the Data Provider.
+     * Optional. Name of the data provider.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -664,21 +615,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object primaryContact_ = ""; /** - * - * *
-     * Optional. Email or URL of the Data Provider.
+     * Optional. Email or URL of the data provider.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The primaryContact. */ public java.lang.String getPrimaryContact() { java.lang.Object ref = primaryContact_; 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(); primaryContact_ = s; return s; @@ -687,22 +636,21 @@ public java.lang.String getPrimaryContact() { } } /** - * - * *
-     * Optional. Email or URL of the Data Provider.
+     * Optional. Email or URL of the data provider.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for primaryContact. */ - public com.google.protobuf.ByteString getPrimaryContactBytes() { + public com.google.protobuf.ByteString + getPrimaryContactBytes() { java.lang.Object ref = primaryContact_; 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); primaryContact_ = b; return b; } else { @@ -710,71 +658,64 @@ public com.google.protobuf.ByteString getPrimaryContactBytes() { } } /** - * - * *
-     * Optional. Email or URL of the Data Provider.
+     * Optional. Email or URL of the data provider.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The primaryContact to set. * @return This builder for chaining. */ - public Builder setPrimaryContact(java.lang.String value) { + public Builder setPrimaryContact( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + primaryContact_ = value; onChanged(); return this; } /** - * - * *
-     * Optional. Email or URL of the Data Provider.
+     * Optional. Email or URL of the data provider.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPrimaryContact() { - + primaryContact_ = getDefaultInstance().getPrimaryContact(); onChanged(); return this; } /** - * - * *
-     * Optional. Email or URL of the Data Provider.
+     * Optional. Email or URL of the data provider.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for primaryContact to set. * @return This builder for chaining. */ - public Builder setPrimaryContactBytes(com.google.protobuf.ByteString value) { + public Builder setPrimaryContactBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryContact_ = 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); } @@ -784,12 +725,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.DataProvider) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.DataProvider) private static final com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider(); } @@ -798,16 +739,16 @@ public static com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataProvider parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DataProvider(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataProvider parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DataProvider(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -822,4 +763,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java similarity index 52% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java index 9bf485b..5bd031a 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java @@ -1,77 +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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface DataProviderOrBuilder - extends +public interface DataProviderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.DataProvider) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Optional. Name of the Data Provider.
+   * Optional. Name of the data provider.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
-   * Optional. Name of the Data Provider.
+   * Optional. Name of the data provider.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
-   * Optional. Email or URL of the Data Provider.
+   * Optional. Email or URL of the data provider.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The primaryContact. */ java.lang.String getPrimaryContact(); /** - * - * *
-   * Optional. Email or URL of the Data Provider.
+   * Optional. Email or URL of the data provider.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for primaryContact. */ - com.google.protobuf.ByteString getPrimaryContactBytes(); + com.google.protobuf.ByteString + getPrimaryContactBytes(); } diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.java similarity index 56% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.java index a10a411..0a8a436 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Message for deleting a DataExchange.
+ * Message for deleting a data exchange.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest} */ -public final class DeleteDataExchangeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteDataExchangeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) DeleteDataExchangeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteDataExchangeRequest.newBuilder() to construct. private DeleteDataExchangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteDataExchangeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteDataExchangeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteDataExchangeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteDataExchangeRequest( 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 DeleteDataExchangeRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
-   * Required. Resource name of the DataExchange to delete.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * Required. The full name of the data exchange resource that you want to delete.
+   * For example, `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * - * 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 DataExchange to delete.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * Required. The full name of the data exchange resource that you want to delete.
+   * For example, `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * - * 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,16 +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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest)) { + if (!(obj instanceof com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest other = - (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,146 +206,134 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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; } /** - * - * *
-   * Message for deleting a DataExchange.
+   * Message for deleting a data exchange.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest} */ - 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.Builder - .class); + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -383,22 +343,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest build() { - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest result = - buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -407,8 +364,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest result = - new com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -418,52 +374,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) other); + if (other instanceof com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) { + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -487,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -501,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
-     * Required. Resource name of the DataExchange to delete.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * Required. The full name of the data exchange resource that you want to delete.
+     * For example, `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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; @@ -526,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
-     * Required. Resource name of the DataExchange to delete.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * Required. The full name of the data exchange resource that you want to delete.
+     * For example, `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -551,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * Required. Resource name of the DataExchange to delete.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * Required. The full name of the data exchange resource that you want to delete.
+     * For example, `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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 DataExchange to delete.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * Required. The full name of the data exchange resource that you want to delete.
+     * For example, `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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 DataExchange to delete.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+     * Required. The full name of the data exchange resource that you want to delete.
+     * For example, `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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); } @@ -631,33 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDataExchangeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteDataExchangeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDataExchangeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteDataExchangeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -669,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java new file mode 100644 index 0000000..d3b0545 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto + +package com.google.cloud.bigquery.dataexchange.v1beta1; + +public interface DeleteDataExchangeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The full name of the data exchange resource that you want to delete.
+   * For example, `projects/myproject/locations/US/dataExchanges/123`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The full name of the data exchange resource that you want to delete.
+   * For example, `projects/myproject/locations/US/dataExchanges/123`.
+   * 
+ * + * 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-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.java similarity index 62% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.java index f7e03b2..5d7bd59 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Message for deleting a Listing.
+ * Message for deleting a listing.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest} */ -public final class DeleteListingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteListingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) DeleteListingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteListingRequest.newBuilder() to construct. private DeleteListingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteListingRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteListingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteListingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteListingRequest( 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 DeleteListingRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Resource name of the listing to delete.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
    * 
* - * - * 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 listing to delete.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
    * 
* - * - * 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.bigquery.dataexchange.v1beta1.DeleteListingRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest other = - (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) 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,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest 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.bigquery.dataexchange.v1beta1.DeleteListingRequest 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.bigquery.dataexchange.v1beta1.DeleteListingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest 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.bigquery.dataexchange.v1beta1.DeleteListingRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest 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.bigquery.dataexchange.v1beta1.DeleteListingRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest 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.bigquery.dataexchange.v1beta1.DeleteListingRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest 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.bigquery.dataexchange.v1beta1.DeleteListingRequest 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.bigquery.dataexchange.v1beta1.DeleteListingRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest 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; } /** - * - * *
-   * Message for deleting a Listing.
+   * Message for deleting a listing.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest} */ - 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.bigquery.dataexchange.v1beta1.DeleteListingRequest) com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +364,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest build @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest result = - new com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,51 +374,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest build 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.bigquery.dataexchange.v1beta1.DeleteListingRequest) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) other); + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Resource name of the listing to delete.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * - * 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; @@ -522,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Resource name of the listing to delete.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * - * 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 { @@ -547,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Resource name of the listing to delete.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * - * 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 listing to delete.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * - * 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 listing to delete.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * - * 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); } @@ -627,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteListingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteListingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteListingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteListingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequestOrBuilder.java new file mode 100644 index 0000000..6b0c8b0 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto + +package com.google.cloud.bigquery.dataexchange.v1beta1; + +public interface DeleteListingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Resource name of the listing to delete.
+   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Resource name of the listing to delete.
+   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * 
+ * + * 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-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.java similarity index 62% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.java index 4846e90..b7901ca 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Defines the Destination BigQuery Dataset.
+ * Defines the destination bigquery dataset.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset} */ -public final class DestinationDataset extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DestinationDataset extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) DestinationDatasetOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DestinationDataset.newBuilder() to construct. private DestinationDataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DestinationDataset() { location_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DestinationDataset(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DestinationDataset( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,82 +54,71 @@ private DestinationDataset( case 0: done = true; break; - case 10: - { - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder - subBuilder = null; - if (datasetReference_ != null) { - subBuilder = datasetReference_.toBuilder(); - } - datasetReference_ = - input.readMessage( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(datasetReference_); - datasetReference_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder subBuilder = null; + if (datasetReference_ != null) { + subBuilder = datasetReference_.toBuilder(); } - case 18: - { - com.google.protobuf.StringValue.Builder subBuilder = null; - if (friendlyName_ != null) { - subBuilder = friendlyName_.toBuilder(); - } - friendlyName_ = - input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(friendlyName_); - friendlyName_ = subBuilder.buildPartial(); - } - - break; + datasetReference_ = input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(datasetReference_); + datasetReference_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.StringValue.Builder subBuilder = null; - if (description_ != null) { - subBuilder = description_.toBuilder(); - } - description_ = - input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(description_); - description_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 18: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (friendlyName_ != null) { + subBuilder = friendlyName_.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; + friendlyName_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(friendlyName_); + friendlyName_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - location_ = s; - break; + break; + } + case 26: { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (description_ != null) { + subBuilder = description_.toBuilder(); + } + description_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(description_); + description_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + 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(); + + location_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -154,53 +126,46 @@ private DestinationDataset( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.class, - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.class, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder.class); } public static final int DATASET_REFERENCE_FIELD_NUMBER = 1; - private com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - datasetReference_; + private com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference datasetReference_; /** - * - * *
    * Required. A reference that identifies the destination dataset.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the datasetReference field is set. */ @java.lang.Override @@ -208,55 +173,37 @@ public boolean hasDatasetReference() { return datasetReference_ != null; } /** - * - * *
    * Required. A reference that identifies the destination dataset.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The datasetReference. */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - getDatasetReference() { - return datasetReference_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - .getDefaultInstance() - : datasetReference_; + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference getDatasetReference() { + return datasetReference_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.getDefaultInstance() : datasetReference_; } /** - * - * *
    * Required. A reference that identifies the destination dataset.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder - getDatasetReferenceOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder getDatasetReferenceOrBuilder() { return getDatasetReference(); } public static final int FRIENDLY_NAME_FIELD_NUMBER = 2; private com.google.protobuf.StringValue friendlyName_; /** - * - * *
    * Optional. A descriptive name for the dataset.
    * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the friendlyName field is set. */ @java.lang.Override @@ -264,32 +211,23 @@ public boolean hasFriendlyName() { return friendlyName_ != null; } /** - * - * *
    * Optional. A descriptive name for the dataset.
    * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The friendlyName. */ @java.lang.Override public com.google.protobuf.StringValue getFriendlyName() { - return friendlyName_ == null - ? com.google.protobuf.StringValue.getDefaultInstance() - : friendlyName_; + return friendlyName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : friendlyName_; } /** - * - * *
    * Optional. A descriptive name for the dataset.
    * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getFriendlyNameOrBuilder() { @@ -299,15 +237,11 @@ public com.google.protobuf.StringValueOrBuilder getFriendlyNameOrBuilder() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private com.google.protobuf.StringValue description_; /** - * - * *
    * Optional. A user-friendly description of the dataset.
    * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the description field is set. */ @java.lang.Override @@ -315,32 +249,23 @@ public boolean hasDescription() { return description_ != null; } /** - * - * *
    * Optional. A user-friendly description of the dataset.
    * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The description. */ @java.lang.Override public com.google.protobuf.StringValue getDescription() { - return description_ == null - ? com.google.protobuf.StringValue.getDefaultInstance() - : description_; + return description_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : description_; } /** - * - * *
    * Optional. A user-friendly description of the dataset.
    * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getDescriptionOrBuilder() { @@ -348,23 +273,24 @@ public com.google.protobuf.StringValueOrBuilder getDescriptionOrBuilder() { } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_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_; } @@ -373,8 +299,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -385,22 +309,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. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -412,12 +336,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. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -429,16 +352,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. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -450,11 +373,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();
     }
@@ -464,8 +388,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int LOCATION_FIELD_NUMBER = 5;
   private volatile java.lang.Object location_;
   /**
-   *
-   *
    * 
    * Required. The geographic location where the dataset should reside. See
    * https://cloud.google.com/bigquery/docs/locations for supported
@@ -473,7 +395,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The location. */ @java.lang.Override @@ -482,15 +403,14 @@ 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; } } /** - * - * *
    * Required. The geographic location where the dataset should reside. See
    * https://cloud.google.com/bigquery/docs/locations for supported
@@ -498,15 +418,16 @@ public java.lang.String getLocation() {
    * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -515,7 +436,6 @@ public com.google.protobuf.ByteString getLocationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -527,7 +447,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 (datasetReference_ != null) { output.writeMessage(1, getDatasetReference()); } @@ -537,8 +458,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (description_ != null) { output.writeMessage(3, getDescription()); } - 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(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, location_); } @@ -552,23 +477,26 @@ public int getSerializedSize() { size = 0; if (datasetReference_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDatasetReference()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDatasetReference()); } if (friendlyName_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFriendlyName()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFriendlyName()); } if (description_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDescription()); - } - 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, getDescription()); + } + 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(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, location_); @@ -581,28 +509,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset other = - (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset other = (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) obj; if (hasDatasetReference() != other.hasDatasetReference()) return false; if (hasDatasetReference()) { - if (!getDatasetReference().equals(other.getDatasetReference())) return false; + if (!getDatasetReference() + .equals(other.getDatasetReference())) return false; } if (hasFriendlyName() != other.hasFriendlyName()) return false; if (hasFriendlyName()) { - if (!getFriendlyName().equals(other.getFriendlyName())) return false; + if (!getFriendlyName() + .equals(other.getFriendlyName())) return false; } if (hasDescription() != other.hasDescription()) return false; if (hasDescription()) { - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getLocation().equals(other.getLocation())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -638,165 +570,156 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset 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.bigquery.dataexchange.v1beta1.DestinationDataset 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.bigquery.dataexchange.v1beta1.DestinationDataset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset 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.bigquery.dataexchange.v1beta1.DestinationDataset parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset 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.bigquery.dataexchange.v1beta1.DestinationDataset parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset 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.bigquery.dataexchange.v1beta1.DestinationDataset - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset 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.bigquery.dataexchange.v1beta1.DestinationDataset 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.bigquery.dataexchange.v1beta1.DestinationDataset prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset 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; } /** - * - * *
-   * Defines the Destination BigQuery Dataset.
+   * Defines the destination bigquery dataset.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset} */ - 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.bigquery.dataexchange.v1beta1.DestinationDataset) com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.class, - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.class, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -825,14 +748,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset getDefaultInstanceForType() { return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance(); } @@ -847,8 +769,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset build() @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset result = - new com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset(this); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset result = new com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset(this); int from_bitField0_ = bitField0_; if (datasetReferenceBuilder_ == null) { result.datasetReference_ = datasetReference_; @@ -876,50 +797,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset buildPa 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.bigquery.dataexchange.v1beta1.DestinationDataset) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) other); + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance()) return this; if (other.hasDatasetReference()) { mergeDatasetReference(other.getDatasetReference()); } @@ -929,7 +846,8 @@ public Builder mergeFrom( if (other.hasDescription()) { mergeDescription(other.getDescription()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); @@ -953,9 +871,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -964,69 +880,45 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - datasetReference_; + private com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference datasetReference_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference, - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder> - datasetReferenceBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder> datasetReferenceBuilder_; /** - * - * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the datasetReference field is set. */ public boolean hasDatasetReference() { return datasetReferenceBuilder_ != null || datasetReference_ != null; } /** - * - * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The datasetReference. */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - getDatasetReference() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference getDatasetReference() { if (datasetReferenceBuilder_ == null) { - return datasetReference_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - .getDefaultInstance() - : datasetReference_; + return datasetReference_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.getDefaultInstance() : datasetReference_; } else { return datasetReferenceBuilder_.getMessage(); } } /** - * - * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDatasetReference( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference value) { + public Builder setDatasetReference(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference value) { if (datasetReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1040,19 +932,14 @@ public Builder setDatasetReference( return this; } /** - * - * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDatasetReference( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder - builderForValue) { + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder builderForValue) { if (datasetReferenceBuilder_ == null) { datasetReference_ = builderForValue.build(); onChanged(); @@ -1063,25 +950,17 @@ public Builder setDatasetReference( return this; } /** - * - * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeDatasetReference( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference value) { + public Builder mergeDatasetReference(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference value) { if (datasetReferenceBuilder_ == null) { if (datasetReference_ != null) { datasetReference_ = - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.newBuilder( - datasetReference_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.newBuilder(datasetReference_).mergeFrom(value).buildPartial(); } else { datasetReference_ = value; } @@ -1093,15 +972,11 @@ public Builder mergeDatasetReference( return this; } /** - * - * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDatasetReference() { if (datasetReferenceBuilder_ == null) { @@ -1115,68 +990,48 @@ public Builder clearDatasetReference() { return this; } /** - * - * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder - getDatasetReferenceBuilder() { - + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder getDatasetReferenceBuilder() { + onChanged(); return getDatasetReferenceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder - getDatasetReferenceOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder getDatasetReferenceOrBuilder() { if (datasetReferenceBuilder_ != null) { return datasetReferenceBuilder_.getMessageOrBuilder(); } else { - return datasetReference_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - .getDefaultInstance() - : datasetReference_; + return datasetReference_ == null ? + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.getDefaultInstance() : datasetReference_; } } /** - * - * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference, - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder> getDatasetReferenceFieldBuilder() { if (datasetReferenceBuilder_ == null) { - datasetReferenceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference, - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1 - .DestinationDatasetReferenceOrBuilder>( - getDatasetReference(), getParentForChildren(), isClean()); + datasetReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder>( + getDatasetReference(), + getParentForChildren(), + isClean()); datasetReference_ = null; } return datasetReferenceBuilder_; @@ -1184,58 +1039,39 @@ public Builder clearDatasetReference() { private com.google.protobuf.StringValue friendlyName_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, - com.google.protobuf.StringValue.Builder, - com.google.protobuf.StringValueOrBuilder> - friendlyNameBuilder_; + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> friendlyNameBuilder_; /** - * - * *
      * Optional. A descriptive name for the dataset.
      * 
* - * - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the friendlyName field is set. */ public boolean hasFriendlyName() { return friendlyNameBuilder_ != null || friendlyName_ != null; } /** - * - * *
      * Optional. A descriptive name for the dataset.
      * 
* - * - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The friendlyName. */ public com.google.protobuf.StringValue getFriendlyName() { if (friendlyNameBuilder_ == null) { - return friendlyName_ == null - ? com.google.protobuf.StringValue.getDefaultInstance() - : friendlyName_; + return friendlyName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : friendlyName_; } else { return friendlyNameBuilder_.getMessage(); } } /** - * - * *
      * Optional. A descriptive name for the dataset.
      * 
* - * - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setFriendlyName(com.google.protobuf.StringValue value) { if (friendlyNameBuilder_ == null) { @@ -1251,17 +1087,14 @@ public Builder setFriendlyName(com.google.protobuf.StringValue value) { return this; } /** - * - * *
      * Optional. A descriptive name for the dataset.
      * 
* - * - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setFriendlyName(com.google.protobuf.StringValue.Builder builderForValue) { + public Builder setFriendlyName( + com.google.protobuf.StringValue.Builder builderForValue) { if (friendlyNameBuilder_ == null) { friendlyName_ = builderForValue.build(); onChanged(); @@ -1272,23 +1105,17 @@ public Builder setFriendlyName(com.google.protobuf.StringValue.Builder builderFo return this; } /** - * - * *
      * Optional. A descriptive name for the dataset.
      * 
* - * - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeFriendlyName(com.google.protobuf.StringValue value) { if (friendlyNameBuilder_ == null) { if (friendlyName_ != null) { friendlyName_ = - com.google.protobuf.StringValue.newBuilder(friendlyName_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.StringValue.newBuilder(friendlyName_).mergeFrom(value).buildPartial(); } else { friendlyName_ = value; } @@ -1300,15 +1127,11 @@ public Builder mergeFriendlyName(com.google.protobuf.StringValue value) { return this; } /** - * - * *
      * Optional. A descriptive name for the dataset.
      * 
* - * - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearFriendlyName() { if (friendlyNameBuilder_ == null) { @@ -1322,64 +1145,48 @@ public Builder clearFriendlyName() { return this; } /** - * - * *
      * Optional. A descriptive name for the dataset.
      * 
* - * - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.StringValue.Builder getFriendlyNameBuilder() { - + onChanged(); return getFriendlyNameFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. A descriptive name for the dataset.
      * 
* - * - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.StringValueOrBuilder getFriendlyNameOrBuilder() { if (friendlyNameBuilder_ != null) { return friendlyNameBuilder_.getMessageOrBuilder(); } else { - return friendlyName_ == null - ? com.google.protobuf.StringValue.getDefaultInstance() - : friendlyName_; + return friendlyName_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : friendlyName_; } } /** - * - * *
      * Optional. A descriptive name for the dataset.
      * 
* - * - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, - com.google.protobuf.StringValue.Builder, - com.google.protobuf.StringValueOrBuilder> + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getFriendlyNameFieldBuilder() { if (friendlyNameBuilder_ == null) { - friendlyNameBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, - com.google.protobuf.StringValue.Builder, - com.google.protobuf.StringValueOrBuilder>( - getFriendlyName(), getParentForChildren(), isClean()); + friendlyNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getFriendlyName(), + getParentForChildren(), + isClean()); friendlyName_ = null; } return friendlyNameBuilder_; @@ -1387,55 +1194,39 @@ public com.google.protobuf.StringValueOrBuilder getFriendlyNameOrBuilder() { private com.google.protobuf.StringValue description_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, - com.google.protobuf.StringValue.Builder, - com.google.protobuf.StringValueOrBuilder> - descriptionBuilder_; + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> descriptionBuilder_; /** - * - * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the description field is set. */ public boolean hasDescription() { return descriptionBuilder_ != null || description_ != null; } /** - * - * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The description. */ public com.google.protobuf.StringValue getDescription() { if (descriptionBuilder_ == null) { - return description_ == null - ? com.google.protobuf.StringValue.getDefaultInstance() - : description_; + return description_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : description_; } else { return descriptionBuilder_.getMessage(); } } /** - * - * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDescription(com.google.protobuf.StringValue value) { if (descriptionBuilder_ == null) { @@ -1451,16 +1242,14 @@ public Builder setDescription(com.google.protobuf.StringValue value) { return this; } /** - * - * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDescription(com.google.protobuf.StringValue.Builder builderForValue) { + public Builder setDescription( + com.google.protobuf.StringValue.Builder builderForValue) { if (descriptionBuilder_ == null) { description_ = builderForValue.build(); onChanged(); @@ -1471,22 +1260,17 @@ public Builder setDescription(com.google.protobuf.StringValue.Builder builderFor return this; } /** - * - * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeDescription(com.google.protobuf.StringValue value) { if (descriptionBuilder_ == null) { if (description_ != null) { description_ = - com.google.protobuf.StringValue.newBuilder(description_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.StringValue.newBuilder(description_).mergeFrom(value).buildPartial(); } else { description_ = value; } @@ -1498,14 +1282,11 @@ public Builder mergeDescription(com.google.protobuf.StringValue value) { return this; } /** - * - * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDescription() { if (descriptionBuilder_ == null) { @@ -1519,81 +1300,69 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.StringValue.Builder getDescriptionBuilder() { - + onChanged(); return getDescriptionFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.StringValueOrBuilder getDescriptionOrBuilder() { if (descriptionBuilder_ != null) { return descriptionBuilder_.getMessageOrBuilder(); } else { - return description_ == null - ? com.google.protobuf.StringValue.getDefaultInstance() - : description_; + return description_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : description_; } } /** - * - * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, - com.google.protobuf.StringValue.Builder, - com.google.protobuf.StringValueOrBuilder> + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getDescriptionFieldBuilder() { if (descriptionBuilder_ == null) { - descriptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, - com.google.protobuf.StringValue.Builder, - com.google.protobuf.StringValueOrBuilder>( - getDescription(), getParentForChildren(), isClean()); + descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getDescription(), + getParentForChildren(), + isClean()); description_ = null; } return descriptionBuilder_; } - 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(); @@ -1605,8 +1374,6 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. The labels associated with this dataset. You can use these
      * to organize and group your datasets.
@@ -1617,22 +1384,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. The labels associated with this dataset. You can use these
      * to organize and group your datasets.
@@ -1644,12 +1411,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. The labels associated with this dataset. You can use these
      * to organize and group your datasets.
@@ -1661,17 +1427,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. The labels associated with this dataset. You can use these
      * to organize and group your datasets.
@@ -1683,11 +1448,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();
       }
@@ -1695,12 +1461,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. The labels associated with this dataset. You can use these
      * to organize and group your datasets.
@@ -1711,21 +1476,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. The labels associated with this dataset. You can use these
      * to organize and group your datasets.
@@ -1736,20 +1503,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. The labels associated with this dataset. You can use these
      * to organize and group your datasets.
@@ -1760,15 +1526,16 @@ 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 location_ = "";
     /**
-     *
-     *
      * 
      * Required. The geographic location where the dataset should reside. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1776,13 +1543,13 @@ public Builder putAllLabels(java.util.Map va
      * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -1791,8 +1558,6 @@ public java.lang.String getLocation() { } } /** - * - * *
      * Required. The geographic location where the dataset should reside. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1800,14 +1565,15 @@ public java.lang.String getLocation() {
      * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -1815,8 +1581,6 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
      * Required. The geographic location where the dataset should reside. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1824,22 +1588,20 @@ public com.google.protobuf.ByteString getLocationBytes() {
      * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @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; } /** - * - * *
      * Required. The geographic location where the dataset should reside. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1847,18 +1609,15 @@ public Builder setLocation(java.lang.String value) {
      * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** - * - * *
      * Required. The geographic location where the dataset should reside. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1866,23 +1625,23 @@ public Builder clearLocation() {
      * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @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; } - @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); } @@ -1892,32 +1651,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DestinationDataset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DestinationDataset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DestinationDataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DestinationDataset(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1929,8 +1686,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetOrBuilder.java similarity index 71% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetOrBuilder.java index 9fbbc50..49f58ff 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetOrBuilder.java @@ -1,149 +1,94 @@ -/* - * 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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface DestinationDatasetOrBuilder - extends +public interface DestinationDatasetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A reference that identifies the destination dataset.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the datasetReference field is set. */ boolean hasDatasetReference(); /** - * - * *
    * Required. A reference that identifies the destination dataset.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The datasetReference. */ com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference getDatasetReference(); /** - * - * *
    * Required. A reference that identifies the destination dataset.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder - getDatasetReferenceOrBuilder(); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder getDatasetReferenceOrBuilder(); /** - * - * *
    * Optional. A descriptive name for the dataset.
    * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the friendlyName field is set. */ boolean hasFriendlyName(); /** - * - * *
    * Optional. A descriptive name for the dataset.
    * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The friendlyName. */ com.google.protobuf.StringValue getFriendlyName(); /** - * - * *
    * Optional. A descriptive name for the dataset.
    * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.StringValueOrBuilder getFriendlyNameOrBuilder(); /** - * - * *
    * Optional. A user-friendly description of the dataset.
    * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the description field is set. */ boolean hasDescription(); /** - * - * *
    * Optional. A user-friendly description of the dataset.
    * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The description. */ com.google.protobuf.StringValue getDescription(); /** - * - * *
    * Optional. A user-friendly description of the dataset.
    * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.StringValueOrBuilder getDescriptionOrBuilder(); /** - * - * *
    * Optional. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -156,8 +101,6 @@ public interface DestinationDatasetOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -168,13 +111,15 @@ public interface DestinationDatasetOrBuilder
    *
    * 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. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -185,10 +130,9 @@ public interface DestinationDatasetOrBuilder
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -201,13 +145,11 @@ public interface DestinationDatasetOrBuilder
    */
 
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -218,11 +160,11 @@ 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);
 
   /**
-   *
-   *
    * 
    * Required. The geographic location where the dataset should reside. See
    * https://cloud.google.com/bigquery/docs/locations for supported
@@ -230,13 +172,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
    * Required. The geographic location where the dataset should reside. See
    * https://cloud.google.com/bigquery/docs/locations for supported
@@ -244,8 +183,8 @@ java.lang.String getLabelsOrDefault(
    * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); } diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.java similarity index 63% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.java index e236bb4..82374b5 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Defines the Destination BigQuery Dataset Reference.
+ * Contains the reference that identifies a destination bigquery dataset.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference} */ -public final class DestinationDatasetReference extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DestinationDatasetReference extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) DestinationDatasetReferenceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DestinationDatasetReference.newBuilder() to construct. private DestinationDatasetReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DestinationDatasetReference() { datasetId_ = ""; projectId_ = ""; @@ -44,15 +26,16 @@ private DestinationDatasetReference() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DestinationDatasetReference(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DestinationDatasetReference( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private DestinationDatasetReference( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - datasetId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + datasetId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + projectId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,34 +80,29 @@ private DestinationDatasetReference( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.class, - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder - .class); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.class, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder.class); } public static final int DATASET_ID_FIELD_NUMBER = 1; private volatile java.lang.Object datasetId_; /** - * - * *
    * Required. A unique ID for this dataset, without the project name. The ID
    * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -134,7 +110,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The datasetId. */ @java.lang.Override @@ -143,15 +118,14 @@ public java.lang.String getDatasetId() { 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(); datasetId_ = s; return s; } } /** - * - * *
    * Required. A unique ID for this dataset, without the project name. The ID
    * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -159,15 +133,16 @@ public java.lang.String getDatasetId() {
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetIdBytes() { + public com.google.protobuf.ByteString + getDatasetIdBytes() { java.lang.Object ref = datasetId_; 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); datasetId_ = b; return b; } else { @@ -178,14 +153,11 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** - * - * *
    * Required. The ID of the project containing this dataset.
    * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ @java.lang.Override @@ -194,29 +166,29 @@ public java.lang.String getProjectId() { 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(); projectId_ = s; return s; } } /** - * - * *
    * Required. The ID of the project containing this dataset.
    * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; 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); projectId_ = b; return b; } else { @@ -225,7 +197,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,7 +208,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(datasetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); } @@ -267,17 +239,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.bigquery.dataexchange.v1beta1.DestinationDatasetReference)) { + if (!(obj instanceof com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference other = - (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference other = (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) obj; - if (!getDatasetId().equals(other.getDatasetId())) return false; - if (!getProjectId().equals(other.getProjectId())) return false; + if (!getDatasetId() + .equals(other.getDatasetId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -298,152 +270,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference 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.bigquery.dataexchange.v1beta1.DestinationDatasetReference - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference 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; } /** - * - * *
-   * Defines the Destination BigQuery Dataset Reference.
+   * Contains the reference that identifies a destination bigquery dataset.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference} */ - 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.bigquery.dataexchange.v1beta1.DestinationDatasetReference) com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.class, - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder - .class); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.class, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -455,22 +410,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference build() { - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference result = - buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -478,10 +430,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenc } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference result = - new com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference(this); + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference buildPartial() { + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference result = new com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference(this); result.datasetId_ = datasetId_; result.projectId_ = projectId_; onBuilt(); @@ -492,52 +442,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenc 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.bigquery.dataexchange.v1beta1.DestinationDatasetReference) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) other); + if (other instanceof com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) { + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.getDefaultInstance()) return this; if (!other.getDatasetId().isEmpty()) { datasetId_ = other.datasetId_; onChanged(); @@ -561,14 +505,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parsedMessage = - null; + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -580,8 +521,6 @@ public Builder mergeFrom( private java.lang.Object datasetId_ = ""; /** - * - * *
      * Required. A unique ID for this dataset, without the project name. The ID
      * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -589,13 +528,13 @@ public Builder mergeFrom(
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The datasetId. */ public java.lang.String getDatasetId() { java.lang.Object ref = datasetId_; 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(); datasetId_ = s; return s; @@ -604,8 +543,6 @@ public java.lang.String getDatasetId() { } } /** - * - * *
      * Required. A unique ID for this dataset, without the project name. The ID
      * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -613,14 +550,15 @@ public java.lang.String getDatasetId() {
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString getDatasetIdBytes() { + public com.google.protobuf.ByteString + getDatasetIdBytes() { java.lang.Object ref = datasetId_; 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); datasetId_ = b; return b; } else { @@ -628,8 +566,6 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { } } /** - * - * *
      * Required. A unique ID for this dataset, without the project name. The ID
      * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -637,22 +573,20 @@ public com.google.protobuf.ByteString getDatasetIdBytes() {
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetId(java.lang.String value) { + public Builder setDatasetId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + datasetId_ = value; onChanged(); return this; } /** - * - * *
      * Required. A unique ID for this dataset, without the project name. The ID
      * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -660,18 +594,15 @@ public Builder setDatasetId(java.lang.String value) {
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDatasetId() { - + datasetId_ = getDefaultInstance().getDatasetId(); onChanged(); return this; } /** - * - * *
      * Required. A unique ID for this dataset, without the project name. The ID
      * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -679,16 +610,16 @@ public Builder clearDatasetId() {
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { + public Builder setDatasetIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datasetId_ = value; onChanged(); return this; @@ -696,20 +627,18 @@ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object projectId_ = ""; /** - * - * *
      * Required. The ID of the project containing this dataset.
      * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; 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(); projectId_ = s; return s; @@ -718,21 +647,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
      * Required. The ID of the project containing this dataset.
      * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; 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); projectId_ = b; return b; } else { @@ -740,68 +668,61 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
      * Required. The ID of the project containing this dataset.
      * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { + public Builder setProjectId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID of the project containing this dataset.
      * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** - * - * *
      * Required. The ID of the project containing this dataset.
      * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = 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); } @@ -811,33 +732,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DestinationDatasetReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DestinationDatasetReference(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DestinationDatasetReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DestinationDatasetReference(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -849,8 +767,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReferenceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReferenceOrBuilder.java similarity index 65% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReferenceOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReferenceOrBuilder.java index 3405e7a..def4ee4 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReferenceOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReferenceOrBuilder.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface DestinationDatasetReferenceOrBuilder - extends +public interface DestinationDatasetReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A unique ID for this dataset, without the project name. The ID
    * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -33,13 +15,10 @@ public interface DestinationDatasetReferenceOrBuilder
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The datasetId. */ java.lang.String getDatasetId(); /** - * - * *
    * Required. A unique ID for this dataset, without the project name. The ID
    * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -47,33 +26,28 @@ public interface DestinationDatasetReferenceOrBuilder
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for datasetId. */ - com.google.protobuf.ByteString getDatasetIdBytes(); + com.google.protobuf.ByteString + getDatasetIdBytes(); /** - * - * *
    * Required. The ID of the project containing this dataset.
    * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
    * Required. The ID of the project containing this dataset.
    * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); } diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.java similarity index 60% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.java index 4cbf701..d4d7b88 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Message for getting a DataExchange.
+ * Message for getting a data exchange.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest} */ -public final class GetDataExchangeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetDataExchangeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) GetDataExchangeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetDataExchangeRequest.newBuilder() to construct. private GetDataExchangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetDataExchangeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetDataExchangeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetDataExchangeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetDataExchangeRequest( 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 GetDataExchangeRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
-   * Required. The resource name of the DataExchange.
+   * Required. The resource name of the data exchange.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * - * 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. The resource name of the DataExchange.
+   * Required. The resource name of the data exchange.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * - * 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest other = - (com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) 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,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest 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; } /** - * - * *
-   * Message for getting a DataExchange.
+   * Message for getting a data exchange.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest} */ - 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +364,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest bui @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest result = - new com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,51 +374,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest bui 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) other); + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
-     * Required. The resource name of the DataExchange.
+     * Required. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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; @@ -522,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
-     * Required. The resource name of the DataExchange.
+     * Required. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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 { @@ -547,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * Required. The resource name of the DataExchange.
+     * Required. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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. The resource name of the DataExchange.
+     * Required. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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. The resource name of the DataExchange.
+     * Required. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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); } @@ -627,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDataExchangeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDataExchangeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataExchangeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDataExchangeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java new file mode 100644 index 0000000..64ebb89 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto + +package com.google.cloud.bigquery.dataexchange.v1beta1; + +public interface GetDataExchangeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the data exchange.
+   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the data exchange.
+   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * 
+ * + * 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-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.java similarity index 63% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.java index d06423d..51e57d8 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Message for getting a Listing.
+ * Message for getting a listing.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest} */ -public final class GetListingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetListingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) GetListingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetListingRequest.newBuilder() to construct. private GetListingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetListingRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetListingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetListingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetListingRequest( 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 GetListingRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
    * 
* - * - * 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. The resource name of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
    * 
* - * - * 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.bigquery.dataexchange.v1beta1.GetListingRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest other = - (com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) 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.bigquery.dataexchange.v1beta1.GetListingRequest 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.bigquery.dataexchange.v1beta1.GetListingRequest 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.bigquery.dataexchange.v1beta1.GetListingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest 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.bigquery.dataexchange.v1beta1.GetListingRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest 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.bigquery.dataexchange.v1beta1.GetListingRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest 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.bigquery.dataexchange.v1beta1.GetListingRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest 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.bigquery.dataexchange.v1beta1.GetListingRequest 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.bigquery.dataexchange.v1beta1.GetListingRequest 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.bigquery.dataexchange.v1beta1.GetListingRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest 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; } /** - * - * *
-   * Message for getting a Listing.
+   * Message for getting a listing.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest} */ - 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.bigquery.dataexchange.v1beta1.GetListingRequest) com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.Builder.class); } // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.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,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest build() @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest result = - new com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,50 +374,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest buildPar 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.bigquery.dataexchange.v1beta1.GetListingRequest) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) other); + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -479,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * - * 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; @@ -518,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * - * 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 { @@ -543,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * - * 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. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * - * 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. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * - * 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); } @@ -623,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetListingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetListingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetListingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetListingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequestOrBuilder.java new file mode 100644 index 0000000..db3b624 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto + +package com.google.cloud.bigquery.dataexchange.v1beta1; + +public interface GetListingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the listing.
+   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the listing.
+   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * 
+ * + * 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-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.java similarity index 63% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.java index 54ef371..a4de896 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Message for requesting list of DataExchanges.
+ * Message for requesting the list of data exchanges.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest} */ -public final class ListDataExchangesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDataExchangesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) ListDataExchangesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDataExchangesRequest.newBuilder() to construct. private ListDataExchangesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDataExchangesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListDataExchangesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDataExchangesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListDataExchangesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListDataExchangesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListDataExchangesRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
-   * Required. The parent resource path of the DataExchanges.
+   * Required. The parent resource path of the data exchanges.
    * e.g. `projects/myproject/locations/US`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
-   * Required. The parent resource path of the DataExchanges.
+   * Required. The parent resource path of the data exchanges.
    * e.g. `projects/myproject/locations/US`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,15 +156,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response page. Leverage
    * the page tokens to iterate through the entire collection.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -203,15 +172,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -220,30 +186,30 @@ 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, returned by a previous call, to request the next page of
    * results.
    * 
* * 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 { @@ -252,7 +218,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +229,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_); } @@ -287,7 +253,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_); @@ -300,17 +267,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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest other = - (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,146 +303,134 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest 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; } /** - * - * *
-   * Message for requesting list of DataExchanges.
+   * Message for requesting the list of data exchanges.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest} */ - 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.Builder - .class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,22 +444,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest build() { - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest result = - buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -511,8 +465,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest b @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest result = - new com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -524,52 +477,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest b 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) other); + if (other instanceof com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) { + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -600,9 +547,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,23 +559,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. The parent resource path of the DataExchanges.
+     * Required. The parent resource path of the data exchanges.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * - * 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; @@ -639,24 +580,21 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. The parent resource path of the DataExchanges.
+     * Required. The parent resource path of the data exchanges.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * - * 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 { @@ -664,86 +602,70 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. The parent resource path of the DataExchanges.
+     * Required. The parent resource path of the data exchanges.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * - * 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. The parent resource path of the DataExchanges.
+     * Required. The parent resource path of the data exchanges.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * - * 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. The parent resource path of the DataExchanges.
+     * Required. The parent resource path of the data exchanges.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -751,38 +673,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -790,21 +706,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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; @@ -813,22 +727,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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 { @@ -836,71 +749,64 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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, returned by a previous call, to request the next page of
      * results.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -910,33 +816,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataExchangesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDataExchangesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataExchangesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDataExchangesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,8 +851,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java similarity index 51% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java index 46c89fd..f9d2208 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java @@ -1,97 +1,64 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface ListDataExchangesRequestOrBuilder - extends +public interface ListDataExchangesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Required. The parent resource path of the DataExchanges.
+   * Required. The parent resource path of the data exchanges.
    * e.g. `projects/myproject/locations/US`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
-   * Required. The parent resource path of the DataExchanges.
+   * Required. The parent resource path of the data exchanges.
    * e.g. `projects/myproject/locations/US`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of results to return in a single response page. Leverage
    * the page tokens to iterate through the entire collection.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.java similarity index 64% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.java index 14e15f2..5995648 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Message for response to listing DataExchanges.
+ * Message for response to the list of data exchanges.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse} */ -public final class ListDataExchangesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDataExchangesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) ListDataExchangesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDataExchangesResponse.newBuilder() to construct. private ListDataExchangesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDataExchangesResponse() { dataExchanges_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListDataExchangesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDataExchangesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListDataExchangesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private ListDataExchangesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dataExchanges_ = - new java.util.ArrayList< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>(); - mutable_bitField0_ |= 0x00000001; - } - dataExchanges_.add( - input.readMessage( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dataExchanges_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + dataExchanges_.add( + input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,7 +84,8 @@ private ListDataExchangesResponse( } 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)) { dataExchanges_ = java.util.Collections.unmodifiableList(dataExchanges_); @@ -116,111 +94,87 @@ private ListDataExchangesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.class, - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.Builder.class); } public static final int DATA_EXCHANGES_FIELD_NUMBER = 1; - private java.util.List - dataExchanges_; + private java.util.List dataExchanges_; /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ @java.lang.Override - public java.util.List - getDataExchangesList() { + public java.util.List getDataExchangesList() { return dataExchanges_; } /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> + public java.util.List getDataExchangesOrBuilderList() { return dataExchanges_; } /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ @java.lang.Override public int getDataExchangesCount() { return dataExchanges_.size(); } /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchanges(int index) { return dataExchanges_.get(index); } /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder - getDataExchangesOrBuilder(int index) { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangesOrBuilder( + int index) { return dataExchanges_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -229,29 +183,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; } } /** - * - * *
    * A token to request the next page of results.
    * 
* * 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 { @@ -260,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,7 +225,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 < dataExchanges_.size(); i++) { output.writeMessage(1, dataExchanges_.get(i)); } @@ -289,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < dataExchanges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataExchanges_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, dataExchanges_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -302,17 +257,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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse)) { + if (!(obj instanceof com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse other = - (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse other = (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) obj; - if (!getDataExchangesList().equals(other.getDataExchangesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDataExchangesList() + .equals(other.getDataExchangesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -336,148 +291,135 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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; } /** - * - * *
-   * Message for response to listing DataExchanges.
+   * Message for response to the list of data exchanges.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse} */ - 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.class, - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.Builder - .class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getDataExchangesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -493,22 +435,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse build() { - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse result = - buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -517,8 +456,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse result = - new com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse(this); + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse result = new com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse(this); int from_bitField0_ = bitField0_; if (dataExchangesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -538,52 +476,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) other); + if (other instanceof com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) { + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.getDefaultInstance()) return this; if (dataExchangesBuilder_ == null) { if (!other.dataExchanges_.isEmpty()) { if (dataExchanges_.isEmpty()) { @@ -602,10 +534,9 @@ public Builder mergeFrom( dataExchangesBuilder_ = null; dataExchanges_ = other.dataExchanges_; bitField0_ = (bitField0_ & ~0x00000001); - dataExchangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDataExchangesFieldBuilder() - : null; + dataExchangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDataExchangesFieldBuilder() : null; } else { dataExchangesBuilder_.addAllMessages(other.dataExchanges_); } @@ -634,9 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -645,39 +574,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - dataExchanges_ = java.util.Collections.emptyList(); - + private java.util.List dataExchanges_ = + java.util.Collections.emptyList(); private void ensureDataExchangesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - dataExchanges_ = - new java.util.ArrayList( - dataExchanges_); + dataExchanges_ = new java.util.ArrayList(dataExchanges_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> - dataExchangesBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> dataExchangesBuilder_; /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - public java.util.List - getDataExchangesList() { + public java.util.List getDataExchangesList() { if (dataExchangesBuilder_ == null) { return java.util.Collections.unmodifiableList(dataExchanges_); } else { @@ -685,14 +603,11 @@ private void ensureDataExchangesIsMutable() { } } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public int getDataExchangesCount() { if (dataExchangesBuilder_ == null) { @@ -702,14 +617,11 @@ public int getDataExchangesCount() { } } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchanges(int index) { if (dataExchangesBuilder_ == null) { @@ -719,14 +631,11 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchan } } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public Builder setDataExchanges( int index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { @@ -743,18 +652,14 @@ public Builder setDataExchanges( return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public Builder setDataExchanges( - int index, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { + int index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { if (dataExchangesBuilder_ == null) { ensureDataExchangesIsMutable(); dataExchanges_.set(index, builderForValue.build()); @@ -765,17 +670,13 @@ public Builder setDataExchanges( return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - public Builder addDataExchanges( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { + public Builder addDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { if (dataExchangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -789,14 +690,11 @@ public Builder addDataExchanges( return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public Builder addDataExchanges( int index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { @@ -813,14 +711,11 @@ public Builder addDataExchanges( return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public Builder addDataExchanges( com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { @@ -834,18 +729,14 @@ public Builder addDataExchanges( return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public Builder addDataExchanges( - int index, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { + int index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { if (dataExchangesBuilder_ == null) { ensureDataExchangesIsMutable(); dataExchanges_.add(index, builderForValue.build()); @@ -856,21 +747,18 @@ public Builder addDataExchanges( return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public Builder addAllDataExchanges( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (dataExchangesBuilder_ == null) { ensureDataExchangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataExchanges_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dataExchanges_); onChanged(); } else { dataExchangesBuilder_.addAllMessages(values); @@ -878,14 +766,11 @@ public Builder addAllDataExchanges( return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public Builder clearDataExchanges() { if (dataExchangesBuilder_ == null) { @@ -898,14 +783,11 @@ public Builder clearDataExchanges() { return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public Builder removeDataExchanges(int index) { if (dataExchangesBuilder_ == null) { @@ -918,50 +800,39 @@ public Builder removeDataExchanges(int index) { return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder - getDataExchangesBuilder(int index) { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder getDataExchangesBuilder( + int index) { return getDataExchangesFieldBuilder().getBuilder(index); } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder - getDataExchangesOrBuilder(int index) { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangesOrBuilder( + int index) { if (dataExchangesBuilder_ == null) { - return dataExchanges_.get(index); - } else { + return dataExchanges_.get(index); } else { return dataExchangesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - public java.util.List< - ? extends com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> - getDataExchangesOrBuilderList() { + public java.util.List + getDataExchangesOrBuilderList() { if (dataExchangesBuilder_ != null) { return dataExchangesBuilder_.getMessageOrBuilderList(); } else { @@ -969,64 +840,45 @@ public Builder removeDataExchanges(int index) { } } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder - addDataExchangesBuilder() { - return getDataExchangesFieldBuilder() - .addBuilder( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()); + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder addDataExchangesBuilder() { + return getDataExchangesFieldBuilder().addBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()); } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder - addDataExchangesBuilder(int index) { - return getDataExchangesFieldBuilder() - .addBuilder( - index, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()); + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder addDataExchangesBuilder( + int index) { + return getDataExchangesFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()); } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - public java.util.List - getDataExchangesBuilderList() { + public java.util.List + getDataExchangesBuilderList() { return getDataExchangesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> getDataExchangesFieldBuilder() { if (dataExchangesBuilder_ == null) { - dataExchangesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>( + dataExchangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>( dataExchanges_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1038,20 +890,18 @@ public Builder removeDataExchanges(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to request the next page of results.
      * 
* * 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; @@ -1060,21 +910,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to request the next page of results.
      * 
* * 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 { @@ -1082,68 +931,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1153,33 +995,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataExchangesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDataExchangesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataExchangesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDataExchangesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1191,8 +1030,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java similarity index 58% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java index ba05585..51fc381 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java @@ -1,109 +1,73 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface ListDataExchangesResponseOrBuilder - extends +public interface ListDataExchangesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - java.util.List + java.util.List getDataExchangesList(); /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchanges(int index); /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ int getDataExchangesCount(); /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - java.util.List + java.util.List getDataExchangesOrBuilderList(); /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangesOrBuilder( int index); /** - * - * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.java similarity index 66% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.java index 4fda1d6..079df33 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Message for requesting list of Listings.
+ * Message for requesting the list of listings.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest} */ -public final class ListListingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListListingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) ListListingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListListingsRequest.newBuilder() to construct. private ListListingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListListingsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListListingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListListingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListListingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListListingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListListingsRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource path of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource path of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,15 +156,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response page. Leverage
    * the page tokens to iterate through the entire collection.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -203,15 +172,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -220,30 +186,30 @@ 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, returned by a previous call, to request the next page of
    * results.
    * 
* * 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 { @@ -252,7 +218,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +229,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_); } @@ -287,7 +253,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_); @@ -300,17 +267,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.bigquery.dataexchange.v1beta1.ListListingsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest other = - (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,145 +303,134 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest 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.bigquery.dataexchange.v1beta1.ListListingsRequest 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.bigquery.dataexchange.v1beta1.ListListingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest 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.bigquery.dataexchange.v1beta1.ListListingsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest 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.bigquery.dataexchange.v1beta1.ListListingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest 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.bigquery.dataexchange.v1beta1.ListListingsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest 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.bigquery.dataexchange.v1beta1.ListListingsRequest 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.bigquery.dataexchange.v1beta1.ListListingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest 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; } /** - * - * *
-   * Message for requesting list of Listings.
+   * Message for requesting the list of listings.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest} */ - 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.bigquery.dataexchange.v1beta1.ListListingsRequest) com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,16 +444,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.getDefaultInstance(); } @java.lang.Override @@ -509,8 +465,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest build( @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest result = - new com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -522,51 +477,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest buildP 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.bigquery.dataexchange.v1beta1.ListListingsRequest) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) other); + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -597,9 +547,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -611,23 +559,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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; @@ -636,24 +580,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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 { @@ -661,86 +602,70 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * 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. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -748,38 +673,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -787,21 +706,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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; @@ -810,22 +727,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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 { @@ -833,71 +749,64 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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, returned by a previous call, to request the next page of
      * results.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -907,32 +816,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListListingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListListingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListListingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListListingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -944,8 +851,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequestOrBuilder.java index 5047f3d..6a8e942 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequestOrBuilder.java @@ -1,97 +1,64 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface ListListingsRequestOrBuilder - extends +public interface ListListingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource path of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource path of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of results to return in a single response page. Leverage
    * the page tokens to iterate through the entire collection.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.java similarity index 71% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.java index 700fc55..1a94fec 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Message for response to listing Listings.
+ * Message for response to the list of Listings.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse} */ -public final class ListListingsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListListingsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) ListListingsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListListingsResponse.newBuilder() to construct. private ListListingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListListingsResponse() { listings_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListListingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListListingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListListingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private ListListingsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - listings_ = - new java.util.ArrayList< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing>(); - mutable_bitField0_ |= 0x00000001; - } - listings_.add( - input.readMessage( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + listings_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + listings_.add( + input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,7 +84,8 @@ private ListListingsResponse( } 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)) { listings_ = java.util.Collections.unmodifiableList(listings_); @@ -116,27 +94,22 @@ private ListListingsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.class, - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.Builder.class); } public static final int LISTINGS_FIELD_NUMBER = 1; private java.util.List listings_; /** - * - * *
    * The list of Listing.
    * 
@@ -148,8 +121,6 @@ public java.util.List ge return listings_; } /** - * - * *
    * The list of Listing.
    * 
@@ -157,13 +128,11 @@ public java.util.List ge * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ @java.lang.Override - public java.util.List + public java.util.List getListingsOrBuilderList() { return listings_; } /** - * - * *
    * The list of Listing.
    * 
@@ -175,8 +144,6 @@ public int getListingsCount() { return listings_.size(); } /** - * - * *
    * The list of Listing.
    * 
@@ -188,8 +155,6 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListings(int in return listings_.get(index); } /** - * - * *
    * The list of Listing.
    * 
@@ -205,14 +170,11 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListin public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,29 +183,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; } } /** - * - * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -252,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +225,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 < listings_.size(); i++) { output.writeMessage(1, listings_.get(i)); } @@ -281,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, listings_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, listings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -294,16 +257,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.bigquery.dataexchange.v1beta1.ListListingsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse other = - (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse other = (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) obj; - if (!getListingsList().equals(other.getListingsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getListingsList() + .equals(other.getListingsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,147 +291,135 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse 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.bigquery.dataexchange.v1beta1.ListListingsResponse 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.bigquery.dataexchange.v1beta1.ListListingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse 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.bigquery.dataexchange.v1beta1.ListListingsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse 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.bigquery.dataexchange.v1beta1.ListListingsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse 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.bigquery.dataexchange.v1beta1.ListListingsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse 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.bigquery.dataexchange.v1beta1.ListListingsResponse 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.bigquery.dataexchange.v1beta1.ListListingsResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse 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; } /** - * - * *
-   * Message for response to listing Listings.
+   * Message for response to the list of Listings.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse} */ - 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.bigquery.dataexchange.v1beta1.ListListingsResponse) com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.class, - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getListingsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,16 +435,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.getDefaultInstance(); } @java.lang.Override @@ -506,8 +456,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse build @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse result = - new com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse(this); + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse result = new com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse(this); int from_bitField0_ = bitField0_; if (listingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -527,51 +476,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse build 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.bigquery.dataexchange.v1beta1.ListListingsResponse) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) other); + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.getDefaultInstance()) return this; if (listingsBuilder_ == null) { if (!other.listings_.isEmpty()) { if (listings_.isEmpty()) { @@ -590,10 +534,9 @@ public Builder mergeFrom( listingsBuilder_ = null; listings_ = other.listings_; bitField0_ = (bitField0_ & ~0x00000001); - listingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getListingsFieldBuilder() - : null; + listingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getListingsFieldBuilder() : null; } else { listingsBuilder_.addAllMessages(other.listings_); } @@ -622,9 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -633,38 +574,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List listings_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureListingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listings_ = - new java.util.ArrayList( - listings_); + listings_ = new java.util.ArrayList(listings_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> - listingsBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> listingsBuilder_; /** - * - * *
      * The list of Listing.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ - public java.util.List - getListingsList() { + public java.util.List getListingsList() { if (listingsBuilder_ == null) { return java.util.Collections.unmodifiableList(listings_); } else { @@ -672,8 +603,6 @@ private void ensureListingsIsMutable() { } } /** - * - * *
      * The list of Listing.
      * 
@@ -688,8 +617,6 @@ public int getListingsCount() { } } /** - * - * *
      * The list of Listing.
      * 
@@ -704,8 +631,6 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListings(int in } } /** - * - * *
      * The list of Listing.
      * 
@@ -727,8 +652,6 @@ public Builder setListings( return this; } /** - * - * *
      * The list of Listing.
      * 
@@ -747,8 +670,6 @@ public Builder setListings( return this; } /** - * - * *
      * The list of Listing.
      * 
@@ -769,8 +690,6 @@ public Builder addListings(com.google.cloud.bigquery.dataexchange.v1beta1.Listin return this; } /** - * - * *
      * The list of Listing.
      * 
@@ -792,8 +711,6 @@ public Builder addListings( return this; } /** - * - * *
      * The list of Listing.
      * 
@@ -812,8 +729,6 @@ public Builder addListings( return this; } /** - * - * *
      * The list of Listing.
      * 
@@ -832,8 +747,6 @@ public Builder addListings( return this; } /** - * - * *
      * The list of Listing.
      * 
@@ -841,11 +754,11 @@ public Builder addListings( * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ public Builder addAllListings( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (listingsBuilder_ == null) { ensureListingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, listings_); onChanged(); } else { listingsBuilder_.addAllMessages(values); @@ -853,8 +766,6 @@ public Builder addAllListings( return this; } /** - * - * *
      * The list of Listing.
      * 
@@ -872,8 +783,6 @@ public Builder clearListings() { return this; } /** - * - * *
      * The list of Listing.
      * 
@@ -891,8 +800,6 @@ public Builder removeListings(int index) { return this; } /** - * - * *
      * The list of Listing.
      * 
@@ -904,8 +811,6 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder getListing return getListingsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of Listing.
      * 
@@ -915,22 +820,19 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder getListing public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingsOrBuilder( int index) { if (listingsBuilder_ == null) { - return listings_.get(index); - } else { + return listings_.get(index); } else { return listingsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of Listing.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ - public java.util.List - getListingsOrBuilderList() { + public java.util.List + getListingsOrBuilderList() { if (listingsBuilder_ != null) { return listingsBuilder_.getMessageOrBuilderList(); } else { @@ -938,8 +840,6 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListin } } /** - * - * *
      * The list of Listing.
      * 
@@ -947,12 +847,10 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListin * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder addListingsBuilder() { - return getListingsFieldBuilder() - .addBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance()); + return getListingsFieldBuilder().addBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance()); } /** - * - * *
      * The list of Listing.
      * 
@@ -961,36 +859,30 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder addListing */ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder addListingsBuilder( int index) { - return getListingsFieldBuilder() - .addBuilder( - index, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance()); + return getListingsFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance()); } /** - * - * *
      * The list of Listing.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ - public java.util.List - getListingsBuilderList() { + public java.util.List + getListingsBuilderList() { return getListingsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> getListingsFieldBuilder() { if (listingsBuilder_ == null) { - listingsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder>( - listings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + listingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder>( + listings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); listings_ = null; } return listingsBuilder_; @@ -998,20 +890,18 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder addListing private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to request the next page of results.
      * 
* * 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; @@ -1020,21 +910,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to request the next page of results.
      * 
* * 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 { @@ -1042,68 +931,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1113,32 +995,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListListingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListListingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListListingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListListingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1150,8 +1030,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponseOrBuilder.java index 85f1dbb..bed7b2b 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponseOrBuilder.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface ListListingsResponseOrBuilder - extends +public interface ListListingsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of Listing.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ - java.util.List getListingsList(); + java.util.List + getListingsList(); /** - * - * *
    * The list of Listing.
    * 
@@ -44,8 +25,6 @@ public interface ListListingsResponseOrBuilder */ com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListings(int index); /** - * - * *
    * The list of Listing.
    * 
@@ -54,49 +33,41 @@ public interface ListListingsResponseOrBuilder */ int getListingsCount(); /** - * - * *
    * The list of Listing.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ - java.util.List + java.util.List getListingsOrBuilderList(); /** - * - * *
    * The list of Listing.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ - com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingsOrBuilder(int index); + com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingsOrBuilder( + int index); /** - * - * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java similarity index 63% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java index 0a87a40..5ba50b8 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java @@ -1,43 +1,25 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Message for requesting list of DataExchanges from projects in an organization
- * and location.
+ * Message for requesting the list of data exchanges from projects in an
+ * organization and location.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest} */ -public final class ListOrgDataExchangesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListOrgDataExchangesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) ListOrgDataExchangesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListOrgDataExchangesRequest.newBuilder() to construct. private ListOrgDataExchangesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListOrgDataExchangesRequest() { organization_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListOrgDataExchangesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListOrgDataExchangesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListOrgDataExchangesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,30 @@ private ListOrgDataExchangesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - organization_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + organization_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,41 +86,35 @@ private ListOrgDataExchangesRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.Builder - .class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.Builder.class); } public static final int ORGANIZATION_FIELD_NUMBER = 1; private volatile java.lang.Object organization_; /** - * - * *
    * Required. The organization resource path of the projects containing DataExchanges.
    * e.g. `organizations/myorg/locations/US`.
    * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The organization. */ @java.lang.Override @@ -148,30 +123,30 @@ public java.lang.String getOrganization() { 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(); organization_ = s; return s; } } /** - * - * *
    * Required. The organization resource path of the projects containing DataExchanges.
    * e.g. `organizations/myorg/locations/US`.
    * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for organization. */ @java.lang.Override - public com.google.protobuf.ByteString getOrganizationBytes() { + public com.google.protobuf.ByteString + getOrganizationBytes() { java.lang.Object ref = organization_; 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); organization_ = b; return b; } else { @@ -182,15 +157,12 @@ public com.google.protobuf.ByteString getOrganizationBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of results to return in a single response page. Leverage
    * the page tokens to iterate through the entire collection.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -201,15 +173,12 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -218,30 +187,30 @@ 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, returned by a previous call, to request the next page of
    * results.
    * 
* * 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 { @@ -250,7 +219,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +230,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(organization_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, organization_); } @@ -285,7 +254,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, organization_); } 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_); @@ -298,18 +268,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.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest)) { + if (!(obj instanceof com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest other = - (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) obj; - if (!getOrganization().equals(other.getOrganization())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrganization() + .equals(other.getOrganization())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -332,153 +303,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest 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.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest 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; } /** - * - * *
-   * Message for requesting list of DataExchanges from projects in an organization
-   * and location.
+   * Message for requesting the list of data exchanges from projects in an
+   * organization and location.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest} */ - 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.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.Builder - .class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -492,22 +446,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest build() { - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest result = - buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -515,10 +466,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesReques } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest result = - new com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest(this); + public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest buildPartial() { + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest(this); result.organization_ = organization_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -530,52 +479,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesReques 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.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) other); + if (other instanceof com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) { + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.getDefaultInstance()) return this; if (!other.getOrganization().isEmpty()) { organization_ = other.organization_; onChanged(); @@ -602,14 +545,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parsedMessage = - null; + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -621,21 +561,19 @@ public Builder mergeFrom( private java.lang.Object organization_ = ""; /** - * - * *
      * Required. The organization resource path of the projects containing DataExchanges.
      * e.g. `organizations/myorg/locations/US`.
      * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The organization. */ public java.lang.String getOrganization() { java.lang.Object ref = organization_; 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(); organization_ = s; return s; @@ -644,22 +582,21 @@ public java.lang.String getOrganization() { } } /** - * - * *
      * Required. The organization resource path of the projects containing DataExchanges.
      * e.g. `organizations/myorg/locations/US`.
      * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for organization. */ - public com.google.protobuf.ByteString getOrganizationBytes() { + public com.google.protobuf.ByteString + getOrganizationBytes() { java.lang.Object ref = organization_; 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); organization_ = b; return b; } else { @@ -667,80 +604,70 @@ public com.google.protobuf.ByteString getOrganizationBytes() { } } /** - * - * *
      * Required. The organization resource path of the projects containing DataExchanges.
      * e.g. `organizations/myorg/locations/US`.
      * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The organization to set. * @return This builder for chaining. */ - public Builder setOrganization(java.lang.String value) { + public Builder setOrganization( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + organization_ = value; onChanged(); return this; } /** - * - * *
      * Required. The organization resource path of the projects containing DataExchanges.
      * e.g. `organizations/myorg/locations/US`.
      * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearOrganization() { - + organization_ = getDefaultInstance().getOrganization(); onChanged(); return this; } /** - * - * *
      * Required. The organization resource path of the projects containing DataExchanges.
      * e.g. `organizations/myorg/locations/US`.
      * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for organization to set. * @return This builder for chaining. */ - public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { + public Builder setOrganizationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organization_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -748,38 +675,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -787,21 +708,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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; @@ -810,22 +729,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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 { @@ -833,71 +751,64 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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, returned by a previous call, to request the next page of
      * results.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -907,33 +818,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOrgDataExchangesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListOrgDataExchangesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrgDataExchangesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListOrgDataExchangesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -945,8 +853,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequestOrBuilder.java index 5449334..ef276cb 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequestOrBuilder.java @@ -1,93 +1,64 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface ListOrgDataExchangesRequestOrBuilder - extends +public interface ListOrgDataExchangesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The organization resource path of the projects containing DataExchanges.
    * e.g. `organizations/myorg/locations/US`.
    * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The organization. */ java.lang.String getOrganization(); /** - * - * *
    * Required. The organization resource path of the projects containing DataExchanges.
    * e.g. `organizations/myorg/locations/US`.
    * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for organization. */ - com.google.protobuf.ByteString getOrganizationBytes(); + com.google.protobuf.ByteString + getOrganizationBytes(); /** - * - * *
    * The maximum number of results to return in a single response page. Leverage
    * the page tokens to iterate through the entire collection.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java similarity index 61% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java index df9dd50..b792b1e 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java @@ -1,43 +1,25 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Message for response to listing DataExchanges in an organization and
+ * Message for response to listing data exchanges in an organization and
  * location.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse} */ -public final class ListOrgDataExchangesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListOrgDataExchangesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) ListOrgDataExchangesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListOrgDataExchangesResponse.newBuilder() to construct. private ListOrgDataExchangesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListOrgDataExchangesResponse() { dataExchanges_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListOrgDataExchangesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListOrgDataExchangesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListOrgDataExchangesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,34 +56,28 @@ private ListOrgDataExchangesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dataExchanges_ = - new java.util.ArrayList< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>(); - mutable_bitField0_ |= 0x00000001; - } - dataExchanges_.add( - input.readMessage( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dataExchanges_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + dataExchanges_.add( + input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,7 +85,8 @@ private ListOrgDataExchangesResponse( } 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)) { dataExchanges_ = java.util.Collections.unmodifiableList(dataExchanges_); @@ -117,112 +95,87 @@ private ListOrgDataExchangesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.class, - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.Builder - .class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.Builder.class); } public static final int DATA_EXCHANGES_FIELD_NUMBER = 1; - private java.util.List - dataExchanges_; + private java.util.List dataExchanges_; /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ @java.lang.Override - public java.util.List - getDataExchangesList() { + public java.util.List getDataExchangesList() { return dataExchanges_; } /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> + public java.util.List getDataExchangesOrBuilderList() { return dataExchanges_; } /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ @java.lang.Override public int getDataExchangesCount() { return dataExchanges_.size(); } /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchanges(int index) { return dataExchanges_.get(index); } /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder - getDataExchangesOrBuilder(int index) { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangesOrBuilder( + int index) { return dataExchanges_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -231,29 +184,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; } } /** - * - * *
    * A token to request the next page of results.
    * 
* * 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 { @@ -262,7 +215,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,7 +226,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 < dataExchanges_.size(); i++) { output.writeMessage(1, dataExchanges_.get(i)); } @@ -291,7 +244,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < dataExchanges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataExchanges_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, dataExchanges_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -304,17 +258,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.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse)) { + if (!(obj instanceof com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse other = - (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse other = (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) obj; - if (!getDataExchangesList().equals(other.getDataExchangesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDataExchangesList() + .equals(other.getDataExchangesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,155 +291,137 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse 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; } /** - * - * *
-   * Message for response to listing DataExchanges in an organization and
+   * Message for response to listing data exchanges in an organization and
    * location.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse} */ - 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.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.class, - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.Builder - .class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getDataExchangesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -501,22 +437,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse build() { - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse result = - buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -524,10 +457,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRespon } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse result = - new com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse(this); + public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse buildPartial() { + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse result = new com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse(this); int from_bitField0_ = bitField0_; if (dataExchangesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -547,52 +478,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRespon 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.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) other); + if (other instanceof com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) { + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.getDefaultInstance()) return this; if (dataExchangesBuilder_ == null) { if (!other.dataExchanges_.isEmpty()) { if (dataExchanges_.isEmpty()) { @@ -611,10 +536,9 @@ public Builder mergeFrom( dataExchangesBuilder_ = null; dataExchanges_ = other.dataExchanges_; bitField0_ = (bitField0_ & ~0x00000001); - dataExchangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDataExchangesFieldBuilder() - : null; + dataExchangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDataExchangesFieldBuilder() : null; } else { dataExchangesBuilder_.addAllMessages(other.dataExchanges_); } @@ -639,14 +563,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parsedMessage = - null; + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -655,39 +576,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - dataExchanges_ = java.util.Collections.emptyList(); - + private java.util.List dataExchanges_ = + java.util.Collections.emptyList(); private void ensureDataExchangesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - dataExchanges_ = - new java.util.ArrayList( - dataExchanges_); + dataExchanges_ = new java.util.ArrayList(dataExchanges_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> - dataExchangesBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> dataExchangesBuilder_; /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - public java.util.List - getDataExchangesList() { + public java.util.List getDataExchangesList() { if (dataExchangesBuilder_ == null) { return java.util.Collections.unmodifiableList(dataExchanges_); } else { @@ -695,14 +605,11 @@ private void ensureDataExchangesIsMutable() { } } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public int getDataExchangesCount() { if (dataExchangesBuilder_ == null) { @@ -712,14 +619,11 @@ public int getDataExchangesCount() { } } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchanges(int index) { if (dataExchangesBuilder_ == null) { @@ -729,14 +633,11 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchan } } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public Builder setDataExchanges( int index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { @@ -753,18 +654,14 @@ public Builder setDataExchanges( return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public Builder setDataExchanges( - int index, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { + int index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { if (dataExchangesBuilder_ == null) { ensureDataExchangesIsMutable(); dataExchanges_.set(index, builderForValue.build()); @@ -775,17 +672,13 @@ public Builder setDataExchanges( return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - public Builder addDataExchanges( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { + public Builder addDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { if (dataExchangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -799,14 +692,11 @@ public Builder addDataExchanges( return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public Builder addDataExchanges( int index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { @@ -823,14 +713,11 @@ public Builder addDataExchanges( return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public Builder addDataExchanges( com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { @@ -844,18 +731,14 @@ public Builder addDataExchanges( return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public Builder addDataExchanges( - int index, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { + int index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { if (dataExchangesBuilder_ == null) { ensureDataExchangesIsMutable(); dataExchanges_.add(index, builderForValue.build()); @@ -866,21 +749,18 @@ public Builder addDataExchanges( return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public Builder addAllDataExchanges( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (dataExchangesBuilder_ == null) { ensureDataExchangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataExchanges_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dataExchanges_); onChanged(); } else { dataExchangesBuilder_.addAllMessages(values); @@ -888,14 +768,11 @@ public Builder addAllDataExchanges( return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public Builder clearDataExchanges() { if (dataExchangesBuilder_ == null) { @@ -908,14 +785,11 @@ public Builder clearDataExchanges() { return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ public Builder removeDataExchanges(int index) { if (dataExchangesBuilder_ == null) { @@ -928,50 +802,39 @@ public Builder removeDataExchanges(int index) { return this; } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder - getDataExchangesBuilder(int index) { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder getDataExchangesBuilder( + int index) { return getDataExchangesFieldBuilder().getBuilder(index); } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder - getDataExchangesOrBuilder(int index) { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangesOrBuilder( + int index) { if (dataExchangesBuilder_ == null) { - return dataExchanges_.get(index); - } else { + return dataExchanges_.get(index); } else { return dataExchangesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - public java.util.List< - ? extends com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> - getDataExchangesOrBuilderList() { + public java.util.List + getDataExchangesOrBuilderList() { if (dataExchangesBuilder_ != null) { return dataExchangesBuilder_.getMessageOrBuilderList(); } else { @@ -979,64 +842,45 @@ public Builder removeDataExchanges(int index) { } } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder - addDataExchangesBuilder() { - return getDataExchangesFieldBuilder() - .addBuilder( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()); + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder addDataExchangesBuilder() { + return getDataExchangesFieldBuilder().addBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()); } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder - addDataExchangesBuilder(int index) { - return getDataExchangesFieldBuilder() - .addBuilder( - index, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()); + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder addDataExchangesBuilder( + int index) { + return getDataExchangesFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()); } /** - * - * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - public java.util.List - getDataExchangesBuilderList() { + public java.util.List + getDataExchangesBuilderList() { return getDataExchangesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> getDataExchangesFieldBuilder() { if (dataExchangesBuilder_ == null) { - dataExchangesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>( + dataExchangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>( dataExchanges_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1048,20 +892,18 @@ public Builder removeDataExchanges(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to request the next page of results.
      * 
* * 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; @@ -1070,21 +912,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to request the next page of results.
      * 
* * 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 { @@ -1092,68 +933,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1163,33 +997,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOrgDataExchangesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListOrgDataExchangesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrgDataExchangesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListOrgDataExchangesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1201,8 +1032,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java similarity index 57% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java index fc39a96..a87da4b 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java @@ -1,109 +1,73 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface ListOrgDataExchangesResponseOrBuilder - extends +public interface ListOrgDataExchangesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - java.util.List + java.util.List getDataExchangesList(); /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchanges(int index); /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ int getDataExchangesCount(); /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ - java.util.List + java.util.List getDataExchangesOrBuilderList(); /** - * - * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; */ com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangesOrBuilder( int index); /** - * - * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.java similarity index 60% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.java index d76bfbf..99f7e2c 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
  * A listing is what gets published into a data exchange that a subscriber can
  * subscribe to. It contains a reference to the data source along with
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.Listing}
  */
-public final class Listing extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Listing extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.Listing)
     ListingOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Listing.newBuilder() to construct.
   private Listing(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Listing() {
     name_ = "";
     displayName_ = "";
@@ -54,15 +36,16 @@ private Listing() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Listing();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Listing(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -82,150 +65,123 @@ private Listing(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            displayName_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            description_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              primaryContact_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            primaryContact_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              documentation_ = s;
-              break;
+            documentation_ = s;
+            break;
+          }
+          case 50: {
+            com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder subBuilder = null;
+            if (sourceCase_ == 6) {
+              subBuilder = ((com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_).toBuilder();
             }
-          case 50:
-            {
-              com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder
-                  subBuilder = null;
-              if (sourceCase_ == 6) {
-                subBuilder =
-                    ((com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource)
-                            source_)
-                        .toBuilder();
-              }
-              source_ =
-                  input.readMessage(
-                      com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource)
-                        source_);
-                source_ = subBuilder.buildPartial();
-              }
-              sourceCase_ = 6;
-              break;
+            source_ =
+                input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_);
+              source_ = subBuilder.buildPartial();
             }
-          case 56:
-            {
-              int rawValue = input.readEnum();
+            sourceCase_ = 6;
+            break;
+          }
+          case 56: {
+            int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
+            state_ = rawValue;
+            break;
+          }
+          case 66: {
+
+            icon_ = input.readBytes();
+            break;
+          }
+          case 74: {
+            com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder subBuilder = null;
+            if (dataProvider_ != null) {
+              subBuilder = dataProvider_.toBuilder();
             }
-          case 66:
-            {
-              icon_ = input.readBytes();
-              break;
+            dataProvider_ = input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(dataProvider_);
+              dataProvider_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder subBuilder = null;
-              if (dataProvider_ != null) {
-                subBuilder = dataProvider_.toBuilder();
-              }
-              dataProvider_ =
-                  input.readMessage(
-                      com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(dataProvider_);
-                dataProvider_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 80: {
+            int rawValue = input.readEnum();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              categories_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 80:
-            {
+            categories_.add(rawValue);
+            break;
+          }
+          case 82: {
+            int length = input.readRawVarint32();
+            int oldLimit = input.pushLimit(length);
+            while(input.getBytesUntilLimit() > 0) {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                 categories_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000001;
               }
               categories_.add(rawValue);
-              break;
             }
-          case 82:
-            {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while (input.getBytesUntilLimit() > 0) {
-                int rawValue = input.readEnum();
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  categories_ = new java.util.ArrayList();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                categories_.add(rawValue);
-              }
-              input.popLimit(oldLimit);
-              break;
+            input.popLimit(oldLimit);
+            break;
+          }
+          case 90: {
+            com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder subBuilder = null;
+            if (publisher_ != null) {
+              subBuilder = publisher_.toBuilder();
             }
-          case 90:
-            {
-              com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder subBuilder = null;
-              if (publisher_ != null) {
-                subBuilder = publisher_.toBuilder();
-              }
-              publisher_ =
-                  input.readMessage(
-                      com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(publisher_);
-                publisher_ = subBuilder.buildPartial();
-              }
-
-              break;
+            publisher_ = input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(publisher_);
+              publisher_ = subBuilder.buildPartial();
             }
-          case 98:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              requestAccess_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 98: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            requestAccess_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -233,7 +189,8 @@ private Listing(
     } 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)) {
         categories_ = java.util.Collections.unmodifiableList(categories_);
@@ -242,35 +199,29 @@ private Listing(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
-        .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
-        .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_fieldAccessorTable
+    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class,
-            com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder.class);
+            com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder.class);
   }
 
   /**
-   *
-   *
    * 
-   * State of the Listing
+   * State of the listing.
    * 
* * Protobuf enum {@code google.cloud.bigquery.dataexchange.v1beta1.Listing.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value. This value is unused.
      * 
@@ -279,11 +230,9 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Subscribable state. Users with dataexchange.listings.subscribe permission
-     * can subscribe to this Listing.
+     * can subscribe to this listing.
      * 
* * ACTIVE = 1; @@ -293,8 +242,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is unused.
      * 
@@ -303,17 +250,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Subscribable state. Users with dataexchange.listings.subscribe permission
-     * can subscribe to this Listing.
+     * can subscribe to this listing.
      * 
* * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -338,49 +284,48 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return ACTIVE; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return ACTIVE; + 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() { - return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.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; @@ -397,77 +342,344 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.dataexchange.v1beta1.Listing.State) } - public interface BigQueryDatasetSourceOrBuilder - extends + /** + *
+   * Listing categories.
+   * 
+ * + * Protobuf enum {@code google.cloud.bigquery.dataexchange.v1beta1.Listing.Category} + */ + public enum Category + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CATEGORY_UNSPECIFIED = 0; + */ + CATEGORY_UNSPECIFIED(0), + /** + * CATEGORY_OTHERS = 1; + */ + CATEGORY_OTHERS(1), + /** + * CATEGORY_ADVERTISING_AND_MARKETING = 2; + */ + CATEGORY_ADVERTISING_AND_MARKETING(2), + /** + * CATEGORY_COMMERCE = 3; + */ + CATEGORY_COMMERCE(3), + /** + * CATEGORY_CLIMATE_AND_ENVIRONMENT = 4; + */ + CATEGORY_CLIMATE_AND_ENVIRONMENT(4), + /** + * CATEGORY_DEMOGRAPHICS = 5; + */ + CATEGORY_DEMOGRAPHICS(5), + /** + * CATEGORY_ECONOMICS = 6; + */ + CATEGORY_ECONOMICS(6), + /** + * CATEGORY_EDUCATION = 7; + */ + CATEGORY_EDUCATION(7), + /** + * CATEGORY_ENERGY = 8; + */ + CATEGORY_ENERGY(8), + /** + * CATEGORY_FINANCIAL = 9; + */ + CATEGORY_FINANCIAL(9), + /** + * CATEGORY_GAMING = 10; + */ + CATEGORY_GAMING(10), + /** + * CATEGORY_GEOSPATIAL = 11; + */ + CATEGORY_GEOSPATIAL(11), + /** + * CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE = 12; + */ + CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE(12), + /** + * CATEGORY_MEDIA = 13; + */ + CATEGORY_MEDIA(13), + /** + * CATEGORY_PUBLIC_SECTOR = 14; + */ + CATEGORY_PUBLIC_SECTOR(14), + /** + * CATEGORY_RETAIL = 15; + */ + CATEGORY_RETAIL(15), + /** + * CATEGORY_SPORTS = 16; + */ + CATEGORY_SPORTS(16), + /** + * CATEGORY_SCIENCE_AND_RESEARCH = 17; + */ + CATEGORY_SCIENCE_AND_RESEARCH(17), + /** + * CATEGORY_TRANSPORTATION_AND_LOGISTICS = 18; + */ + CATEGORY_TRANSPORTATION_AND_LOGISTICS(18), + /** + * CATEGORY_TRAVEL_AND_TOURISM = 19; + */ + CATEGORY_TRAVEL_AND_TOURISM(19), + UNRECOGNIZED(-1), + ; + + /** + * CATEGORY_UNSPECIFIED = 0; + */ + public static final int CATEGORY_UNSPECIFIED_VALUE = 0; + /** + * CATEGORY_OTHERS = 1; + */ + public static final int CATEGORY_OTHERS_VALUE = 1; + /** + * CATEGORY_ADVERTISING_AND_MARKETING = 2; + */ + public static final int CATEGORY_ADVERTISING_AND_MARKETING_VALUE = 2; + /** + * CATEGORY_COMMERCE = 3; + */ + public static final int CATEGORY_COMMERCE_VALUE = 3; + /** + * CATEGORY_CLIMATE_AND_ENVIRONMENT = 4; + */ + public static final int CATEGORY_CLIMATE_AND_ENVIRONMENT_VALUE = 4; + /** + * CATEGORY_DEMOGRAPHICS = 5; + */ + public static final int CATEGORY_DEMOGRAPHICS_VALUE = 5; + /** + * CATEGORY_ECONOMICS = 6; + */ + public static final int CATEGORY_ECONOMICS_VALUE = 6; + /** + * CATEGORY_EDUCATION = 7; + */ + public static final int CATEGORY_EDUCATION_VALUE = 7; + /** + * CATEGORY_ENERGY = 8; + */ + public static final int CATEGORY_ENERGY_VALUE = 8; + /** + * CATEGORY_FINANCIAL = 9; + */ + public static final int CATEGORY_FINANCIAL_VALUE = 9; + /** + * CATEGORY_GAMING = 10; + */ + public static final int CATEGORY_GAMING_VALUE = 10; + /** + * CATEGORY_GEOSPATIAL = 11; + */ + public static final int CATEGORY_GEOSPATIAL_VALUE = 11; + /** + * CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE = 12; + */ + public static final int CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE_VALUE = 12; + /** + * CATEGORY_MEDIA = 13; + */ + public static final int CATEGORY_MEDIA_VALUE = 13; + /** + * CATEGORY_PUBLIC_SECTOR = 14; + */ + public static final int CATEGORY_PUBLIC_SECTOR_VALUE = 14; + /** + * CATEGORY_RETAIL = 15; + */ + public static final int CATEGORY_RETAIL_VALUE = 15; + /** + * CATEGORY_SPORTS = 16; + */ + public static final int CATEGORY_SPORTS_VALUE = 16; + /** + * CATEGORY_SCIENCE_AND_RESEARCH = 17; + */ + public static final int CATEGORY_SCIENCE_AND_RESEARCH_VALUE = 17; + /** + * CATEGORY_TRANSPORTATION_AND_LOGISTICS = 18; + */ + public static final int CATEGORY_TRANSPORTATION_AND_LOGISTICS_VALUE = 18; + /** + * CATEGORY_TRAVEL_AND_TOURISM = 19; + */ + public static final int CATEGORY_TRAVEL_AND_TOURISM_VALUE = 19; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Category valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Category forNumber(int value) { + switch (value) { + case 0: return CATEGORY_UNSPECIFIED; + case 1: return CATEGORY_OTHERS; + case 2: return CATEGORY_ADVERTISING_AND_MARKETING; + case 3: return CATEGORY_COMMERCE; + case 4: return CATEGORY_CLIMATE_AND_ENVIRONMENT; + case 5: return CATEGORY_DEMOGRAPHICS; + case 6: return CATEGORY_ECONOMICS; + case 7: return CATEGORY_EDUCATION; + case 8: return CATEGORY_ENERGY; + case 9: return CATEGORY_FINANCIAL; + case 10: return CATEGORY_GAMING; + case 11: return CATEGORY_GEOSPATIAL; + case 12: return CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE; + case 13: return CATEGORY_MEDIA; + case 14: return CATEGORY_PUBLIC_SECTOR; + case 15: return CATEGORY_RETAIL; + case 16: return CATEGORY_SPORTS; + case 17: return CATEGORY_SCIENCE_AND_RESEARCH; + case 18: return CATEGORY_TRANSPORTATION_AND_LOGISTICS; + case 19: return CATEGORY_TRAVEL_AND_TOURISM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + Category> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Category findValueByNumber(int number) { + return Category.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDescriptor().getEnumTypes().get(1); + } + + private static final Category[] VALUES = values(); + + public static Category valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Category(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.dataexchange.v1beta1.Listing.Category) + } + + public interface BigQueryDatasetSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Resource name of the dataset source for this listing.
      * e.g. `projects/myproject/datasets/123`
      * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } - * * @return The dataset. */ java.lang.String getDataset(); /** - * - * *
      * Resource name of the dataset source for this listing.
      * e.g. `projects/myproject/datasets/123`
      * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for dataset. */ - com.google.protobuf.ByteString getDatasetBytes(); + com.google.protobuf.ByteString + getDatasetBytes(); } /** - * - * *
-   * A reference to a Shared dataset. It's an existing BigQuery dataset with a
-   * collection of objects, such as tables and views, that you want to share
+   * A reference to a shared dataset. It is an existing BigQuery dataset with a
+   * collection of objects such as tables and views that you want to share
    * with subscribers.
-   * Upon subscription to a Listing, Data Exchange creates a Linked dataset in
+   * When subscriber's subscribe to a listing, Analytics Hub creates a linked
+   * dataset in
    * the subscriber's project. A Linked dataset is an opaque, read-only BigQuery
-   * dataset that serves as a "symbolic link" to a shared dataset.
+   * dataset that serves as a _symbolic link_ to a shared dataset.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource} */ - public static final class BigQueryDatasetSource extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class BigQueryDatasetSource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) BigQueryDatasetSourceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BigQueryDatasetSource.newBuilder() to construct. private BigQueryDatasetSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BigQueryDatasetSource() { dataset_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BigQueryDatasetSource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BigQueryDatasetSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -486,20 +698,19 @@ private BigQueryDatasetSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - dataset_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + dataset_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -507,41 +718,35 @@ private BigQueryDatasetSource( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.class, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder - .class); + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.class, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object dataset_; /** - * - * *
      * Resource name of the dataset source for this listing.
      * e.g. `projects/myproject/datasets/123`
      * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } - * * @return The dataset. */ @java.lang.Override @@ -550,30 +755,30 @@ public java.lang.String getDataset() { 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(); dataset_ = s; return s; } } /** - * - * *
      * Resource name of the dataset source for this listing.
      * e.g. `projects/myproject/datasets/123`
      * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; 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); dataset_ = b; return b; } else { @@ -582,7 +787,6 @@ public com.google.protobuf.ByteString getDatasetBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -594,7 +798,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(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } @@ -618,17 +823,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.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource)) { + if (!(obj instanceof com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource other = - (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource other = (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) obj; - if (!getDataset().equals(other.getDataset())) return false; + if (!getDataset() + .equals(other.getDataset())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -647,101 +850,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource 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.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource 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 @@ -751,56 +941,50 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
-     * A reference to a Shared dataset. It's an existing BigQuery dataset with a
-     * collection of objects, such as tables and views, that you want to share
+     * A reference to a shared dataset. It is an existing BigQuery dataset with a
+     * collection of objects such as tables and views that you want to share
      * with subscribers.
-     * Upon subscription to a Listing, Data Exchange creates a Linked dataset in
+     * When subscriber's subscribe to a listing, Analytics Hub creates a linked
+     * dataset in
      * the subscriber's project. A Linked dataset is an opaque, read-only BigQuery
-     * dataset that serves as a "symbolic link" to a shared dataset.
+     * dataset that serves as a _symbolic link_ to a shared dataset.
      * 
* - * Protobuf type {@code - * google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource} + * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource} */ - 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.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.class, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder - .class); + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.class, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -810,22 +994,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource build() { - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource result = - buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -833,10 +1014,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSou } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource result = - new com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource(this); + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource buildPartial() { + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource result = new com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource(this); result.dataset_ = dataset_; onBuilt(); return result; @@ -846,55 +1025,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSou 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.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) other); + if (other instanceof com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) { + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; onChanged(); @@ -914,14 +1084,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parsedMessage = - null; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -933,21 +1100,19 @@ public Builder mergeFrom( private java.lang.Object dataset_ = ""; /** - * - * *
        * Resource name of the dataset source for this listing.
        * e.g. `projects/myproject/datasets/123`
        * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } - * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; 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(); dataset_ = s; return s; @@ -956,22 +1121,21 @@ public java.lang.String getDataset() { } } /** - * - * *
        * Resource name of the dataset source for this listing.
        * e.g. `projects/myproject/datasets/123`
        * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; 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); dataset_ = b; return b; } else { @@ -979,69 +1143,61 @@ public com.google.protobuf.ByteString getDatasetBytes() { } } /** - * - * *
        * Resource name of the dataset source for this listing.
        * e.g. `projects/myproject/datasets/123`
        * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } - * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset(java.lang.String value) { + public Builder setDataset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** - * - * *
        * Resource name of the dataset source for this listing.
        * e.g. `projects/myproject/datasets/123`
        * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** - * - * *
        * Resource name of the dataset source for this listing.
        * e.g. `projects/myproject/datasets/123`
        * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + public Builder setDatasetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1054,34 +1210,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.Listing - .BigQueryDatasetSource - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDatasetSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BigQueryDatasetSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDatasetSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BigQueryDatasetSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1093,23 +1245,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int sourceCase_ = 0; private java.lang.Object source_; - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BIGQUERY_DATASET(6), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -1125,36 +1274,74 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 6: - return BIGQUERY_DATASET; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 6: return BIGQUERY_DATASET; + case 0: return SOURCE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + public SourceCase + getSourceCase() { + return SourceCase.forNumber( + sourceCase_); } - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + public static final int BIGQUERY_DATASET_FIELD_NUMBER = 6; /** + *
+   * Required. Shared dataset i.e. BigQuery dataset source.
+   * 
* + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the bigqueryDataset field is set. + */ + @java.lang.Override + public boolean hasBigqueryDataset() { + return sourceCase_ == 6; + } + /** + *
+   * Required. Shared dataset i.e. BigQuery dataset source.
+   * 
* + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return The bigqueryDataset. + */ + @java.lang.Override + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource getBigqueryDataset() { + if (sourceCase_ == 6) { + return (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_; + } + return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance(); + } + /** + *
+   * Required. Shared dataset i.e. BigQuery dataset source.
+   * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder getBigqueryDatasetOrBuilder() { + if (sourceCase_ == 6) { + return (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_; + } + return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** *
    * Output only. The resource name of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1163,30 +1350,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. The resource name of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
    * 
* * 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 { @@ -1197,18 +1384,15 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. Human-readable display name of the listing. The display name must contain
    * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
-   * ( ), and can't start or end with spaces.
+   * ( ), ampersands (&) and can't start or end with spaces.
    * Default value is an empty string.
    * Max length: 63 bytes.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -1217,33 +1401,33 @@ 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; } } /** - * - * *
    * Required. Human-readable display name of the listing. The display name must contain
    * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
-   * ( ), and can't start or end with spaces.
+   * ( ), ampersands (&) and can't start or end with spaces.
    * Default value is an empty string.
    * Max length: 63 bytes.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -1254,19 +1438,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
-   * Optional. Short description of the listing that can consist of sentences or
-   * paragraphs. The description must not contain Unicode non-characters as
-   * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-   * returns (CR), and page breaks (FF).
+   * Optional. Short description of the listing. The description must not contain
+   * Unicode non-characters and C0 and C1 control codes except tabs (HT),
+   * new lines (LF), carriage returns (CR), and page breaks (FF).
    * Default value is an empty string.
    * Max length: 2000 bytes.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -1275,34 +1455,33 @@ public java.lang.String getDescription() { 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(); description_ = s; return s; } } /** - * - * *
-   * Optional. Short description of the listing that can consist of sentences or
-   * paragraphs. The description must not contain Unicode non-characters as
-   * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-   * returns (CR), and page breaks (FF).
+   * Optional. Short description of the listing. The description must not contain
+   * Unicode non-characters and C0 and C1 control codes except tabs (HT),
+   * new lines (LF), carriage returns (CR), and page breaks (FF).
    * Default value is an empty string.
    * Max length: 2000 bytes.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -1313,15 +1492,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int PRIMARY_CONTACT_FIELD_NUMBER = 4; private volatile java.lang.Object primaryContact_; /** - * - * *
    * Optional. Email or URL of the primary point of contact of the listing.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The primaryContact. */ @java.lang.Override @@ -1330,30 +1506,30 @@ public java.lang.String getPrimaryContact() { 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(); primaryContact_ = s; return s; } } /** - * - * *
    * Optional. Email or URL of the primary point of contact of the listing.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for primaryContact. */ @java.lang.Override - public com.google.protobuf.ByteString getPrimaryContactBytes() { + public com.google.protobuf.ByteString + getPrimaryContactBytes() { java.lang.Object ref = primaryContact_; 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); primaryContact_ = b; return b; } else { @@ -1364,14 +1540,11 @@ public com.google.protobuf.ByteString getPrimaryContactBytes() { public static final int DOCUMENTATION_FIELD_NUMBER = 5; private volatile java.lang.Object documentation_; /** - * - * *
    * Optional. Documentation describing the listing.
    * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The documentation. */ @java.lang.Override @@ -1380,29 +1553,29 @@ public java.lang.String getDocumentation() { 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(); documentation_ = s; return s; } } /** - * - * *
    * Optional. Documentation describing the listing.
    * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for documentation. */ @java.lang.Override - public com.google.protobuf.ByteString getDocumentationBytes() { + public com.google.protobuf.ByteString + getDocumentationBytes() { java.lang.Object ref = documentation_; 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); documentation_ = b; return b; } else { @@ -1410,114 +1583,36 @@ public com.google.protobuf.ByteString getDocumentationBytes() { } } - public static final int BIGQUERY_DATASET_FIELD_NUMBER = 6; - /** - * - * - *
-   * Required. Shared dataset i.e. BigQuery dataset source.
-   * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the bigqueryDataset field is set. - */ - @java.lang.Override - public boolean hasBigqueryDataset() { - return sourceCase_ == 6; - } - /** - * - * - *
-   * Required. Shared dataset i.e. BigQuery dataset source.
-   * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bigqueryDataset. - */ - @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - getBigqueryDataset() { - if (sourceCase_ == 6) { - return (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_; - } - return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - .getDefaultInstance(); - } - /** - * - * - *
-   * Required. Shared dataset i.e. BigQuery dataset source.
-   * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder - getBigqueryDatasetOrBuilder() { - if (sourceCase_ == 6) { - return (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_; - } - return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - .getDefaultInstance(); - } - public static final int STATE_FIELD_NUMBER = 7; private int state_; /** - * - * *
-   * Output only. Current state of the Listing.
+   * Output only. Current state of the listing.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.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. Current state of the Listing.
+   * Output only. Current state of the listing.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State getState() { + @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State result = - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.valueOf(state_); - return result == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.UNRECOGNIZED - : result; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State result = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.valueOf(state_); + return result == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.UNRECOGNIZED : result; } public static final int ICON_FIELD_NUMBER = 8; private com.google.protobuf.ByteString icon_; /** - * - * *
    * Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB
    * Expected image dimensions are 512x512 pixels, however the API only
@@ -1527,7 +1622,6 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State getState() {
    * 
* * bytes icon = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The icon. */ @java.lang.Override @@ -1538,16 +1632,11 @@ public com.google.protobuf.ByteString getIcon() { public static final int DATA_PROVIDER_FIELD_NUMBER = 9; private com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider dataProvider_; /** - * - * *
-   * Optional. The details of the Data Provider who owns the source data.
+   * Optional. Details of the data provider who owns the source data.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dataProvider field is set. */ @java.lang.Override @@ -1555,89 +1644,60 @@ public boolean hasDataProvider() { return dataProvider_ != null; } /** - * - * *
-   * Optional. The details of the Data Provider who owns the source data.
+   * Optional. Details of the data provider who owns the source data.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataProvider. */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider getDataProvider() { - return dataProvider_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.getDefaultInstance() - : dataProvider_; + return dataProvider_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.getDefaultInstance() : dataProvider_; } /** - * - * *
-   * Optional. The details of the Data Provider who owns the source data.
+   * Optional. Details of the data provider who owns the source data.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder - getDataProviderOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder getDataProviderOrBuilder() { return getDataProvider(); } public static final int CATEGORIES_FIELD_NUMBER = 10; private java.util.List categories_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.bigquery.dataexchange.common.Category> - categories_converter_ = + java.lang.Integer, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category> categories_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.bigquery.dataexchange.common.Category>() { - public com.google.cloud.bigquery.dataexchange.common.Category convert( - java.lang.Integer from) { + java.lang.Integer, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category>() { + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.dataexchange.common.Category result = - com.google.cloud.bigquery.dataexchange.common.Category.valueOf(from); - return result == null - ? com.google.cloud.bigquery.dataexchange.common.Category.UNRECOGNIZED - : result; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category result = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category.valueOf(from); + return result == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category.UNRECOGNIZED : result; } }; /** - * - * *
-   * Optional. Categories of the Listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the categories. */ @java.lang.Override - public java.util.List - getCategoriesList() { + public java.util.List getCategoriesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.bigquery.dataexchange.common.Category>( - categories_, categories_converter_); + java.lang.Integer, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category>(categories_, categories_converter_); } /** - * - * *
-   * Optional. Categories of the Listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of categories. */ @java.lang.Override @@ -1645,51 +1705,37 @@ public int getCategoriesCount() { return categories_.size(); } /** - * - * *
-   * Optional. Categories of the Listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The categories at the given index. */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.common.Category getCategories(int index) { + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category getCategories(int index) { return categories_converter_.convert(categories_.get(index)); } /** - * - * *
-   * Optional. Categories of the Listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for categories. */ @java.lang.Override - public java.util.List getCategoriesValueList() { + public java.util.List + getCategoriesValueList() { return categories_; } /** - * - * *
-   * Optional. Categories of the Listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of categories at the given index. */ @@ -1697,23 +1743,17 @@ public java.util.List getCategoriesValueList() { public int getCategoriesValue(int index) { return categories_.get(index); } - private int categoriesMemoizedSerializedSize; public static final int PUBLISHER_FIELD_NUMBER = 11; private com.google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher_; /** - * - * *
-   * Optional. The details of the Publisher who owns the listing and has rights to share
+   * Optional. Details of the publisher who owns the listing and who can share
    * the source data.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the publisher field is set. */ @java.lang.Override @@ -1721,36 +1761,25 @@ public boolean hasPublisher() { return publisher_ != null; } /** - * - * *
-   * Optional. The details of the Publisher who owns the listing and has rights to share
+   * Optional. Details of the publisher who owns the listing and who can share
    * the source data.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The publisher. */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher getPublisher() { - return publisher_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.getDefaultInstance() - : publisher_; + return publisher_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.getDefaultInstance() : publisher_; } /** - * - * *
-   * Optional. The details of the Publisher who owns the listing and has rights to share
+   * Optional. Details of the publisher who owns the listing and who can share
    * the source data.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder getPublisherOrBuilder() { @@ -1760,8 +1789,6 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder getPubl public static final int REQUEST_ACCESS_FIELD_NUMBER = 12; private volatile java.lang.Object requestAccess_; /** - * - * *
    * Optional. Email or URL of the request access of the listing.
    * Subscribers can use this reference to request access.
@@ -1769,7 +1796,6 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder getPubl
    * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestAccess. */ @java.lang.Override @@ -1778,15 +1804,14 @@ public java.lang.String getRequestAccess() { 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(); requestAccess_ = s; return s; } } /** - * - * *
    * Optional. Email or URL of the request access of the listing.
    * Subscribers can use this reference to request access.
@@ -1794,15 +1819,16 @@ public java.lang.String getRequestAccess() {
    * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestAccess. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestAccessBytes() { + public com.google.protobuf.ByteString + getRequestAccessBytes() { java.lang.Object ref = requestAccess_; 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); requestAccess_ = b; return b; } else { @@ -1811,7 +1837,6 @@ public com.google.protobuf.ByteString getRequestAccessBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1823,7 +1848,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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); @@ -1841,13 +1867,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 5, documentation_); } if (sourceCase_ == 6) { - output.writeMessage( - 6, - (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_); + output.writeMessage(6, (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_); } - if (state_ - != com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(7, state_); } if (!icon_.isEmpty()) { @@ -1894,37 +1916,36 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, documentation_); } if (sourceCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, - (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) - source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_); } - if (state_ - != com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + if (state_ != com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, state_); } if (!icon_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, icon_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, icon_); } if (dataProvider_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDataProvider()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getDataProvider()); } { int dataSize = 0; for (int i = 0; i < categories_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(categories_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(categories_.get(i)); } size += dataSize; - if (!getCategoriesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - categoriesMemoizedSerializedSize = dataSize; + if (!getCategoriesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }categoriesMemoizedSerializedSize = dataSize; } if (publisher_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getPublisher()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getPublisher()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestAccess_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, requestAccess_); @@ -1937,35 +1958,44 @@ 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.bigquery.dataexchange.v1beta1.Listing)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.Listing other = - (com.google.cloud.bigquery.dataexchange.v1beta1.Listing) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getPrimaryContact().equals(other.getPrimaryContact())) return false; - if (!getDocumentation().equals(other.getDocumentation())) return false; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing other = (com.google.cloud.bigquery.dataexchange.v1beta1.Listing) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getPrimaryContact() + .equals(other.getPrimaryContact())) return false; + if (!getDocumentation() + .equals(other.getDocumentation())) return false; if (state_ != other.state_) return false; - if (!getIcon().equals(other.getIcon())) return false; + if (!getIcon() + .equals(other.getIcon())) return false; if (hasDataProvider() != other.hasDataProvider()) return false; if (hasDataProvider()) { - if (!getDataProvider().equals(other.getDataProvider())) return false; + if (!getDataProvider() + .equals(other.getDataProvider())) return false; } if (!categories_.equals(other.categories_)) return false; if (hasPublisher() != other.hasPublisher()) return false; if (hasPublisher()) { - if (!getPublisher().equals(other.getPublisher())) return false; + if (!getPublisher() + .equals(other.getPublisher())) return false; } - if (!getRequestAccess().equals(other.getRequestAccess())) return false; + if (!getRequestAccess() + .equals(other.getRequestAccess())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 6: - if (!getBigqueryDataset().equals(other.getBigqueryDataset())) return false; + if (!getBigqueryDataset() + .equals(other.getBigqueryDataset())) return false; break; case 0: default: @@ -2023,104 +2053,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.Listing 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 listing is what gets published into a data exchange that a subscriber can
    * subscribe to. It contains a reference to the data source along with
@@ -2130,23 +2152,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.Listing}
    */
-  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.bigquery.dataexchange.v1beta1.Listing)
       com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
-          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
-          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_fieldAccessorTable
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class,
-              com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder.class);
+              com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.Listing.newBuilder()
@@ -2154,15 +2174,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();
@@ -2202,9 +2223,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
-          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor;
     }
 
     @java.lang.Override
@@ -2223,14 +2244,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.dataexchange.v1beta1.Listing buildPartial() {
-      com.google.cloud.bigquery.dataexchange.v1beta1.Listing result =
-          new com.google.cloud.bigquery.dataexchange.v1beta1.Listing(this);
+      com.google.cloud.bigquery.dataexchange.v1beta1.Listing result = new com.google.cloud.bigquery.dataexchange.v1beta1.Listing(this);
       int from_bitField0_ = bitField0_;
-      result.name_ = name_;
-      result.displayName_ = displayName_;
-      result.description_ = description_;
-      result.primaryContact_ = primaryContact_;
-      result.documentation_ = documentation_;
       if (sourceCase_ == 6) {
         if (bigqueryDatasetBuilder_ == null) {
           result.source_ = source_;
@@ -2238,6 +2253,11 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing buildPartial() {
           result.source_ = bigqueryDatasetBuilder_.build();
         }
       }
+      result.name_ = name_;
+      result.displayName_ = displayName_;
+      result.description_ = description_;
+      result.primaryContact_ = primaryContact_;
+      result.documentation_ = documentation_;
       result.state_ = state_;
       result.icon_ = icon_;
       if (dataProviderBuilder_ == null) {
@@ -2265,39 +2285,38 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing) {
-        return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.Listing) other);
+        return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.Listing)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2305,8 +2324,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.Listing other) {
-      if (other == com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2354,15 +2372,13 @@ public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.Listing
         onChanged();
       }
       switch (other.getSourceCase()) {
-        case BIGQUERY_DATASET:
-          {
-            mergeBigqueryDataset(other.getBigqueryDataset());
-            break;
-          }
-        case SOURCE_NOT_SET:
-          {
-            break;
-          }
+        case BIGQUERY_DATASET: {
+          mergeBigqueryDataset(other.getBigqueryDataset());
+          break;
+        }
+        case SOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -2383,8 +2399,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.bigquery.dataexchange.v1beta1.Listing) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.Listing) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2393,12 +2408,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int sourceCase_ = 0;
     private java.lang.Object source_;
-
-    public SourceCase getSourceCase() {
-      return SourceCase.forNumber(sourceCase_);
+    public SourceCase
+        getSourceCase() {
+      return SourceCase.forNumber(
+          sourceCase_);
     }
 
     public Builder clearSource() {
@@ -2410,23 +2425,199 @@ public Builder clearSource() {
 
     private int bitField0_;
 
-    private java.lang.Object name_ = "";
+    private com.google.protobuf.SingleFieldBuilderV3<
+        com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder> bigqueryDatasetBuilder_;
+    /**
+     * 
+     * Required. Shared dataset i.e. BigQuery dataset source.
+     * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the bigqueryDataset field is set. + */ + @java.lang.Override + public boolean hasBigqueryDataset() { + return sourceCase_ == 6; + } + /** + *
+     * Required. Shared dataset i.e. BigQuery dataset source.
+     * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return The bigqueryDataset. + */ + @java.lang.Override + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource getBigqueryDataset() { + if (bigqueryDatasetBuilder_ == null) { + if (sourceCase_ == 6) { + return (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_; + } + return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance(); + } else { + if (sourceCase_ == 6) { + return bigqueryDatasetBuilder_.getMessage(); + } + return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance(); + } + } /** + *
+     * Required. Shared dataset i.e. BigQuery dataset source.
+     * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setBigqueryDataset(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource value) { + if (bigqueryDatasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + bigqueryDatasetBuilder_.setMessage(value); + } + sourceCase_ = 6; + return this; + } + /** + *
+     * Required. Shared dataset i.e. BigQuery dataset source.
+     * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setBigqueryDataset( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder builderForValue) { + if (bigqueryDatasetBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + bigqueryDatasetBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 6; + return this; + } + /** + *
+     * Required. Shared dataset i.e. BigQuery dataset source.
+     * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeBigqueryDataset(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource value) { + if (bigqueryDatasetBuilder_ == null) { + if (sourceCase_ == 6 && + source_ != com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance()) { + source_ = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.newBuilder((com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_) + .mergeFrom(value).buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 6) { + bigqueryDatasetBuilder_.mergeFrom(value); + } else { + bigqueryDatasetBuilder_.setMessage(value); + } + } + sourceCase_ = 6; + return this; + } + /** + *
+     * Required. Shared dataset i.e. BigQuery dataset source.
+     * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearBigqueryDataset() { + if (bigqueryDatasetBuilder_ == null) { + if (sourceCase_ == 6) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 6) { + sourceCase_ = 0; + source_ = null; + } + bigqueryDatasetBuilder_.clear(); + } + return this; + } + /** + *
+     * Required. Shared dataset i.e. BigQuery dataset source.
+     * 
* + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder getBigqueryDatasetBuilder() { + return getBigqueryDatasetFieldBuilder().getBuilder(); + } + /** + *
+     * Required. Shared dataset i.e. BigQuery dataset source.
+     * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder getBigqueryDatasetOrBuilder() { + if ((sourceCase_ == 6) && (bigqueryDatasetBuilder_ != null)) { + return bigqueryDatasetBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 6) { + return (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_; + } + return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance(); + } + } + /** + *
+     * Required. Shared dataset i.e. BigQuery dataset source.
+     * 
* + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder> + getBigqueryDatasetFieldBuilder() { + if (bigqueryDatasetBuilder_ == null) { + if (!(sourceCase_ == 6)) { + source_ = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance(); + } + bigqueryDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder>( + (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 6; + onChanged();; + return bigqueryDatasetBuilder_; + } + + private java.lang.Object name_ = ""; + /** *
      * Output only. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
      * 
* * 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; @@ -2435,22 +2626,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
      * 
* * 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 { @@ -2458,64 +2648,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
      * 
* * 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. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
      * 
* * 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. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
      * 
* * 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; @@ -2523,24 +2706,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. Human-readable display name of the listing. The display name must contain
      * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
-     * ( ), and can't start or end with spaces.
+     * ( ), ampersands (&) and can't start or end with spaces.
      * Default value is an empty string.
      * Max length: 63 bytes.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -2549,25 +2730,24 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Human-readable display name of the listing. The display name must contain
      * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
-     * ( ), and can't start or end with spaces.
+     * ( ), ampersands (&) and can't start or end with spaces.
      * Default value is an empty string.
      * Max length: 63 bytes.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -2575,73 +2755,66 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Human-readable display name of the listing. The display name must contain
      * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
-     * ( ), and can't start or end with spaces.
+     * ( ), ampersands (&) and can't start or end with spaces.
      * Default value is an empty string.
      * Max length: 63 bytes.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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; } /** - * - * *
      * Required. Human-readable display name of the listing. The display name must contain
      * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
-     * ( ), and can't start or end with spaces.
+     * ( ), ampersands (&) and can't start or end with spaces.
      * Default value is an empty string.
      * Max length: 63 bytes.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. Human-readable display name of the listing. The display name must contain
      * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
-     * ( ), and can't start or end with spaces.
+     * ( ), ampersands (&) and can't start or end with spaces.
      * Default value is an empty string.
      * Max length: 63 bytes.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -2649,25 +2822,22 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
-     * Optional. Short description of the listing that can consist of sentences or
-     * paragraphs. The description must not contain Unicode non-characters as
-     * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-     * returns (CR), and page breaks (FF).
+     * Optional. Short description of the listing. The description must not contain
+     * Unicode non-characters and C0 and C1 control codes except tabs (HT),
+     * new lines (LF), carriage returns (CR), and page breaks (FF).
      * Default value is an empty string.
      * Max length: 2000 bytes.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; @@ -2676,26 +2846,24 @@ public java.lang.String getDescription() { } } /** - * - * *
-     * Optional. Short description of the listing that can consist of sentences or
-     * paragraphs. The description must not contain Unicode non-characters as
-     * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-     * returns (CR), and page breaks (FF).
+     * Optional. Short description of the listing. The description must not contain
+     * Unicode non-characters and C0 and C1 control codes except tabs (HT),
+     * new lines (LF), carriage returns (CR), and page breaks (FF).
      * Default value is an empty string.
      * Max length: 2000 bytes.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -2703,76 +2871,66 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
-     * Optional. Short description of the listing that can consist of sentences or
-     * paragraphs. The description must not contain Unicode non-characters as
-     * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-     * returns (CR), and page breaks (FF).
+     * Optional. Short description of the listing. The description must not contain
+     * Unicode non-characters and C0 and C1 control codes except tabs (HT),
+     * new lines (LF), carriage returns (CR), and page breaks (FF).
      * Default value is an empty string.
      * Max length: 2000 bytes.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
-     * Optional. Short description of the listing that can consist of sentences or
-     * paragraphs. The description must not contain Unicode non-characters as
-     * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-     * returns (CR), and page breaks (FF).
+     * Optional. Short description of the listing. The description must not contain
+     * Unicode non-characters and C0 and C1 control codes except tabs (HT),
+     * new lines (LF), carriage returns (CR), and page breaks (FF).
      * Default value is an empty string.
      * Max length: 2000 bytes.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
-     * Optional. Short description of the listing that can consist of sentences or
-     * paragraphs. The description must not contain Unicode non-characters as
-     * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-     * returns (CR), and page breaks (FF).
+     * Optional. Short description of the listing. The description must not contain
+     * Unicode non-characters and C0 and C1 control codes except tabs (HT),
+     * new lines (LF), carriage returns (CR), and page breaks (FF).
      * Default value is an empty string.
      * Max length: 2000 bytes.
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2780,21 +2938,19 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object primaryContact_ = ""; /** - * - * *
      * Optional. Email or URL of the primary point of contact of the listing.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The primaryContact. */ public java.lang.String getPrimaryContact() { java.lang.Object ref = primaryContact_; 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(); primaryContact_ = s; return s; @@ -2803,22 +2959,21 @@ public java.lang.String getPrimaryContact() { } } /** - * - * *
      * Optional. Email or URL of the primary point of contact of the listing.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for primaryContact. */ - public com.google.protobuf.ByteString getPrimaryContactBytes() { + public com.google.protobuf.ByteString + getPrimaryContactBytes() { java.lang.Object ref = primaryContact_; 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); primaryContact_ = b; return b; } else { @@ -2826,494 +2981,205 @@ public com.google.protobuf.ByteString getPrimaryContactBytes() { } } /** - * - * *
      * Optional. Email or URL of the primary point of contact of the listing.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The primaryContact to set. * @return This builder for chaining. */ - public Builder setPrimaryContact(java.lang.String value) { + public Builder setPrimaryContact( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + primaryContact_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Email or URL of the primary point of contact of the listing.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPrimaryContact() { - + primaryContact_ = getDefaultInstance().getPrimaryContact(); onChanged(); return this; } /** - * - * *
      * Optional. Email or URL of the primary point of contact of the listing.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for primaryContact to set. * @return This builder for chaining. */ - public Builder setPrimaryContactBytes(com.google.protobuf.ByteString value) { + public Builder setPrimaryContactBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryContact_ = value; onChanged(); return this; } - private java.lang.Object documentation_ = ""; - /** - * - * - *
-     * Optional. Documentation describing the listing.
-     * 
- * - * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The documentation. - */ - public java.lang.String getDocumentation() { - java.lang.Object ref = documentation_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - documentation_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional. Documentation describing the listing.
-     * 
- * - * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for documentation. - */ - public com.google.protobuf.ByteString getDocumentationBytes() { - java.lang.Object ref = documentation_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - documentation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional. Documentation describing the listing.
-     * 
- * - * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The documentation to set. - * @return This builder for chaining. - */ - public Builder setDocumentation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - documentation_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Documentation describing the listing.
-     * 
- * - * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDocumentation() { - - documentation_ = getDefaultInstance().getDocumentation(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Documentation describing the listing.
-     * 
- * - * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for documentation to set. - * @return This builder for chaining. - */ - public Builder setDocumentationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - documentation_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder> - bigqueryDatasetBuilder_; - /** - * - * - *
-     * Required. Shared dataset i.e. BigQuery dataset source.
-     * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the bigqueryDataset field is set. - */ - @java.lang.Override - public boolean hasBigqueryDataset() { - return sourceCase_ == 6; - } - /** - * - * - *
-     * Required. Shared dataset i.e. BigQuery dataset source.
-     * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bigqueryDataset. - */ - @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - getBigqueryDataset() { - if (bigqueryDatasetBuilder_ == null) { - if (sourceCase_ == 6) { - return (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) - source_; - } - return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - .getDefaultInstance(); - } else { - if (sourceCase_ == 6) { - return bigqueryDatasetBuilder_.getMessage(); - } - return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Required. Shared dataset i.e. BigQuery dataset source.
-     * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setBigqueryDataset( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource value) { - if (bigqueryDatasetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - source_ = value; - onChanged(); - } else { - bigqueryDatasetBuilder_.setMessage(value); - } - sourceCase_ = 6; - return this; - } - /** - * - * - *
-     * Required. Shared dataset i.e. BigQuery dataset source.
-     * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setBigqueryDataset( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder - builderForValue) { - if (bigqueryDatasetBuilder_ == null) { - source_ = builderForValue.build(); - onChanged(); - } else { - bigqueryDatasetBuilder_.setMessage(builderForValue.build()); - } - sourceCase_ = 6; - return this; - } + private java.lang.Object documentation_ = ""; /** - * - * *
-     * Required. Shared dataset i.e. BigQuery dataset source.
+     * Optional. Documentation describing the listing.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The documentation. */ - public Builder mergeBigqueryDataset( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource value) { - if (bigqueryDatasetBuilder_ == null) { - if (sourceCase_ == 6 - && source_ - != com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - .getDefaultInstance()) { - source_ = - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - .newBuilder( - (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) - source_) - .mergeFrom(value) - .buildPartial(); - } else { - source_ = value; - } - onChanged(); + public java.lang.String getDocumentation() { + java.lang.Object ref = documentation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + documentation_ = s; + return s; } else { - if (sourceCase_ == 6) { - bigqueryDatasetBuilder_.mergeFrom(value); - } else { - bigqueryDatasetBuilder_.setMessage(value); - } + return (java.lang.String) ref; } - sourceCase_ = 6; - return this; } /** - * - * *
-     * Required. Shared dataset i.e. BigQuery dataset source.
+     * Optional. Documentation describing the listing.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for documentation. */ - public Builder clearBigqueryDataset() { - if (bigqueryDatasetBuilder_ == null) { - if (sourceCase_ == 6) { - sourceCase_ = 0; - source_ = null; - onChanged(); - } + public com.google.protobuf.ByteString + getDocumentationBytes() { + java.lang.Object ref = documentation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + documentation_ = b; + return b; } else { - if (sourceCase_ == 6) { - sourceCase_ = 0; - source_ = null; - } - bigqueryDatasetBuilder_.clear(); + return (com.google.protobuf.ByteString) ref; } - return this; } /** - * - * *
-     * Required. Shared dataset i.e. BigQuery dataset source.
+     * Optional. Documentation describing the listing.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The documentation to set. + * @return This builder for chaining. */ - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder - getBigqueryDatasetBuilder() { - return getBigqueryDatasetFieldBuilder().getBuilder(); + public Builder setDocumentation( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + documentation_ = value; + onChanged(); + return this; } /** - * - * *
-     * Required. Shared dataset i.e. BigQuery dataset source.
+     * Optional. Documentation describing the listing.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. */ - @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder - getBigqueryDatasetOrBuilder() { - if ((sourceCase_ == 6) && (bigqueryDatasetBuilder_ != null)) { - return bigqueryDatasetBuilder_.getMessageOrBuilder(); - } else { - if (sourceCase_ == 6) { - return (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) - source_; - } - return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - .getDefaultInstance(); - } + public Builder clearDocumentation() { + + documentation_ = getDefaultInstance().getDocumentation(); + onChanged(); + return this; } /** - * - * *
-     * Required. Shared dataset i.e. BigQuery dataset source.
+     * Optional. Documentation describing the listing.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for documentation to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder> - getBigqueryDatasetFieldBuilder() { - if (bigqueryDatasetBuilder_ == null) { - if (!(sourceCase_ == 6)) { - source_ = - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - .getDefaultInstance(); - } - bigqueryDatasetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource - .Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing - .BigQueryDatasetSourceOrBuilder>( - (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) - source_, - getParentForChildren(), - isClean()); - source_ = null; - } - sourceCase_ = 6; + public Builder setDocumentationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + documentation_ = value; onChanged(); - ; - return bigqueryDatasetBuilder_; + return this; } private int state_ = 0; /** - * - * *
-     * Output only. Current state of the Listing.
+     * Output only. Current state of the listing.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.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. Current state of the Listing.
+     * Output only. Current state of the listing.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.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. Current state of the Listing.
+     * Output only. Current state of the listing.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State result = - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.valueOf(state_); - return result == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.UNRECOGNIZED - : result; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State result = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.valueOf(state_); + return result == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.UNRECOGNIZED : result; } /** - * - * *
-     * Output only. Current state of the Listing.
+     * Output only. Current state of the listing.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3321,26 +3187,21 @@ public Builder setState(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.S if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
-     * Output only. Current state of the Listing.
+     * Output only. Current state of the listing.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3348,8 +3209,6 @@ public Builder clearState() { private com.google.protobuf.ByteString icon_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB
      * Expected image dimensions are 512x512 pixels, however the API only
@@ -3359,7 +3218,6 @@ public Builder clearState() {
      * 
* * bytes icon = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The icon. */ @java.lang.Override @@ -3367,8 +3225,6 @@ public com.google.protobuf.ByteString getIcon() { return icon_; } /** - * - * *
      * Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB
      * Expected image dimensions are 512x512 pixels, however the API only
@@ -3378,22 +3234,19 @@ public com.google.protobuf.ByteString getIcon() {
      * 
* * bytes icon = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The icon to set. * @return This builder for chaining. */ public Builder setIcon(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + icon_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB
      * Expected image dimensions are 512x512 pixels, however the API only
@@ -3403,11 +3256,10 @@ public Builder setIcon(com.google.protobuf.ByteString value) {
      * 
* * bytes icon = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIcon() { - + icon_ = getDefaultInstance().getIcon(); onChanged(); return this; @@ -3415,61 +3267,41 @@ public Builder clearIcon() { private com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider dataProvider_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider, - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder> - dataProviderBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider, com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder> dataProviderBuilder_; /** - * - * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dataProvider field is set. */ public boolean hasDataProvider() { return dataProviderBuilder_ != null || dataProvider_ != null; } /** - * - * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataProvider. */ public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider getDataProvider() { if (dataProviderBuilder_ == null) { - return dataProvider_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.getDefaultInstance() - : dataProvider_; + return dataProvider_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.getDefaultInstance() : dataProvider_; } else { return dataProviderBuilder_.getMessage(); } } /** - * - * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDataProvider( - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider value) { + public Builder setDataProvider(com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider value) { if (dataProviderBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3483,15 +3315,11 @@ public Builder setDataProvider( return this; } /** - * - * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDataProvider( com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder builderForValue) { @@ -3505,24 +3333,17 @@ public Builder setDataProvider( return this; } /** - * - * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeDataProvider( - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider value) { + public Builder mergeDataProvider(com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider value) { if (dataProviderBuilder_ == null) { if (dataProvider_ != null) { dataProvider_ = - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.newBuilder(dataProvider_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.newBuilder(dataProvider_).mergeFrom(value).buildPartial(); } else { dataProvider_ = value; } @@ -3534,15 +3355,11 @@ public Builder mergeDataProvider( return this; } /** - * - * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDataProvider() { if (dataProviderBuilder_ == null) { @@ -3556,73 +3373,55 @@ public Builder clearDataProvider() { return this; } /** - * - * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder - getDataProviderBuilder() { - + public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder getDataProviderBuilder() { + onChanged(); return getDataProviderFieldBuilder().getBuilder(); } /** - * - * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder - getDataProviderOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder getDataProviderOrBuilder() { if (dataProviderBuilder_ != null) { return dataProviderBuilder_.getMessageOrBuilder(); } else { - return dataProvider_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.getDefaultInstance() - : dataProvider_; + return dataProvider_ == null ? + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.getDefaultInstance() : dataProvider_; } } /** - * - * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider, - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider, com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder> getDataProviderFieldBuilder() { if (dataProviderBuilder_ == null) { - dataProviderBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider, - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder>( - getDataProvider(), getParentForChildren(), isClean()); + dataProviderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider, com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder>( + getDataProvider(), + getParentForChildren(), + isClean()); dataProvider_ = null; } return dataProviderBuilder_; } - private java.util.List categories_ = java.util.Collections.emptyList(); - + private java.util.List categories_ = + java.util.Collections.emptyList(); private void ensureCategoriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { categories_ = new java.util.ArrayList(categories_); @@ -3630,74 +3429,52 @@ private void ensureCategoriesIsMutable() { } } /** - * - * *
-     * Optional. Categories of the Listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the categories. */ - public java.util.List - getCategoriesList() { + public java.util.List getCategoriesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.bigquery.dataexchange.common.Category>( - categories_, categories_converter_); + java.lang.Integer, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category>(categories_, categories_converter_); } /** - * - * *
-     * Optional. Categories of the Listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of categories. */ public int getCategoriesCount() { return categories_.size(); } /** - * - * *
-     * Optional. Categories of the Listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The categories at the given index. */ - public com.google.cloud.bigquery.dataexchange.common.Category getCategories(int index) { + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category getCategories(int index) { return categories_converter_.convert(categories_.get(index)); } /** - * - * *
-     * Optional. Categories of the Listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The categories to set. * @return This builder for chaining. */ public Builder setCategories( - int index, com.google.cloud.bigquery.dataexchange.common.Category value) { + int index, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category value) { if (value == null) { throw new NullPointerException(); } @@ -3707,20 +3484,15 @@ public Builder setCategories( return this; } /** - * - * *
-     * Optional. Categories of the Listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param value The categories to add. * @return This builder for chaining. */ - public Builder addCategories(com.google.cloud.bigquery.dataexchange.common.Category value) { + public Builder addCategories(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category value) { if (value == null) { throw new NullPointerException(); } @@ -3730,40 +3502,29 @@ public Builder addCategories(com.google.cloud.bigquery.dataexchange.common.Categ return this; } /** - * - * *
-     * Optional. Categories of the Listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param values The categories to add. * @return This builder for chaining. */ public Builder addAllCategories( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensureCategoriesIsMutable(); - for (com.google.cloud.bigquery.dataexchange.common.Category value : values) { + for (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category value : values) { categories_.add(value.getNumber()); } onChanged(); return this; } /** - * - * *
-     * Optional. Categories of the Listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearCategories() { @@ -3773,32 +3534,23 @@ public Builder clearCategories() { return this; } /** - * - * *
-     * Optional. Categories of the Listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for categories. */ - public java.util.List getCategoriesValueList() { + public java.util.List + getCategoriesValueList() { return java.util.Collections.unmodifiableList(categories_); } /** - * - * *
-     * Optional. Categories of the Listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of categories at the given index. */ @@ -3806,37 +3558,28 @@ public int getCategoriesValue(int index) { return categories_.get(index); } /** - * - * *
-     * Optional. Categories of the Listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The enum numeric value on the wire for categories to set. * @return This builder for chaining. */ - public Builder setCategoriesValue(int index, int value) { + public Builder setCategoriesValue( + int index, int value) { ensureCategoriesIsMutable(); categories_.set(index, value); onChanged(); return this; } /** - * - * *
-     * Optional. Categories of the Listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for categories to add. * @return This builder for chaining. */ @@ -3847,20 +3590,16 @@ public Builder addCategoriesValue(int value) { return this; } /** - * - * *
-     * Optional. Categories of the Listing. Up to two categories are allowed.
+     * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param values The enum numeric values on the wire for categories to add. * @return This builder for chaining. */ - public Builder addAllCategoriesValue(java.lang.Iterable values) { + public Builder addAllCategoriesValue( + java.lang.Iterable values) { ensureCategoriesIsMutable(); for (int value : values) { categories_.add(value); @@ -3871,61 +3610,42 @@ public Builder addAllCategoriesValue(java.lang.Iterable value private com.google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher, - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder> - publisherBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher, com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder> publisherBuilder_; /** - * - * *
-     * Optional. The details of the Publisher who owns the listing and has rights to share
+     * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the publisher field is set. */ public boolean hasPublisher() { return publisherBuilder_ != null || publisher_ != null; } /** - * - * *
-     * Optional. The details of the Publisher who owns the listing and has rights to share
+     * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The publisher. */ public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher getPublisher() { if (publisherBuilder_ == null) { - return publisher_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.getDefaultInstance() - : publisher_; + return publisher_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.getDefaultInstance() : publisher_; } else { return publisherBuilder_.getMessage(); } } /** - * - * *
-     * Optional. The details of the Publisher who owns the listing and has rights to share
+     * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPublisher(com.google.cloud.bigquery.dataexchange.v1beta1.Publisher value) { if (publisherBuilder_ == null) { @@ -3941,16 +3661,12 @@ public Builder setPublisher(com.google.cloud.bigquery.dataexchange.v1beta1.Publi return this; } /** - * - * *
-     * Optional. The details of the Publisher who owns the listing and has rights to share
+     * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPublisher( com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder builderForValue) { @@ -3964,24 +3680,18 @@ public Builder setPublisher( return this; } /** - * - * *
-     * Optional. The details of the Publisher who owns the listing and has rights to share
+     * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergePublisher(com.google.cloud.bigquery.dataexchange.v1beta1.Publisher value) { if (publisherBuilder_ == null) { if (publisher_ != null) { publisher_ = - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.newBuilder(publisher_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.newBuilder(publisher_).mergeFrom(value).buildPartial(); } else { publisher_ = value; } @@ -3993,16 +3703,12 @@ public Builder mergePublisher(com.google.cloud.bigquery.dataexchange.v1beta1.Pub return this; } /** - * - * *
-     * Optional. The details of the Publisher who owns the listing and has rights to share
+     * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPublisher() { if (publisherBuilder_ == null) { @@ -4016,68 +3722,51 @@ public Builder clearPublisher() { return this; } /** - * - * *
-     * Optional. The details of the Publisher who owns the listing and has rights to share
+     * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder getPublisherBuilder() { - + onChanged(); return getPublisherFieldBuilder().getBuilder(); } /** - * - * *
-     * Optional. The details of the Publisher who owns the listing and has rights to share
+     * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder - getPublisherOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder getPublisherOrBuilder() { if (publisherBuilder_ != null) { return publisherBuilder_.getMessageOrBuilder(); } else { - return publisher_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.getDefaultInstance() - : publisher_; + return publisher_ == null ? + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.getDefaultInstance() : publisher_; } } /** - * - * *
-     * Optional. The details of the Publisher who owns the listing and has rights to share
+     * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher, - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher, com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder> getPublisherFieldBuilder() { if (publisherBuilder_ == null) { - publisherBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher, - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder>( - getPublisher(), getParentForChildren(), isClean()); + publisherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher, com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder>( + getPublisher(), + getParentForChildren(), + isClean()); publisher_ = null; } return publisherBuilder_; @@ -4085,8 +3774,6 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder getPubli private java.lang.Object requestAccess_ = ""; /** - * - * *
      * Optional. Email or URL of the request access of the listing.
      * Subscribers can use this reference to request access.
@@ -4094,13 +3781,13 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder getPubli
      * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestAccess. */ public java.lang.String getRequestAccess() { java.lang.Object ref = requestAccess_; 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(); requestAccess_ = s; return s; @@ -4109,8 +3796,6 @@ public java.lang.String getRequestAccess() { } } /** - * - * *
      * Optional. Email or URL of the request access of the listing.
      * Subscribers can use this reference to request access.
@@ -4118,14 +3803,15 @@ public java.lang.String getRequestAccess() {
      * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestAccess. */ - public com.google.protobuf.ByteString getRequestAccessBytes() { + public com.google.protobuf.ByteString + getRequestAccessBytes() { java.lang.Object ref = requestAccess_; 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); requestAccess_ = b; return b; } else { @@ -4133,8 +3819,6 @@ public com.google.protobuf.ByteString getRequestAccessBytes() { } } /** - * - * *
      * Optional. Email or URL of the request access of the listing.
      * Subscribers can use this reference to request access.
@@ -4142,22 +3826,20 @@ public com.google.protobuf.ByteString getRequestAccessBytes() {
      * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestAccess to set. * @return This builder for chaining. */ - public Builder setRequestAccess(java.lang.String value) { + public Builder setRequestAccess( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestAccess_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Email or URL of the request access of the listing.
      * Subscribers can use this reference to request access.
@@ -4165,18 +3847,15 @@ public Builder setRequestAccess(java.lang.String value) {
      * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestAccess() { - + requestAccess_ = getDefaultInstance().getRequestAccess(); onChanged(); return this; } /** - * - * *
      * Optional. Email or URL of the request access of the listing.
      * Subscribers can use this reference to request access.
@@ -4184,23 +3863,23 @@ public Builder clearRequestAccess() {
      * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestAccess to set. * @return This builder for chaining. */ - public Builder setRequestAccessBytes(com.google.protobuf.ByteString value) { + public Builder setRequestAccessBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestAccess_ = 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); } @@ -4210,12 +3889,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.Listing) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.Listing) private static final com.google.cloud.bigquery.dataexchange.v1beta1.Listing DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.Listing(); } @@ -4224,16 +3903,16 @@ public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Listing parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Listing(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser+ PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Listing parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Listing(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4248,4 +3927,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingName.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingName.java similarity index 100% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingName.java diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java similarity index 55% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java index 95a5e62..ebf3109 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java @@ -1,249 +1,179 @@ -/* - * 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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface ListingOrBuilder - extends +public interface ListingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.Listing) com.google.protobuf.MessageOrBuilder { /** + *
+   * Required. Shared dataset i.e. BigQuery dataset source.
+   * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the bigqueryDataset field is set. + */ + boolean hasBigqueryDataset(); + /** + *
+   * Required. Shared dataset i.e. BigQuery dataset source.
+   * 
* + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return The bigqueryDataset. + */ + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource getBigqueryDataset(); + /** + *
+   * Required. Shared dataset i.e. BigQuery dataset source.
+   * 
* + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder getBigqueryDatasetOrBuilder(); + + /** *
    * Output only. The resource name of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Human-readable display name of the listing. The display name must contain
    * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
-   * ( ), and can't start or end with spaces.
+   * ( ), ampersands (&) and can't start or end with spaces.
    * Default value is an empty string.
    * Max length: 63 bytes.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. Human-readable display name of the listing. The display name must contain
    * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
-   * ( ), and can't start or end with spaces.
+   * ( ), ampersands (&) and can't start or end with spaces.
    * Default value is an empty string.
    * Max length: 63 bytes.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
-   * Optional. Short description of the listing that can consist of sentences or
-   * paragraphs. The description must not contain Unicode non-characters as
-   * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-   * returns (CR), and page breaks (FF).
+   * Optional. Short description of the listing. The description must not contain
+   * Unicode non-characters and C0 and C1 control codes except tabs (HT),
+   * new lines (LF), carriage returns (CR), and page breaks (FF).
    * Default value is an empty string.
    * Max length: 2000 bytes.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
-   * Optional. Short description of the listing that can consist of sentences or
-   * paragraphs. The description must not contain Unicode non-characters as
-   * well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
-   * returns (CR), and page breaks (FF).
+   * Optional. Short description of the listing. The description must not contain
+   * Unicode non-characters and C0 and C1 control codes except tabs (HT),
+   * new lines (LF), carriage returns (CR), and page breaks (FF).
    * Default value is an empty string.
    * Max length: 2000 bytes.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Optional. Email or URL of the primary point of contact of the listing.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The primaryContact. */ java.lang.String getPrimaryContact(); /** - * - * *
    * Optional. Email or URL of the primary point of contact of the listing.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for primaryContact. */ - com.google.protobuf.ByteString getPrimaryContactBytes(); + com.google.protobuf.ByteString + getPrimaryContactBytes(); /** - * - * *
    * Optional. Documentation describing the listing.
    * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The documentation. */ java.lang.String getDocumentation(); /** - * - * *
    * Optional. Documentation describing the listing.
    * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for documentation. */ - com.google.protobuf.ByteString getDocumentationBytes(); - - /** - * - * - *
-   * Required. Shared dataset i.e. BigQuery dataset source.
-   * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the bigqueryDataset field is set. - */ - boolean hasBigqueryDataset(); - /** - * - * - *
-   * Required. Shared dataset i.e. BigQuery dataset source.
-   * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bigqueryDataset. - */ - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource getBigqueryDataset(); - /** - * - * - *
-   * Required. Shared dataset i.e. BigQuery dataset source.
-   * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder - getBigqueryDatasetOrBuilder(); + com.google.protobuf.ByteString + getDocumentationBytes(); /** - * - * *
-   * Output only. Current state of the Listing.
+   * Output only. Current state of the listing.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
-   * Output only. Current state of the Listing.
+   * Output only. Current state of the listing.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State getState(); /** - * - * *
    * Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB
    * Expected image dimensions are 512x512 pixels, however the API only
@@ -253,172 +183,117 @@ public interface ListingOrBuilder
    * 
* * bytes icon = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The icon. */ com.google.protobuf.ByteString getIcon(); /** - * - * *
-   * Optional. The details of the Data Provider who owns the source data.
+   * Optional. Details of the data provider who owns the source data.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the dataProvider field is set. */ boolean hasDataProvider(); /** - * - * *
-   * Optional. The details of the Data Provider who owns the source data.
+   * Optional. Details of the data provider who owns the source data.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The dataProvider. */ com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider getDataProvider(); /** - * - * *
-   * Optional. The details of the Data Provider who owns the source data.
+   * Optional. Details of the data provider who owns the source data.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder getDataProviderOrBuilder(); /** - * - * *
-   * Optional. Categories of the Listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the categories. */ - java.util.List getCategoriesList(); + java.util.List getCategoriesList(); /** - * - * *
-   * Optional. Categories of the Listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of categories. */ int getCategoriesCount(); /** - * - * *
-   * Optional. Categories of the Listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The categories at the given index. */ - com.google.cloud.bigquery.dataexchange.common.Category getCategories(int index); + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category getCategories(int index); /** - * - * *
-   * Optional. Categories of the Listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for categories. */ - java.util.List getCategoriesValueList(); + java.util.List + getCategoriesValueList(); /** - * - * *
-   * Optional. Categories of the Listing. Up to two categories are allowed.
+   * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * - * repeated .google.cloud.bigquery.dataexchange.common.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of categories at the given index. */ int getCategoriesValue(int index); /** - * - * *
-   * Optional. The details of the Publisher who owns the listing and has rights to share
+   * Optional. Details of the publisher who owns the listing and who can share
    * the source data.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the publisher field is set. */ boolean hasPublisher(); /** - * - * *
-   * Optional. The details of the Publisher who owns the listing and has rights to share
+   * Optional. Details of the publisher who owns the listing and who can share
    * the source data.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The publisher. */ com.google.cloud.bigquery.dataexchange.v1beta1.Publisher getPublisher(); /** - * - * *
-   * Optional. The details of the Publisher who owns the listing and has rights to share
+   * Optional. Details of the publisher who owns the listing and who can share
    * the source data.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder getPublisherOrBuilder(); /** - * - * *
    * Optional. Email or URL of the request access of the listing.
    * Subscribers can use this reference to request access.
@@ -426,13 +301,10 @@ public interface ListingOrBuilder
    * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestAccess. */ java.lang.String getRequestAccess(); /** - * - * *
    * Optional. Email or URL of the request access of the listing.
    * Subscribers can use this reference to request access.
@@ -440,10 +312,10 @@ public interface ListingOrBuilder
    * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestAccess. */ - com.google.protobuf.ByteString getRequestAccessBytes(); + com.google.protobuf.ByteString + getRequestAccessBytes(); public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.SourceCase getSourceCase(); } diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/LocationName.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/LocationName.java similarity index 100% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/LocationName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/LocationName.java diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.java similarity index 68% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.java index dffd5ec..614a887 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Contains details of the Publisher.
+ * Contains details of the listing publisher.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.Publisher} */ -public final class Publisher extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Publisher extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.Publisher) PublisherOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Publisher.newBuilder() to construct. private Publisher(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Publisher() { name_ = ""; primaryContact_ = ""; @@ -44,15 +26,16 @@ private Publisher() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Publisher(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Publisher( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private Publisher( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - primaryContact_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + primaryContact_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +80,34 @@ private Publisher( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.class, - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.class, com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
-   * Optional. Name of the listing Publisher.
+   * Optional. Name of the listing publisher.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ @java.lang.Override @@ -140,29 +116,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * Optional. Name of the listing Publisher.
+   * Optional. Name of the listing publisher.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -173,15 +149,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PRIMARY_CONTACT_FIELD_NUMBER = 2; private volatile java.lang.Object primaryContact_; /** - * - * *
-   * Optional. Email or URL of the listing Publisher.
+   * Optional. Email or URL of the listing publisher.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The primaryContact. */ @java.lang.Override @@ -190,30 +163,30 @@ public java.lang.String getPrimaryContact() { 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(); primaryContact_ = s; return s; } } /** - * - * *
-   * Optional. Email or URL of the listing Publisher.
+   * Optional. Email or URL of the listing publisher.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for primaryContact. */ @java.lang.Override - public com.google.protobuf.ByteString getPrimaryContactBytes() { + public com.google.protobuf.ByteString + getPrimaryContactBytes() { java.lang.Object ref = primaryContact_; 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); primaryContact_ = b; return b; } else { @@ -222,7 +195,6 @@ public com.google.protobuf.ByteString getPrimaryContactBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,7 +206,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_); } @@ -264,16 +237,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.bigquery.dataexchange.v1beta1.Publisher)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher other = - (com.google.cloud.bigquery.dataexchange.v1beta1.Publisher) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher other = (com.google.cloud.bigquery.dataexchange.v1beta1.Publisher) obj; - if (!getName().equals(other.getName())) return false; - if (!getPrimaryContact().equals(other.getPrimaryContact())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPrimaryContact() + .equals(other.getPrimaryContact())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -295,127 +269,117 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.Publisher parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.Publisher parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.Publisher 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; } /** - * - * *
-   * Contains details of the Publisher.
+   * Contains details of the listing publisher.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.Publisher} */ - 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.bigquery.dataexchange.v1beta1.Publisher) com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.class, - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.class, com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder.class); } // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.newBuilder() @@ -423,15 +387,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(); @@ -443,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor; } @java.lang.Override @@ -464,8 +429,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher build() { @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher result = - new com.google.cloud.bigquery.dataexchange.v1beta1.Publisher(this); + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher result = new com.google.cloud.bigquery.dataexchange.v1beta1.Publisher(this); result.name_ = name_; result.primaryContact_ = primaryContact_; onBuilt(); @@ -476,39 +440,38 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.Publisher) other); + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.Publisher)other); } else { super.mergeFrom(other); return this; @@ -516,8 +479,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.Publisher other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -545,8 +507,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.Publisher) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.Publisher) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -558,20 +519,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
-     * Optional. Name of the listing Publisher.
+     * Optional. Name of the listing publisher.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -580,21 +539,20 @@ public java.lang.String getName() { } } /** - * - * *
-     * Optional. Name of the listing Publisher.
+     * Optional. Name of the listing publisher.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -602,61 +560,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * Optional. Name of the listing Publisher.
+     * Optional. Name of the listing publisher.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
-     * Optional. Name of the listing Publisher.
+     * Optional. Name of the listing publisher.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
-     * Optional. Name of the listing Publisher.
+     * Optional. Name of the listing publisher.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -664,21 +615,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object primaryContact_ = ""; /** - * - * *
-     * Optional. Email or URL of the listing Publisher.
+     * Optional. Email or URL of the listing publisher.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The primaryContact. */ public java.lang.String getPrimaryContact() { java.lang.Object ref = primaryContact_; 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(); primaryContact_ = s; return s; @@ -687,22 +636,21 @@ public java.lang.String getPrimaryContact() { } } /** - * - * *
-     * Optional. Email or URL of the listing Publisher.
+     * Optional. Email or URL of the listing publisher.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for primaryContact. */ - public com.google.protobuf.ByteString getPrimaryContactBytes() { + public com.google.protobuf.ByteString + getPrimaryContactBytes() { java.lang.Object ref = primaryContact_; 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); primaryContact_ = b; return b; } else { @@ -710,71 +658,64 @@ public com.google.protobuf.ByteString getPrimaryContactBytes() { } } /** - * - * *
-     * Optional. Email or URL of the listing Publisher.
+     * Optional. Email or URL of the listing publisher.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The primaryContact to set. * @return This builder for chaining. */ - public Builder setPrimaryContact(java.lang.String value) { + public Builder setPrimaryContact( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + primaryContact_ = value; onChanged(); return this; } /** - * - * *
-     * Optional. Email or URL of the listing Publisher.
+     * Optional. Email or URL of the listing publisher.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPrimaryContact() { - + primaryContact_ = getDefaultInstance().getPrimaryContact(); onChanged(); return this; } /** - * - * *
-     * Optional. Email or URL of the listing Publisher.
+     * Optional. Email or URL of the listing publisher.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for primaryContact to set. * @return This builder for chaining. */ - public Builder setPrimaryContactBytes(com.google.protobuf.ByteString value) { + public Builder setPrimaryContactBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryContact_ = 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); } @@ -784,12 +725,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.Publisher) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.Publisher) private static final com.google.cloud.bigquery.dataexchange.v1beta1.Publisher DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.Publisher(); } @@ -798,16 +739,16 @@ public static com.google.cloud.bigquery.dataexchange.v1beta1.Publisher getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Publisher parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Publisher(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Publisher parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Publisher(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -822,4 +763,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java similarity index 51% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java index 3e3de7a..811770b 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java @@ -1,77 +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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface PublisherOrBuilder - extends +public interface PublisherOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.Publisher) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Optional. Name of the listing Publisher.
+   * Optional. Name of the listing publisher.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
-   * Optional. Name of the listing Publisher.
+   * Optional. Name of the listing publisher.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
-   * Optional. Email or URL of the listing Publisher.
+   * Optional. Email or URL of the listing publisher.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The primaryContact. */ java.lang.String getPrimaryContact(); /** - * - * *
-   * Optional. Email or URL of the listing Publisher.
+   * Optional. Email or URL of the listing publisher.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for primaryContact. */ - com.google.protobuf.ByteString getPrimaryContactBytes(); + com.google.protobuf.ByteString + getPrimaryContactBytes(); } diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.java similarity index 61% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.java index 9b6b426..32e0dd1 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Message for subscribing a Listing.
+ * Message for subscribing to a listing.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest} */ -public final class SubscribeListingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SubscribeListingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) SubscribeListingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SubscribeListingRequest.newBuilder() to construct. private SubscribeListingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SubscribeListingRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SubscribeListingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SubscribeListingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,43 +53,33 @@ private SubscribeListingRequest( 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 26: { + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder subBuilder = null; + if (destinationCase_ == 3) { + subBuilder = ((com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_).toBuilder(); } - case 26: - { - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder subBuilder = - null; - if (destinationCase_ == 3) { - subBuilder = - ((com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) - destination_) - .toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) - destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 3; - break; + destination_ = + input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_); + destination_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + destinationCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,39 +87,34 @@ private SubscribeListingRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DESTINATION_DATASET(3), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -162,136 +130,114 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 3: - return DESTINATION_DATASET; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 3: return DESTINATION_DATASET; + case 0: return DESTINATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + public static final int DESTINATION_DATASET_FIELD_NUMBER = 3; /** - * - * *
-   * Required. Resource name of the listing to subscribe to.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * BigQuery destination dataset to create for the subscriber.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * @return Whether the destinationDataset field is set. */ @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } + public boolean hasDestinationDataset() { + return destinationCase_ == 3; } /** - * - * *
-   * Required. Resource name of the listing to subscribe to.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * BigQuery destination dataset to create for the subscriber.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * @return The destinationDataset. */ @java.lang.Override - 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); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset getDestinationDataset() { + if (destinationCase_ == 3) { + return (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_; } + return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance(); } - - public static final int DESTINATION_DATASET_FIELD_NUMBER = 3; /** - * - * *
    * BigQuery destination dataset to create for the subscriber.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; - * - * - * @return Whether the destinationDataset field is set. + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; */ @java.lang.Override - public boolean hasDestinationDataset() { - return destinationCase_ == 3; + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder getDestinationDatasetOrBuilder() { + if (destinationCase_ == 3) { + return (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_; + } + return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance(); } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; /** - * - * *
-   * BigQuery destination dataset to create for the subscriber.
+   * Required. Resource name of the listing that you want to subscribe to.
+   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; - * - * - * @return The destinationDataset. + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset getDestinationDataset() { - if (destinationCase_ == 3) { - return (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_; + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; } - return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance(); } /** - * - * *
-   * BigQuery destination dataset to create for the subscriber.
+   * Required. Resource name of the listing that you want to subscribe to.
+   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder - getDestinationDatasetOrBuilder() { - if (destinationCase_ == 3) { - return (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_; + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -303,13 +249,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 (destinationCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_); + output.writeMessage(3, (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_); } unknownFields.writeTo(output); } @@ -324,9 +270,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (destinationCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -336,19 +281,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.bigquery.dataexchange.v1beta1.SubscribeListingRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest other = - (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 3: - if (!getDestinationDataset().equals(other.getDestinationDataset())) return false; + if (!getDestinationDataset() + .equals(other.getDestinationDataset())) return false; break; case 0: default: @@ -380,145 +326,134 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest 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; } /** - * - * *
-   * Message for subscribing a Listing.
+   * Message for subscribing to a listing.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest} */ - 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest) com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -530,22 +465,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest build() { - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest result = - buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -554,9 +486,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest bu @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest result = - new com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest(this); - result.name_ = name_; + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest(this); if (destinationCase_ == 3) { if (destinationDatasetBuilder_ == null) { result.destination_ = destination_; @@ -564,6 +494,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest bu result.destination_ = destinationDatasetBuilder_.build(); } } + result.name_ = name_; result.destinationCase_ = destinationCase_; onBuilt(); return result; @@ -573,65 +504,58 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest bu 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) other); + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } switch (other.getDestinationCase()) { - case DESTINATION_DATASET: - { - mergeDestinationDataset(other.getDestinationDataset()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case DESTINATION_DATASET: { + mergeDestinationDataset(other.getDestinationDataset()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -652,9 +576,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -663,12 +585,12 @@ public Builder mergeFrom( } return this; } - private int destinationCase_ = 0; private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); + public DestinationCase + getDestinationCase() { + return DestinationCase.forNumber( + destinationCase_); } public Builder clearDestination() { @@ -678,142 +600,15 @@ public Builder clearDestination() { return this; } - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. Resource name of the listing to subscribe to.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
-     * 
- * - * - * 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; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Resource name of the listing to subscribe to.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - 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); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Resource name of the listing to subscribe to.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Resource name of the listing to subscribe to.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
-     * 
- * - * - * 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 listing to subscribe to.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset, - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder> - destinationDatasetBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder> destinationDatasetBuilder_; /** - * - * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; * @return Whether the destinationDataset field is set. */ @java.lang.Override @@ -821,46 +616,35 @@ public boolean hasDestinationDataset() { return destinationCase_ == 3; } /** - * - * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; * @return The destinationDataset. */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset - getDestinationDataset() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset getDestinationDataset() { if (destinationDatasetBuilder_ == null) { if (destinationCase_ == 3) { return (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_; } - return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset - .getDefaultInstance(); + return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance(); } else { if (destinationCase_ == 3) { return destinationDatasetBuilder_.getMessage(); } - return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset - .getDefaultInstance(); + return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance(); } } /** - * - * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; */ - public Builder setDestinationDataset( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset value) { + public Builder setDestinationDataset(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset value) { if (destinationDatasetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -874,14 +658,11 @@ public Builder setDestinationDataset( return this; } /** - * - * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; */ public Builder setDestinationDataset( com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder builderForValue) { @@ -895,28 +676,18 @@ public Builder setDestinationDataset( return this; } /** - * - * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; */ - public Builder mergeDestinationDataset( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset value) { + public Builder mergeDestinationDataset(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset value) { if (destinationDatasetBuilder_ == null) { - if (destinationCase_ == 3 - && destination_ - != com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset - .getDefaultInstance()) { - destination_ = - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.newBuilder( - (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) - destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 3 && + destination_ != com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance()) { + destination_ = com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.newBuilder((com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -932,14 +703,11 @@ public Builder mergeDestinationDataset( return this; } /** - * - * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; */ public Builder clearDestinationDataset() { if (destinationDatasetBuilder_ == null) { @@ -958,81 +726,162 @@ public Builder clearDestinationDataset() { return this; } /** - * - * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder - getDestinationDatasetBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder getDestinationDatasetBuilder() { return getDestinationDatasetFieldBuilder().getBuilder(); } /** - * - * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder - getDestinationDatasetOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder getDestinationDatasetOrBuilder() { if ((destinationCase_ == 3) && (destinationDatasetBuilder_ != null)) { return destinationDatasetBuilder_.getMessageOrBuilder(); } else { if (destinationCase_ == 3) { return (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_; } - return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset - .getDefaultInstance(); + return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance(); } } /** - * - * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset, - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder> getDestinationDatasetFieldBuilder() { if (destinationDatasetBuilder_ == null) { if (!(destinationCase_ == 3)) { - destination_ = - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset - .getDefaultInstance(); + destination_ = com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance(); } - destinationDatasetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset, - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder>( + destinationDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder>( (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 3; - onChanged(); - ; + onChanged();; return destinationDatasetBuilder_; } + private java.lang.Object name_ = ""; + /** + *
+     * Required. Resource name of the listing that you want to subscribe to.
+     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Resource name of the listing that you want to subscribe to.
+     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Resource name of the listing that you want to subscribe to.
+     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. Resource name of the listing that you want to subscribe to.
+     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * 
+ * + * 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 listing that you want to subscribe to.
+     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + 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); } @@ -1042,32 +891,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubscribeListingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubscribeListingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubscribeListingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubscribeListingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1079,8 +926,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java similarity index 51% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java index acf1af6..25b2a4d 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java @@ -1,98 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface SubscribeListingRequestOrBuilder - extends +public interface SubscribeListingRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Required. Resource name of the listing to subscribe to.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * BigQuery destination dataset to create for the subscriber.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * @return Whether the destinationDataset field is set. */ - java.lang.String getName(); + boolean hasDestinationDataset(); /** - * - * *
-   * Required. Resource name of the listing to subscribe to.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * BigQuery destination dataset to create for the subscriber.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * @return The destinationDataset. */ - com.google.protobuf.ByteString getNameBytes(); - + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset getDestinationDataset(); /** - * - * *
    * BigQuery destination dataset to create for the subscriber.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; - * - * - * @return Whether the destinationDataset field is set. + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; */ - boolean hasDestinationDataset(); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder getDestinationDatasetOrBuilder(); + /** - * - * *
-   * BigQuery destination dataset to create for the subscriber.
+   * Required. Resource name of the listing that you want to subscribe to.
+   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; - * - * - * @return The destinationDataset. + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. */ - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset getDestinationDataset(); + java.lang.String getName(); /** - * - * *
-   * BigQuery destination dataset to create for the subscriber.
+   * Required. Resource name of the listing that you want to subscribe to.
+   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. */ - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder - getDestinationDatasetOrBuilder(); + com.google.protobuf.ByteString + getNameBytes(); - public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.DestinationCase - getDestinationCase(); + public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.DestinationCase getDestinationCase(); } diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java similarity index 60% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java index 7861851..ee58b80 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java @@ -1,56 +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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Message for response to subscribing a Listing.
- * Empty for now.
+ * Message for response when you subscribe to a listing.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse} */ -public final class SubscribeListingResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SubscribeListingResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) SubscribeListingResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SubscribeListingResponse.newBuilder() to construct. private SubscribeListingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SubscribeListingResponse() {} + private SubscribeListingResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SubscribeListingResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SubscribeListingResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,13 +52,13 @@ private SubscribeListingResponse( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -83,30 +66,27 @@ private SubscribeListingResponse( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.class, - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.class, com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,7 +98,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -136,13 +117,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse other = - (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse other = (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -161,147 +141,134 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse 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; } /** - * - * *
-   * Message for response to subscribing a Listing.
-   * Empty for now.
+   * Message for response when you subscribe to a listing.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse} */ - 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse) com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.class, - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.Builder - .class); + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.class, com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -309,22 +276,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse build() { - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse result = - buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -333,8 +297,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse b @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse result = - new com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse(this); + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse result = new com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse(this); onBuilt(); return result; } @@ -343,52 +306,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse b 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) other); + if (other instanceof com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) { + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -408,9 +365,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -419,9 +374,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -431,33 +386,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubscribeListingResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubscribeListingResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubscribeListingResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubscribeListingResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -469,8 +421,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponseOrBuilder.java new file mode 100644 index 0000000..bd2510d --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto + +package com.google.cloud.bigquery.dataexchange.v1beta1; + +public interface SubscribeListingResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.java similarity index 53% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.java index 62a25b3..c5ad138 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
- * Message for updating a DataExchange.
+ * Message for updating a data exchange.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest} */ -public final class UpdateDataExchangeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateDataExchangeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) UpdateDataExchangeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateDataExchangeRequest.newBuilder() to construct. private UpdateDataExchangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateDataExchangeRequest() {} + private UpdateDataExchangeRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateDataExchangeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateDataExchangeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateDataExchangeRequest( 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.bigquery.dataexchange.v1beta1.DataExchange.Builder subBuilder = null; - if (dataExchange_ != null) { - subBuilder = dataExchange_.toBuilder(); - } - dataExchange_ = - input.readMessage( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataExchange_); - dataExchange_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder subBuilder = null; + if (dataExchange_ != null) { + subBuilder = dataExchange_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + dataExchange_ = input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataExchange_); + dataExchange_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,43 +92,36 @@ private UpdateDataExchangeRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * DataExchange resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request.
+   * Required. Field mask specifies the fields to update in the data exchange
+   * resource. The fields specified in the
+   * `updateMask` are relative to the resource and are not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -158,18 +129,13 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * DataExchange resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request.
+   * Required. Field mask specifies the fields to update in the data exchange
+   * resource. The fields specified in the
+   * `updateMask` are relative to the resource and are not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -177,17 +143,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * DataExchange resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request.
+   * Required. Field mask specifies the fields to update in the data exchange
+   * resource. The fields specified in the
+   * `updateMask` are relative to the resource and are not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -197,16 +159,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int DATA_EXCHANGE_FIELD_NUMBER = 2; private com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange dataExchange_; /** - * - * *
-   * Required. The DataExchange to update.
+   * Required. The data exchange to update.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dataExchange field is set. */ @java.lang.Override @@ -214,43 +171,30 @@ public boolean hasDataExchange() { return dataExchange_ != null; } /** - * - * *
-   * Required. The DataExchange to update.
+   * Required. The data exchange to update.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The dataExchange. */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange() { - return dataExchange_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() - : dataExchange_; + return dataExchange_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() : dataExchange_; } /** - * - * *
-   * Required. The DataExchange to update.
+   * Required. The data exchange to update.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder - getDataExchangeOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangeOrBuilder() { return getDataExchange(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +206,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()); } @@ -279,10 +224,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 (dataExchange_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataExchange()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDataExchange()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -292,22 +239,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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest)) { + if (!(obj instanceof com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest other = - (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasDataExchange() != other.hasDataExchange()) return false; if (hasDataExchange()) { - if (!getDataExchange().equals(other.getDataExchange())) return false; + if (!getDataExchange() + .equals(other.getDataExchange())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -334,146 +281,134 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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; } /** - * - * *
-   * Message for updating a DataExchange.
+   * Message for updating a data exchange.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest} */ - 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.Builder - .class); + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -493,22 +428,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest build() { - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest result = - buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -517,8 +449,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest result = - new com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -537,52 +468,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) other); + if (other instanceof com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) { + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -608,9 +533,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,64 +545,45 @@ 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_; /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * DataExchange resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the data exchange
+     * resource. The fields specified in the
+     * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * DataExchange resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the data exchange
+     * resource. The fields specified in the
+     * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @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(); } } /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * DataExchange resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the data exchange
+     * resource. The fields specified in the
+     * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -695,19 +599,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * DataExchange resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the data exchange
+     * resource. The fields specified in the
+     * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ - 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(); @@ -718,23 +619,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * DataExchange resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the data exchange
+     * resource. The fields specified in the
+     * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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; } @@ -746,17 +643,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * DataExchange resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the data exchange
+     * resource. The fields specified in the
+     * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -770,70 +663,54 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * DataExchange resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the data exchange
+     * resource. The fields specified in the
+     * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * DataExchange resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the data exchange
+     * resource. The fields specified in the
+     * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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_; } } /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * DataExchange resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the data exchange
+     * resource. The fields specified in the
+     * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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_; @@ -841,61 +718,41 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange dataExchange_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> - dataExchangeBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> dataExchangeBuilder_; /** - * - * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dataExchange field is set. */ public boolean hasDataExchange() { return dataExchangeBuilder_ != null || dataExchange_ != null; } /** - * - * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The dataExchange. */ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange() { if (dataExchangeBuilder_ == null) { - return dataExchange_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() - : dataExchange_; + return dataExchange_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() : dataExchange_; } else { return dataExchangeBuilder_.getMessage(); } } /** - * - * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { + public Builder setDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { if (dataExchangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -909,15 +766,11 @@ public Builder setDataExchange( return this; } /** - * - * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDataExchange( com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { @@ -931,24 +784,17 @@ public Builder setDataExchange( return this; } /** - * - * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { + public Builder mergeDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { if (dataExchangeBuilder_ == null) { if (dataExchange_ != null) { dataExchange_ = - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.newBuilder(dataExchange_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.newBuilder(dataExchange_).mergeFrom(value).buildPartial(); } else { dataExchange_ = value; } @@ -960,15 +806,11 @@ public Builder mergeDataExchange( return this; } /** - * - * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDataExchange() { if (dataExchangeBuilder_ == null) { @@ -982,73 +824,55 @@ public Builder clearDataExchange() { return this; } /** - * - * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder - getDataExchangeBuilder() { - + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder getDataExchangeBuilder() { + onChanged(); return getDataExchangeFieldBuilder().getBuilder(); } /** - * - * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder - getDataExchangeOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangeOrBuilder() { if (dataExchangeBuilder_ != null) { return dataExchangeBuilder_.getMessageOrBuilder(); } else { - return dataExchange_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() - : dataExchange_; + return dataExchange_ == null ? + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() : dataExchange_; } } /** - * - * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> getDataExchangeFieldBuilder() { if (dataExchangeBuilder_ == null) { - dataExchangeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>( - getDataExchange(), getParentForChildren(), isClean()); + dataExchangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>( + getDataExchange(), + getParentForChildren(), + isClean()); dataExchange_ = null; } return dataExchangeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1058,33 +882,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDataExchangeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateDataExchangeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDataExchangeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateDataExchangeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1096,8 +917,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java new file mode 100644 index 0000000..a4af639 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto + +package com.google.cloud.bigquery.dataexchange.v1beta1; + +public interface UpdateDataExchangeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Field mask specifies the fields to update in the data exchange
+   * resource. The fields specified in the
+   * `updateMask` are relative to the resource and are not a full request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * Required. Field mask specifies the fields to update in the data exchange
+   * resource. The fields specified in the
+   * `updateMask` are relative to the resource and are not a full request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * Required. Field mask specifies the fields to update in the data exchange
+   * resource. The fields specified in the
+   * `updateMask` are relative to the resource and are not a full request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + *
+   * Required. The data exchange to update.
+   * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the dataExchange field is set. + */ + boolean hasDataExchange(); + /** + *
+   * Required. The data exchange to update.
+   * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The dataExchange. + */ + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange(); + /** + *
+   * Required. The data exchange to update.
+   * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangeOrBuilder(); +} diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.java similarity index 56% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.java index 47ae35e..c62f277 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** - * - * *
  * Message for updating a Listing.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest} */ -public final class UpdateListingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateListingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) UpdateListingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateListingRequest.newBuilder() to construct. private UpdateListingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateListingRequest() {} + private UpdateListingRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateListingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateListingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateListingRequest( 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.bigquery.dataexchange.v1beta1.Listing.Builder subBuilder = null; - if (listing_ != null) { - subBuilder = listing_.toBuilder(); - } - listing_ = - input.readMessage( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(listing_); - listing_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder subBuilder = null; + if (listing_ != null) { + subBuilder = listing_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + listing_ = input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(listing_); + listing_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,43 +92,36 @@ private UpdateListingRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * Listing resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request.
+   * Required. Field mask specifies the fields to update in the listing resource. The
+   * fields specified in the `updateMask` are relative to the resource and are
+   * not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -158,18 +129,13 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * Listing resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request.
+   * Required. Field mask specifies the fields to update in the listing resource. The
+   * fields specified in the `updateMask` are relative to the resource and are
+   * not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -177,17 +143,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * Listing resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request.
+   * Required. Field mask specifies the fields to update in the listing resource. The
+   * fields specified in the `updateMask` are relative to the resource and are
+   * not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -197,16 +159,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int LISTING_FIELD_NUMBER = 2; private com.google.cloud.bigquery.dataexchange.v1beta1.Listing listing_; /** - * - * *
    * Required. The listing to update.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the listing field is set. */ @java.lang.Override @@ -214,34 +171,23 @@ public boolean hasListing() { return listing_ != null; } /** - * - * *
    * Required. The listing to update.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The listing. */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing() { - return listing_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() - : listing_; + return listing_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() : listing_; } /** - * - * *
    * Required. The listing to update.
    * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingOrBuilder() { @@ -249,7 +195,6 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListin } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +206,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()); } @@ -278,10 +224,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 (listing_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getListing()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getListing()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -291,21 +239,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.bigquery.dataexchange.v1beta1.UpdateListingRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest other = - (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasListing() != other.hasListing()) return false; if (hasListing()) { - if (!getListing().equals(other.getListing())) return false; + if (!getListing() + .equals(other.getListing())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -332,145 +281,134 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest 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.bigquery.dataexchange.v1beta1.UpdateListingRequest 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.bigquery.dataexchange.v1beta1.UpdateListingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest 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.bigquery.dataexchange.v1beta1.UpdateListingRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest 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.bigquery.dataexchange.v1beta1.UpdateListingRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest 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.bigquery.dataexchange.v1beta1.UpdateListingRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest 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.bigquery.dataexchange.v1beta1.UpdateListingRequest 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.bigquery.dataexchange.v1beta1.UpdateListingRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest 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; } /** - * - * *
    * Message for updating a Listing.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest} */ - 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.bigquery.dataexchange.v1beta1.UpdateListingRequest) com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.class, - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.newBuilder() + // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -490,16 +428,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto - .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.getDefaultInstance(); } @java.lang.Override @@ -513,8 +449,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest build @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest result = - new com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -533,51 +468,46 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest build 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.bigquery.dataexchange.v1beta1.UpdateListingRequest) { - return mergeFrom( - (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) other); + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest other) { - if (other - == com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest other) { + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -603,9 +533,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -617,64 +545,45 @@ 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_; /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Listing resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the listing resource. The
+     * fields specified in the `updateMask` are relative to the resource and are
+     * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Listing resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the listing resource. The
+     * fields specified in the `updateMask` are relative to the resource and are
+     * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; * @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(); } } /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Listing resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the listing resource. The
+     * fields specified in the `updateMask` are relative to the resource and are
+     * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -690,19 +599,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Listing resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the listing resource. The
+     * fields specified in the `updateMask` are relative to the resource and are
+     * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ - 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(); @@ -713,23 +619,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Listing resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the listing resource. The
+     * fields specified in the `updateMask` are relative to the resource and are
+     * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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; } @@ -741,17 +643,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Listing resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the listing resource. The
+     * fields specified in the `updateMask` are relative to the resource and are
+     * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -765,70 +663,54 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Listing resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the listing resource. The
+     * fields specified in the `updateMask` are relative to the resource and are
+     * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Listing resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the listing resource. The
+     * fields specified in the `updateMask` are relative to the resource and are
+     * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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_; } } /** - * - * *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Listing resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request.
+     * Required. Field mask specifies the fields to update in the listing resource. The
+     * fields specified in the `updateMask` are relative to the resource and are
+     * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; */ 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_; @@ -836,58 +718,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.bigquery.dataexchange.v1beta1.Listing listing_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> - listingBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> listingBuilder_; /** - * - * *
      * Required. The listing to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the listing field is set. */ public boolean hasListing() { return listingBuilder_ != null || listing_ != null; } /** - * - * *
      * Required. The listing to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The listing. */ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing() { if (listingBuilder_ == null) { - return listing_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() - : listing_; + return listing_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() : listing_; } else { return listingBuilder_.getMessage(); } } /** - * - * *
      * Required. The listing to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setListing(com.google.cloud.bigquery.dataexchange.v1beta1.Listing value) { if (listingBuilder_ == null) { @@ -903,15 +766,11 @@ public Builder setListing(com.google.cloud.bigquery.dataexchange.v1beta1.Listing return this; } /** - * - * *
      * Required. The listing to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setListing( com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder builderForValue) { @@ -925,23 +784,17 @@ public Builder setListing( return this; } /** - * - * *
      * Required. The listing to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeListing(com.google.cloud.bigquery.dataexchange.v1beta1.Listing value) { if (listingBuilder_ == null) { if (listing_ != null) { listing_ = - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.newBuilder(listing_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.newBuilder(listing_).mergeFrom(value).buildPartial(); } else { listing_ = value; } @@ -953,15 +806,11 @@ public Builder mergeListing(com.google.cloud.bigquery.dataexchange.v1beta1.Listi return this; } /** - * - * *
      * Required. The listing to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearListing() { if (listingBuilder_ == null) { @@ -975,71 +824,55 @@ public Builder clearListing() { return this; } /** - * - * *
      * Required. The listing to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder getListingBuilder() { - + onChanged(); return getListingFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The listing to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingOrBuilder() { if (listingBuilder_ != null) { return listingBuilder_.getMessageOrBuilder(); } else { - return listing_ == null - ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() - : listing_; + return listing_ == null ? + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() : listing_; } } /** - * - * *
      * Required. The listing to update.
      * 
* - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> getListingFieldBuilder() { if (listingBuilder_ == null) { - listingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, - com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder>( - getListing(), getParentForChildren(), isClean()); + listingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder>( + getListing(), + getParentForChildren(), + isClean()); listing_ = null; } return listingBuilder_; } - @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); } @@ -1049,32 +882,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateListingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateListingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateListingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateListingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1086,8 +917,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java new file mode 100644 index 0000000..13117c0 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto + +package com.google.cloud.bigquery.dataexchange.v1beta1; + +public interface UpdateListingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Field mask specifies the fields to update in the listing resource. The
+   * fields specified in the `updateMask` are relative to the resource and are
+   * not a full request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + *
+   * Required. Field mask specifies the fields to update in the listing resource. The
+   * fields specified in the `updateMask` are relative to the resource and are
+   * not a full request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * Required. Field mask specifies the fields to update in the listing resource. The
+   * fields specified in the `updateMask` are relative to the resource and are
+   * not a full request.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + *
+   * Required. The listing to update.
+   * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the listing field is set. + */ + boolean hasListing(); + /** + *
+   * Required. The listing to update.
+   * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The listing. + */ + com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing(); + /** + *
+   * Required. The listing to update.
+   * 
+ * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingOrBuilder(); +} diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/proto/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/proto/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto similarity index 76% rename from proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/proto/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/proto/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto index 76a2c5e..f18a0e4 100644 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/proto/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/proto/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto @@ -20,7 +20,6 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/bigquery/dataexchange/common/common.proto"; import "google/iam/v1/iam_policy.proto"; import "google/iam/v1/policy.proto"; import "google/protobuf/empty.proto"; @@ -39,18 +38,19 @@ option (google.api.resource_definition) = { pattern: "projects/{project}/datasets/{dataset}" }; -// The AnalyticsHubService API facilitates data sharing within and across -// organizations. It allows data providers to publish Listings --- a -// discoverable and searchable SKU representing a dataset. Data consumers can -// subscribe to Listings. Upon subscription, AnalyticsHub provisions a "Linked -// Datasets" surfacing the data in the consumer's project. +// The `AnalyticsHubService` API facilitates data sharing within and across +// organizations. It allows data providers to publish listings that reference +// shared datasets. With Analytics Hub, users can discover and search for +// listings that they have access to. Subscribers can view and subscribe to +// listings. When you subscribe to a listing, Analytics Hub creates a linked +// dataset in your project. service AnalyticsHubService { option (google.api.default_host) = "analyticshub.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/bigquery," "https://www.googleapis.com/auth/cloud-platform"; - // Lists DataExchanges in a given project and location. + // Lists all data exchanges in a given project and location. rpc ListDataExchanges(ListDataExchangesRequest) returns (ListDataExchangesResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*/locations/*}/dataExchanges" @@ -58,7 +58,8 @@ service AnalyticsHubService { option (google.api.method_signature) = "parent"; } - // Lists DataExchanges from projects in a given organization and location. + // Lists all data exchanges from projects in a given organization and + // location. rpc ListOrgDataExchanges(ListOrgDataExchangesRequest) returns (ListOrgDataExchangesResponse) { option (google.api.http) = { get: "/v1beta1/{organization=organizations/*/locations/*}/dataExchanges" @@ -66,7 +67,7 @@ service AnalyticsHubService { option (google.api.method_signature) = "organization"; } - // Gets details of a single DataExchange. + // Gets the details of a data exchange. rpc GetDataExchange(GetDataExchangeRequest) returns (DataExchange) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/locations/*/dataExchanges/*}" @@ -74,7 +75,7 @@ service AnalyticsHubService { option (google.api.method_signature) = "name"; } - // Creates a new DataExchange in a given project and location. + // Creates a new data exchange. rpc CreateDataExchange(CreateDataExchangeRequest) returns (DataExchange) { option (google.api.http) = { post: "/v1beta1/{parent=projects/*/locations/*}/dataExchanges" @@ -83,7 +84,7 @@ service AnalyticsHubService { option (google.api.method_signature) = "parent,data_exchange"; } - // Updates the parameters of a single DataExchange. + // Updates an existing data exchange. rpc UpdateDataExchange(UpdateDataExchangeRequest) returns (DataExchange) { option (google.api.http) = { patch: "/v1beta1/{data_exchange.name=projects/*/locations/*/dataExchanges/*}" @@ -92,7 +93,7 @@ service AnalyticsHubService { option (google.api.method_signature) = "data_exchange,update_mask"; } - // Deletes a single DataExchange. + // Deletes an existing data exchange. rpc DeleteDataExchange(DeleteDataExchangeRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1beta1/{name=projects/*/locations/*/dataExchanges/*}" @@ -100,7 +101,7 @@ service AnalyticsHubService { option (google.api.method_signature) = "name"; } - // Lists Listings in a given project and location. + // Lists all listings in a given project and location. rpc ListListings(ListListingsRequest) returns (ListListingsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*/locations/*/dataExchanges/*}/listings" @@ -108,7 +109,7 @@ service AnalyticsHubService { option (google.api.method_signature) = "parent"; } - // Gets details of a single Listing. + // Gets the details of a listing. rpc GetListing(GetListingRequest) returns (Listing) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/locations/*/dataExchanges/*/listings/*}" @@ -116,7 +117,7 @@ service AnalyticsHubService { option (google.api.method_signature) = "name"; } - // Creates a new Listing in a given project and location. + // Creates a new listing. rpc CreateListing(CreateListingRequest) returns (Listing) { option (google.api.http) = { post: "/v1beta1/{parent=projects/*/locations/*/dataExchanges/*}/listings" @@ -125,7 +126,7 @@ service AnalyticsHubService { option (google.api.method_signature) = "parent,listing"; } - // Updates the parameters of a single Listing. + // Updates an existing listing. rpc UpdateListing(UpdateListingRequest) returns (Listing) { option (google.api.http) = { patch: "/v1beta1/{listing.name=projects/*/locations/*/dataExchanges/*/listings/*}" @@ -134,8 +135,7 @@ service AnalyticsHubService { option (google.api.method_signature) = "listing,update_mask"; } - // Deletes a single Listing, as long as there are no subscriptions - // associated with the source of this Listing. + // Deletes a listing. rpc DeleteListing(DeleteListingRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1beta1/{name=projects/*/locations/*/dataExchanges/*/listings/*}" @@ -143,10 +143,11 @@ service AnalyticsHubService { option (google.api.method_signature) = "name"; } - // Subscribes to a single Listing. + // Subscribes to a listing. // - // Data Exchange currently supports one type of Listing: a BigQuery dataset. - // Upon subscription to a Listing for a BigQuery dataset, Data Exchange + // Currently, with Analytics Hub, you can create listings that + // reference only BigQuery datasets. + // Upon subscription to a listing for a BigQuery dataset, Analytics Hub // creates a linked dataset in the subscriber's project. rpc SubscribeListing(SubscribeListingRequest) returns (SubscribeListingResponse) { option (google.api.http) = { @@ -156,7 +157,7 @@ service AnalyticsHubService { option (google.api.method_signature) = "name"; } - // Gets the IAM policy for a dataExchange or a listing. + // Gets the IAM policy. rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1beta1/{resource=projects/*/locations/*/dataExchanges/*}:getIamPolicy" @@ -168,7 +169,7 @@ service AnalyticsHubService { }; } - // Sets the IAM policy for a dataExchange or a listing. + // Sets the IAM policy. rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1beta1/{resource=projects/*/locations/*/dataExchanges/*}:setIamPolicy" @@ -180,8 +181,7 @@ service AnalyticsHubService { }; } - // Returns the permissions that a caller has on a specified dataExchange or - // listing. + // Returns the permissions that a caller has. rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { option (google.api.http) = { post: "/v1beta1/{resource=projects/*/locations/*/dataExchanges/*}:testIamPermissions" @@ -194,9 +194,9 @@ service AnalyticsHubService { } } -// A data exchange is a container that enables data sharing. -// It contains a set of listings of the data sources along with descriptive -// information of the data exchange. +// A data exchange is a container that lets you share data. Along with the +// descriptive information about the data exchange, it contains listings that +// reference shared datasets. message DataExchange { option (google.api.resource) = { type: "analyticshub.googleapis.com/DataExchange" @@ -209,21 +209,19 @@ message DataExchange { // Required. Human-readable display name of the data exchange. The display name must // contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), - // spaces ( ), and can't start or end with spaces. + // spaces ( ), ampersands (&) and must not start or end with spaces. // Default value is an empty string. // Max length: 63 bytes. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. Short description of the data exchange that can consist of sentences - // or paragraphs. The description must not contain Unicode non-characters as - // well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage - // returns (CR), and page breaks (FF). + // Optional. Description of the data exchange. The description must not contain Unicode + // non-characters as well as C0 and C1 control codes except tabs (HT), + // new lines (LF), carriage returns (CR), and page breaks (FF). // Default value is an empty string. // Max length: 2000 bytes. string description = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Email, URL or other reference of the primary point of contact of the data - // exchange + // Optional. Email or URL of the primary point of contact of the data exchange. // Max Length: 1000 bytes. string primary_contact = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -236,32 +234,32 @@ message DataExchange { // Optional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB // Expected image dimensions are 512x512 pixels, however the API only // performs validation on size of the encoded data. - // Note: For byte fields, the contents of the field are base64-encoded (which + // Note: For byte fields, the content of the fields are base64-encoded (which // increases the size of the data by 33-36%) when using JSON on the wire. bytes icon = 7 [(google.api.field_behavior) = OPTIONAL]; } -// Contains details of the Data Provider. +// Contains details of the data provider. message DataProvider { - // Optional. Name of the Data Provider. + // Optional. Name of the data provider. string name = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Email or URL of the Data Provider. + // Optional. Email or URL of the data provider. // Max Length: 1000 bytes. string primary_contact = 2 [(google.api.field_behavior) = OPTIONAL]; } -// Contains details of the Publisher. +// Contains details of the listing publisher. message Publisher { - // Optional. Name of the listing Publisher. + // Optional. Name of the listing publisher. string name = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Email or URL of the listing Publisher. + // Optional. Email or URL of the listing publisher. // Max Length: 1000 bytes. string primary_contact = 2 [(google.api.field_behavior) = OPTIONAL]; } -// Defines the Destination BigQuery Dataset Reference. +// Contains the reference that identifies a destination bigquery dataset. message DestinationDatasetReference { // Required. A unique ID for this dataset, without the project name. The ID // must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). @@ -272,7 +270,7 @@ message DestinationDatasetReference { string project_id = 2 [(google.api.field_behavior) = REQUIRED]; } -// Defines the Destination BigQuery Dataset. +// Defines the destination bigquery dataset. message DestinationDataset { // Required. A reference that identifies the destination dataset. DestinationDatasetReference dataset_reference = 1 [(google.api.field_behavior) = REQUIRED]; @@ -306,12 +304,13 @@ message Listing { pattern: "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" }; - // A reference to a Shared dataset. It's an existing BigQuery dataset with a - // collection of objects, such as tables and views, that you want to share + // A reference to a shared dataset. It is an existing BigQuery dataset with a + // collection of objects such as tables and views that you want to share // with subscribers. - // Upon subscription to a Listing, Data Exchange creates a Linked dataset in + // When subscriber's subscribe to a listing, Analytics Hub creates a linked + // dataset in // the subscriber's project. A Linked dataset is an opaque, read-only BigQuery - // dataset that serves as a "symbolic link" to a shared dataset. + // dataset that serves as a _symbolic link_ to a shared dataset. message BigQueryDatasetSource { // Resource name of the dataset source for this listing. // e.g. `projects/myproject/datasets/123` @@ -320,31 +319,79 @@ message Listing { }]; } - // State of the Listing + // State of the listing. enum State { // Default value. This value is unused. STATE_UNSPECIFIED = 0; // Subscribable state. Users with dataexchange.listings.subscribe permission - // can subscribe to this Listing. + // can subscribe to this listing. ACTIVE = 1; } + // Listing categories. + enum Category { + CATEGORY_UNSPECIFIED = 0; + + CATEGORY_OTHERS = 1; + + CATEGORY_ADVERTISING_AND_MARKETING = 2; + + CATEGORY_COMMERCE = 3; + + CATEGORY_CLIMATE_AND_ENVIRONMENT = 4; + + CATEGORY_DEMOGRAPHICS = 5; + + CATEGORY_ECONOMICS = 6; + + CATEGORY_EDUCATION = 7; + + CATEGORY_ENERGY = 8; + + CATEGORY_FINANCIAL = 9; + + CATEGORY_GAMING = 10; + + CATEGORY_GEOSPATIAL = 11; + + CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE = 12; + + CATEGORY_MEDIA = 13; + + CATEGORY_PUBLIC_SECTOR = 14; + + CATEGORY_RETAIL = 15; + + CATEGORY_SPORTS = 16; + + CATEGORY_SCIENCE_AND_RESEARCH = 17; + + CATEGORY_TRANSPORTATION_AND_LOGISTICS = 18; + + CATEGORY_TRAVEL_AND_TOURISM = 19; + } + + // Listing source. + oneof source { + // Required. Shared dataset i.e. BigQuery dataset source. + BigQueryDatasetSource bigquery_dataset = 6 [(google.api.field_behavior) = REQUIRED]; + } + // Output only. The resource name of the listing. // e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456` string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Human-readable display name of the listing. The display name must contain // only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces - // ( ), and can't start or end with spaces. + // ( ), ampersands (&) and can't start or end with spaces. // Default value is an empty string. // Max length: 63 bytes. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. Short description of the listing that can consist of sentences or - // paragraphs. The description must not contain Unicode non-characters as - // well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage - // returns (CR), and page breaks (FF). + // Optional. Short description of the listing. The description must not contain + // Unicode non-characters and C0 and C1 control codes except tabs (HT), + // new lines (LF), carriage returns (CR), and page breaks (FF). // Default value is an empty string. // Max length: 2000 bytes. string description = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -356,13 +403,7 @@ message Listing { // Optional. Documentation describing the listing. string documentation = 5 [(google.api.field_behavior) = OPTIONAL]; - // Listing source. - oneof source { - // Required. Shared dataset i.e. BigQuery dataset source. - BigQueryDatasetSource bigquery_dataset = 6 [(google.api.field_behavior) = REQUIRED]; - } - - // Output only. Current state of the Listing. + // Output only. Current state of the listing. State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB @@ -372,13 +413,13 @@ message Listing { // increases the size of the data by 33-36%) when using JSON on the wire. bytes icon = 8 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The details of the Data Provider who owns the source data. + // Optional. Details of the data provider who owns the source data. DataProvider data_provider = 9 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Categories of the Listing. Up to two categories are allowed. - repeated google.cloud.bigquery.dataexchange.common.Category categories = 10 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Categories of the listing. Up to two categories are allowed. + repeated Category categories = 10 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The details of the Publisher who owns the listing and has rights to share + // Optional. Details of the publisher who owns the listing and who can share // the source data. Publisher publisher = 11 [(google.api.field_behavior) = OPTIONAL]; @@ -388,9 +429,9 @@ message Listing { string request_access = 12 [(google.api.field_behavior) = OPTIONAL]; } -// Message for requesting list of DataExchanges. +// Message for requesting the list of data exchanges. message ListDataExchangesRequest { - // Required. The parent resource path of the DataExchanges. + // Required. The parent resource path of the data exchanges. // e.g. `projects/myproject/locations/US`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -408,17 +449,17 @@ message ListDataExchangesRequest { string page_token = 3; } -// Message for response to listing DataExchanges. +// Message for response to the list of data exchanges. message ListDataExchangesResponse { - // The list of DataExchange. + // The list of data exchanges. repeated DataExchange data_exchanges = 1; // A token to request the next page of results. string next_page_token = 2; } -// Message for requesting list of DataExchanges from projects in an organization -// and location. +// Message for requesting the list of data exchanges from projects in an +// organization and location. message ListOrgDataExchangesRequest { // Required. The organization resource path of the projects containing DataExchanges. // e.g. `organizations/myorg/locations/US`. @@ -433,19 +474,19 @@ message ListOrgDataExchangesRequest { string page_token = 3; } -// Message for response to listing DataExchanges in an organization and +// Message for response to listing data exchanges in an organization and // location. message ListOrgDataExchangesResponse { - // The list of DataExchange. + // The list of data exchanges. repeated DataExchange data_exchanges = 1; // A token to request the next page of results. string next_page_token = 2; } -// Message for getting a DataExchange. +// Message for getting a data exchange. message GetDataExchangeRequest { - // Required. The resource name of the DataExchange. + // Required. The resource name of the data exchange. // e.g. `projects/myproject/locations/US/dataExchanges/123`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -455,9 +496,9 @@ message GetDataExchangeRequest { ]; } -// Message for creating a DataExchange. +// Message for creating a data exchange. message CreateDataExchangeRequest { - // Required. The parent resource path of the DataExchange. + // Required. The parent resource path of the data exchange. // e.g. `projects/myproject/locations/US`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -466,33 +507,32 @@ message CreateDataExchangeRequest { } ]; - // Required. The ID of the DataExchange to create. + // Required. The ID of the data exchange. // Must contain only Unicode letters, numbers (0-9), underscores (_). // Should not use characters that require URL-escaping, or characters // outside of ASCII, spaces. // Max length: 100 bytes. string data_exchange_id = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The DataExchange to create. + // Required. The data exchange to create. DataExchange data_exchange = 3 [(google.api.field_behavior) = REQUIRED]; } -// Message for updating a DataExchange. +// Message for updating a data exchange. message UpdateDataExchangeRequest { - // Required. Field mask is used to specify the fields to be overwritten in the - // DataExchange resource by the update. - // The fields specified in the update_mask are relative to the resource, not - // the full request. + // Required. Field mask specifies the fields to update in the data exchange + // resource. The fields specified in the + // `updateMask` are relative to the resource and are not a full request. google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The DataExchange to update. + // Required. The data exchange to update. DataExchange data_exchange = 2 [(google.api.field_behavior) = REQUIRED]; } -// Message for deleting a DataExchange. +// Message for deleting a data exchange. message DeleteDataExchangeRequest { - // Required. Resource name of the DataExchange to delete. - // e.g. `projects/myproject/locations/US/dataExchanges/123`. + // Required. The full name of the data exchange resource that you want to delete. + // For example, `projects/myproject/locations/US/dataExchanges/123`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -501,7 +541,7 @@ message DeleteDataExchangeRequest { ]; } -// Message for requesting list of Listings. +// Message for requesting the list of listings. message ListListingsRequest { // Required. The parent resource path of the listing. // e.g. `projects/myproject/locations/US/dataExchanges/123`. @@ -521,7 +561,7 @@ message ListListingsRequest { string page_token = 3; } -// Message for response to listing Listings. +// Message for response to the list of Listings. message ListListingsResponse { // The list of Listing. repeated Listing listings = 1; @@ -530,7 +570,7 @@ message ListListingsResponse { string next_page_token = 2; } -// Message for getting a Listing. +// Message for getting a listing. message GetListingRequest { // Required. The resource name of the listing. // e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`. @@ -542,7 +582,7 @@ message GetListingRequest { ]; } -// Message for creating a Listing. +// Message for creating a listing. message CreateListingRequest { // Required. The parent resource path of the listing. // e.g. `projects/myproject/locations/US/dataExchanges/123`. @@ -553,7 +593,7 @@ message CreateListingRequest { } ]; - // Required. The ID of the Listing to create. + // Required. The ID of the listing to create. // Must contain only Unicode letters, numbers (0-9), underscores (_). // Should not use characters that require URL-escaping, or characters // outside of ASCII, spaces. @@ -566,17 +606,16 @@ message CreateListingRequest { // Message for updating a Listing. message UpdateListingRequest { - // Required. Field mask is used to specify the fields to be overwritten in the - // Listing resource by the update. - // The fields specified in the update_mask are relative to the resource, not - // the full request. + // Required. Field mask specifies the fields to update in the listing resource. The + // fields specified in the `updateMask` are relative to the resource and are + // not a full request. google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The listing to update. Listing listing = 2 [(google.api.field_behavior) = REQUIRED]; } -// Message for deleting a Listing. +// Message for deleting a listing. message DeleteListingRequest { // Required. Resource name of the listing to delete. // e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`. @@ -588,9 +627,15 @@ message DeleteListingRequest { ]; } -// Message for subscribing a Listing. +// Message for subscribing to a listing. message SubscribeListingRequest { - // Required. Resource name of the listing to subscribe to. + // Resulting destination of the listing that you subscribed to. + oneof destination { + // BigQuery destination dataset to create for the subscriber. + DestinationDataset destination_dataset = 3; + } + + // Required. Resource name of the listing that you want to subscribe to. // e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -598,16 +643,9 @@ message SubscribeListingRequest { type: "analyticshub.googleapis.com/Listing" } ]; - - // Resulting destination of the listing subscribed to. - oneof destination { - // BigQuery destination dataset to create for the subscriber. - DestinationDataset destination_dataset = 3; - } } -// Message for response to subscribing a Listing. -// Empty for now. +// Message for response when you subscribe to a listing. message SubscribeListingResponse { } diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/common/Category.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/common/Category.java deleted file mode 100644 index 2773aa4..0000000 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/common/Category.java +++ /dev/null @@ -1,232 +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/bigquery/dataexchange/common/common.proto - -package com.google.cloud.bigquery.dataexchange.common; - -/** - * - * - *
- * Listing categories.
- * 
- * - * Protobuf enum {@code google.cloud.bigquery.dataexchange.common.Category} - */ -public enum Category implements com.google.protobuf.ProtocolMessageEnum { - /** CATEGORY_UNSPECIFIED = 0; */ - CATEGORY_UNSPECIFIED(0), - /** CATEGORY_OTHERS = 1; */ - CATEGORY_OTHERS(1), - /** CATEGORY_ADVERTISING_AND_MARKETING = 2; */ - CATEGORY_ADVERTISING_AND_MARKETING(2), - /** CATEGORY_COMMERCE = 3; */ - CATEGORY_COMMERCE(3), - /** CATEGORY_CLIMATE_AND_ENVIRONMENT = 4; */ - CATEGORY_CLIMATE_AND_ENVIRONMENT(4), - /** CATEGORY_DEMOGRAPHICS = 5; */ - CATEGORY_DEMOGRAPHICS(5), - /** CATEGORY_ECONOMICS = 6; */ - CATEGORY_ECONOMICS(6), - /** CATEGORY_EDUCATION = 7; */ - CATEGORY_EDUCATION(7), - /** CATEGORY_ENERGY = 8; */ - CATEGORY_ENERGY(8), - /** CATEGORY_FINANCIAL = 9; */ - CATEGORY_FINANCIAL(9), - /** CATEGORY_GAMING = 10; */ - CATEGORY_GAMING(10), - /** CATEGORY_GEOSPATIAL = 11; */ - CATEGORY_GEOSPATIAL(11), - /** CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE = 12; */ - CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE(12), - /** CATEGORY_MEDIA = 13; */ - CATEGORY_MEDIA(13), - /** CATEGORY_PUBLIC_SECTOR = 14; */ - CATEGORY_PUBLIC_SECTOR(14), - /** CATEGORY_RETAIL = 15; */ - CATEGORY_RETAIL(15), - /** CATEGORY_SPORTS = 16; */ - CATEGORY_SPORTS(16), - /** CATEGORY_SCIENCE_AND_RESEARCH = 17; */ - CATEGORY_SCIENCE_AND_RESEARCH(17), - /** CATEGORY_TRANSPORTATION_AND_LOGISTICS = 18; */ - CATEGORY_TRANSPORTATION_AND_LOGISTICS(18), - /** CATEGORY_TRAVEL_AND_TOURISM = 19; */ - CATEGORY_TRAVEL_AND_TOURISM(19), - UNRECOGNIZED(-1), - ; - - /** CATEGORY_UNSPECIFIED = 0; */ - public static final int CATEGORY_UNSPECIFIED_VALUE = 0; - /** CATEGORY_OTHERS = 1; */ - public static final int CATEGORY_OTHERS_VALUE = 1; - /** CATEGORY_ADVERTISING_AND_MARKETING = 2; */ - public static final int CATEGORY_ADVERTISING_AND_MARKETING_VALUE = 2; - /** CATEGORY_COMMERCE = 3; */ - public static final int CATEGORY_COMMERCE_VALUE = 3; - /** CATEGORY_CLIMATE_AND_ENVIRONMENT = 4; */ - public static final int CATEGORY_CLIMATE_AND_ENVIRONMENT_VALUE = 4; - /** CATEGORY_DEMOGRAPHICS = 5; */ - public static final int CATEGORY_DEMOGRAPHICS_VALUE = 5; - /** CATEGORY_ECONOMICS = 6; */ - public static final int CATEGORY_ECONOMICS_VALUE = 6; - /** CATEGORY_EDUCATION = 7; */ - public static final int CATEGORY_EDUCATION_VALUE = 7; - /** CATEGORY_ENERGY = 8; */ - public static final int CATEGORY_ENERGY_VALUE = 8; - /** CATEGORY_FINANCIAL = 9; */ - public static final int CATEGORY_FINANCIAL_VALUE = 9; - /** CATEGORY_GAMING = 10; */ - public static final int CATEGORY_GAMING_VALUE = 10; - /** CATEGORY_GEOSPATIAL = 11; */ - public static final int CATEGORY_GEOSPATIAL_VALUE = 11; - /** CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE = 12; */ - public static final int CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE_VALUE = 12; - /** CATEGORY_MEDIA = 13; */ - public static final int CATEGORY_MEDIA_VALUE = 13; - /** CATEGORY_PUBLIC_SECTOR = 14; */ - public static final int CATEGORY_PUBLIC_SECTOR_VALUE = 14; - /** CATEGORY_RETAIL = 15; */ - public static final int CATEGORY_RETAIL_VALUE = 15; - /** CATEGORY_SPORTS = 16; */ - public static final int CATEGORY_SPORTS_VALUE = 16; - /** CATEGORY_SCIENCE_AND_RESEARCH = 17; */ - public static final int CATEGORY_SCIENCE_AND_RESEARCH_VALUE = 17; - /** CATEGORY_TRANSPORTATION_AND_LOGISTICS = 18; */ - public static final int CATEGORY_TRANSPORTATION_AND_LOGISTICS_VALUE = 18; - /** CATEGORY_TRAVEL_AND_TOURISM = 19; */ - public static final int CATEGORY_TRAVEL_AND_TOURISM_VALUE = 19; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Category valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Category forNumber(int value) { - switch (value) { - case 0: - return CATEGORY_UNSPECIFIED; - case 1: - return CATEGORY_OTHERS; - case 2: - return CATEGORY_ADVERTISING_AND_MARKETING; - case 3: - return CATEGORY_COMMERCE; - case 4: - return CATEGORY_CLIMATE_AND_ENVIRONMENT; - case 5: - return CATEGORY_DEMOGRAPHICS; - case 6: - return CATEGORY_ECONOMICS; - case 7: - return CATEGORY_EDUCATION; - case 8: - return CATEGORY_ENERGY; - case 9: - return CATEGORY_FINANCIAL; - case 10: - return CATEGORY_GAMING; - case 11: - return CATEGORY_GEOSPATIAL; - case 12: - return CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE; - case 13: - return CATEGORY_MEDIA; - case 14: - return CATEGORY_PUBLIC_SECTOR; - case 15: - return CATEGORY_RETAIL; - case 16: - return CATEGORY_SPORTS; - case 17: - return CATEGORY_SCIENCE_AND_RESEARCH; - case 18: - return CATEGORY_TRANSPORTATION_AND_LOGISTICS; - case 19: - return CATEGORY_TRAVEL_AND_TOURISM; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Category findValueByNumber(int number) { - return Category.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.bigquery.dataexchange.common.CommonProto.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Category[] VALUES = values(); - - public static Category valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Category(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.dataexchange.common.Category) -} diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/common/CommonProto.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/common/CommonProto.java deleted file mode 100644 index 0528e60..0000000 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/common/CommonProto.java +++ /dev/null @@ -1,69 +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/bigquery/dataexchange/common/common.proto - -package com.google.cloud.bigquery.dataexchange.common; - -public final class CommonProto { - private CommonProto() {} - - 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 = { - "\n6google/cloud/bigquery/dataexchange/com" - + "mon/common.proto\022)google.cloud.bigquery." - + "dataexchange.common*\267\004\n\010Category\022\030\n\024CATE" - + "GORY_UNSPECIFIED\020\000\022\023\n\017CATEGORY_OTHERS\020\001\022" - + "&\n\"CATEGORY_ADVERTISING_AND_MARKETING\020\002\022" - + "\025\n\021CATEGORY_COMMERCE\020\003\022$\n CATEGORY_CLIMA" - + "TE_AND_ENVIRONMENT\020\004\022\031\n\025CATEGORY_DEMOGRA" - + "PHICS\020\005\022\026\n\022CATEGORY_ECONOMICS\020\006\022\026\n\022CATEG" - + "ORY_EDUCATION\020\007\022\023\n\017CATEGORY_ENERGY\020\010\022\026\n\022" - + "CATEGORY_FINANCIAL\020\t\022\023\n\017CATEGORY_GAMING\020" - + "\n\022\027\n\023CATEGORY_GEOSPATIAL\020\013\022(\n$CATEGORY_H" - + "EALTHCARE_AND_LIFE_SCIENCE\020\014\022\022\n\016CATEGORY" - + "_MEDIA\020\r\022\032\n\026CATEGORY_PUBLIC_SECTOR\020\016\022\023\n\017" - + "CATEGORY_RETAIL\020\017\022\023\n\017CATEGORY_SPORTS\020\020\022!" - + "\n\035CATEGORY_SCIENCE_AND_RESEARCH\020\021\022)\n%CAT" - + "EGORY_TRANSPORTATION_AND_LOGISTICS\020\022\022\037\n\033" - + "CATEGORY_TRAVEL_AND_TOURISM\020\023B\227\002\n-com.go" - + "ogle.cloud.bigquery.dataexchange.commonB" - + "\013CommonProtoP\001ZOgoogle.golang.org/genpro" - + "to/googleapis/cloud/bigquery/dataexchang" - + "e/common;common\252\002)Google.Cloud.BigQuery." - + "DataExchange.Common\312\002)Google\\Cloud\\BigQu" - + "ery\\DataExchange\\Common\352\002-Google::Cloud:" - + ":Bigquery::DataExchange::Commonb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java deleted file mode 100644 index e30ef88..0000000 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java +++ /dev/null @@ -1,130 +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/bigquery/dataexchange/v1beta1/dataexchange.proto - -package com.google.cloud.bigquery.dataexchange.v1beta1; - -public interface CreateDataExchangeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource path of the DataExchange.
-   * e.g. `projects/myproject/locations/US`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource path of the DataExchange.
-   * e.g. `projects/myproject/locations/US`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The ID of the DataExchange to create.
-   * Must contain only Unicode letters, numbers (0-9), underscores (_).
-   * Should not use characters that require URL-escaping, or characters
-   * outside of ASCII, spaces.
-   * Max length: 100 bytes.
-   * 
- * - * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The dataExchangeId. - */ - java.lang.String getDataExchangeId(); - /** - * - * - *
-   * Required. The ID of the DataExchange to create.
-   * Must contain only Unicode letters, numbers (0-9), underscores (_).
-   * Should not use characters that require URL-escaping, or characters
-   * outside of ASCII, spaces.
-   * Max length: 100 bytes.
-   * 
- * - * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for dataExchangeId. - */ - com.google.protobuf.ByteString getDataExchangeIdBytes(); - - /** - * - * - *
-   * Required. The DataExchange to create.
-   * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the dataExchange field is set. - */ - boolean hasDataExchange(); - /** - * - * - *
-   * Required. The DataExchange to create.
-   * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dataExchange. - */ - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange(); - /** - * - * - *
-   * Required. The DataExchange to create.
-   * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangeOrBuilder(); -} diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java deleted file mode 100644 index 39c0363..0000000 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java +++ /dev/null @@ -1,599 +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/bigquery/dataexchange/v1beta1/dataexchange.proto - -package com.google.cloud.bigquery.dataexchange.v1beta1; - -public final class DataExchangeProto { - private DataExchangeProto() {} - - 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_bigquery_dataexchange_v1beta1_DataExchange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_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/bigquery/dataexchange/v1b" - + "eta1/dataexchange.proto\022*google.cloud.bi" - + "gquery.dataexchange.v1beta1\032\034google/api/" - + "annotations.proto\032\027google/api/client.pro" - + "to\032\037google/api/field_behavior.proto\032\031goo" - + "gle/api/resource.proto\0326google/cloud/big" - + "query/dataexchange/common/common.proto\032\036" - + "google/iam/v1/iam_policy.proto\032\032google/i" - + "am/v1/policy.proto\032\033google/protobuf/empt" - + "y.proto\032 google/protobuf/field_mask.prot" - + "o\032\036google/protobuf/wrappers.proto\"\265\002\n\014Da" - + "taExchange\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display" - + "_name\030\002 \001(\tB\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340" - + "A\001\022\034\n\017primary_contact\030\004 \001(\tB\003\340A\001\022\032\n\rdocu" - + "mentation\030\005 \001(\tB\003\340A\001\022\032\n\rlisting_count\030\006 " - + "\001(\005B\003\340A\003\022\021\n\004icon\030\007 \001(\014B\003\340A\001:t\352Aq\n(analyt" - + "icshub.googleapis.com/DataExchange\022Eproj" - + "ects/{project}/locations/{location}/data" - + "Exchanges/{data_exchange}\"?\n\014DataProvide" - + "r\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\034\n\017primary_contact\030" - + "\002 \001(\tB\003\340A\001\"<\n\tPublisher\022\021\n\004name\030\001 \001(\tB\003\340" - + "A\001\022\034\n\017primary_contact\030\002 \001(\tB\003\340A\001\"O\n\033Dest" - + "inationDatasetReference\022\027\n\ndataset_id\030\001 " - + "\001(\tB\003\340A\002\022\027\n\nproject_id\030\002 \001(\tB\003\340A\002\"\226\003\n\022De" - + "stinationDataset\022g\n\021dataset_reference\030\001 " - + "\001(\0132G.google.cloud.bigquery.dataexchange" - + ".v1beta1.DestinationDatasetReferenceB\003\340A" - + "\002\0228\n\rfriendly_name\030\002 \001(\0132\034.google.protob" - + "uf.StringValueB\003\340A\001\0226\n\013description\030\003 \001(\013" - + "2\034.google.protobuf.StringValueB\003\340A\001\022_\n\006l" - + "abels\030\004 \003(\0132J.google.cloud.bigquery.data" - + "exchange.v1beta1.DestinationDataset.Labe" - + "lsEntryB\003\340A\001\022\025\n\010location\030\005 \001(\tB\003\340A\002\032-\n\013L" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\"\364\006\n\007Listing\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014dis" - + "play_name\030\002 \001(\tB\003\340A\002\022\030\n\013description\030\003 \001(" - + "\tB\003\340A\001\022\034\n\017primary_contact\030\004 \001(\tB\003\340A\001\022\032\n\r" - + "documentation\030\005 \001(\tB\003\340A\001\022j\n\020bigquery_dat" - + "aset\030\006 \001(\0132I.google.cloud.bigquery.datae" - + "xchange.v1beta1.Listing.BigQueryDatasetS" - + "ourceB\003\340A\002H\000\022M\n\005state\030\007 \001(\01629.google.clo" - + "ud.bigquery.dataexchange.v1beta1.Listing" - + ".StateB\003\340A\003\022\021\n\004icon\030\010 \001(\014B\003\340A\001\022T\n\rdata_p" - + "rovider\030\t \001(\01328.google.cloud.bigquery.da" - + "taexchange.v1beta1.DataProviderB\003\340A\001\022L\n\n" - + "categories\030\n \003(\01623.google.cloud.bigquery" - + ".dataexchange.common.CategoryB\003\340A\001\022M\n\tpu" - + "blisher\030\013 \001(\01325.google.cloud.bigquery.da" - + "taexchange.v1beta1.PublisherB\003\340A\001\022\033\n\016req" - + "uest_access\030\014 \001(\tB\003\340A\001\032N\n\025BigQueryDatase" - + "tSource\0225\n\007dataset\030\001 \001(\tB$\372A!\n\037bigquery." - + "googleapis.com/Dataset\"*\n\005State\022\025\n\021STATE" - + "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001:\202\001\352A\177\n#analyt" - + "icshub.googleapis.com/Listing\022Xprojects/" - + "{project}/locations/{location}/dataExcha" - + "nges/{data_exchange}/listings/{listing}B" - + "\010\n\006source\"|\n\030ListDataExchangesRequest\0229\n" - + "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" - + "pis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" - + "age_token\030\003 \001(\t\"\206\001\n\031ListDataExchangesRes" - + "ponse\022P\n\016data_exchanges\030\001 \003(\01328.google.c" - + "loud.bigquery.dataexchange.v1beta1.DataE" - + "xchange\022\027\n\017next_page_token\030\002 \001(\t\"_\n\033List" - + "OrgDataExchangesRequest\022\031\n\014organization\030" - + "\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\"\211\001\n\034ListOrgDataExchangesRespon" - + "se\022P\n\016data_exchanges\030\001 \003(\01328.google.clou" - + "d.bigquery.dataexchange.v1beta1.DataExch" - + "ange\022\027\n\017next_page_token\030\002 \001(\t\"X\n\026GetData" - + "ExchangeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(a" - + "nalyticshub.googleapis.com/DataExchange\"" - + "\313\001\n\031CreateDataExchangeRequest\0229\n\006parent\030" - + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" - + "Location\022\035\n\020data_exchange_id\030\002 \001(\tB\003\340A\002\022" - + "T\n\rdata_exchange\030\003 \001(\01328.google.cloud.bi" - + "gquery.dataexchange.v1beta1.DataExchange" - + "B\003\340A\002\"\247\001\n\031UpdateDataExchangeRequest\0224\n\013u" - + "pdate_mask\030\001 \001(\0132\032.google.protobuf.Field" - + "MaskB\003\340A\002\022T\n\rdata_exchange\030\002 \001(\01328.googl" - + "e.cloud.bigquery.dataexchange.v1beta1.Da" - + "taExchangeB\003\340A\002\"[\n\031DeleteDataExchangeReq" - + "uest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analyticshub" - + ".googleapis.com/DataExchange\"~\n\023ListList" - + "ingsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(ana" - + "lyticshub.googleapis.com/DataExchange\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\024" - + "ListListingsResponse\022E\n\010listings\030\001 \003(\01323" - + ".google.cloud.bigquery.dataexchange.v1be" - + "ta1.Listing\022\027\n\017next_page_token\030\002 \001(\t\"N\n\021" - + "GetListingRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#analyticshub.googleapis.com/Listing\"\274\001\n" - + "\024CreateListingRequest\022@\n\006parent\030\001 \001(\tB0\340" - + "A\002\372A*\n(analyticshub.googleapis.com/DataE" - + "xchange\022\027\n\nlisting_id\030\002 \001(\tB\003\340A\002\022I\n\007list" - + "ing\030\003 \001(\01323.google.cloud.bigquery.dataex" - + "change.v1beta1.ListingB\003\340A\002\"\227\001\n\024UpdateLi" - + "stingRequest\0224\n\013update_mask\030\001 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\003\340A\002\022I\n\007listing\030\002 " - + "\001(\01323.google.cloud.bigquery.dataexchange" - + ".v1beta1.ListingB\003\340A\002\"Q\n\024DeleteListingRe" - + "quest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#analyticshu" - + "b.googleapis.com/Listing\"\302\001\n\027SubscribeLi" - + "stingRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#anal" - + "yticshub.googleapis.com/Listing\022]\n\023desti" - + "nation_dataset\030\003 \001(\0132>.google.cloud.bigq" - + "uery.dataexchange.v1beta1.DestinationDat" - + "asetH\000B\r\n\013destination\"\032\n\030SubscribeListin" - + "gResponse2\246\035\n\023AnalyticsHubService\022\351\001\n\021Li" - + "stDataExchanges\022D.google.cloud.bigquery." - + "dataexchange.v1beta1.ListDataExchangesRe" - + "quest\032E.google.cloud.bigquery.dataexchan" - + "ge.v1beta1.ListDataExchangesResponse\"G\202\323" - + "\344\223\0028\0226/v1beta1/{parent=projects/*/locati" - + "ons/*}/dataExchanges\332A\006parent\022\203\002\n\024ListOr" - + "gDataExchanges\022G.google.cloud.bigquery.d" - + "ataexchange.v1beta1.ListOrgDataExchanges" - + "Request\032H.google.cloud.bigquery.dataexch" - + "ange.v1beta1.ListOrgDataExchangesRespons" - + "e\"X\202\323\344\223\002C\022A/v1beta1/{organization=organi" - + "zations/*/locations/*}/dataExchanges\332A\014o" - + "rganization\022\326\001\n\017GetDataExchange\022B.google" - + ".cloud.bigquery.dataexchange.v1beta1.Get" - + "DataExchangeRequest\0328.google.cloud.bigqu" - + "ery.dataexchange.v1beta1.DataExchange\"E\202" - + "\323\344\223\0028\0226/v1beta1/{name=projects/*/locatio" - + "ns/*/dataExchanges/*}\332A\004name\022\373\001\n\022CreateD" - + "ataExchange\022E.google.cloud.bigquery.data" - + "exchange.v1beta1.CreateDataExchangeReque" - + "st\0328.google.cloud.bigquery.dataexchange." - + "v1beta1.DataExchange\"d\202\323\344\223\002G\"6/v1beta1/{" - + "parent=projects/*/locations/*}/dataExcha" - + "nges:\rdata_exchange\332A\024parent,data_exchan" - + "ge\022\216\002\n\022UpdateDataExchange\022E.google.cloud" - + ".bigquery.dataexchange.v1beta1.UpdateDat" - + "aExchangeRequest\0328.google.cloud.bigquery" - + ".dataexchange.v1beta1.DataExchange\"w\202\323\344\223" - + "\002U2D/v1beta1/{data_exchange.name=project" - + "s/*/locations/*/dataExchanges/*}:\rdata_e" - + "xchange\332A\031data_exchange,update_mask\022\272\001\n\022" - + "DeleteDataExchange\022E.google.cloud.bigque" - + "ry.dataexchange.v1beta1.DeleteDataExchan" - + "geRequest\032\026.google.protobuf.Empty\"E\202\323\344\223\002" - + "8*6/v1beta1/{name=projects/*/locations/*" - + "/dataExchanges/*}\332A\004name\022\345\001\n\014ListListing" - + "s\022?.google.cloud.bigquery.dataexchange.v" - + "1beta1.ListListingsRequest\032@.google.clou" - + "d.bigquery.dataexchange.v1beta1.ListList" - + "ingsResponse\"R\202\323\344\223\002C\022A/v1beta1/{parent=p" - + "rojects/*/locations/*/dataExchanges/*}/l" - + "istings\332A\006parent\022\322\001\n\nGetListing\022=.google" - + ".cloud.bigquery.dataexchange.v1beta1.Get" - + "ListingRequest\0323.google.cloud.bigquery.d" - + "ataexchange.v1beta1.Listing\"P\202\323\344\223\002C\022A/v1" - + "beta1/{name=projects/*/locations/*/dataE" - + "xchanges/*/listings/*}\332A\004name\022\353\001\n\rCreate" - + "Listing\022@.google.cloud.bigquery.dataexch" - + "ange.v1beta1.CreateListingRequest\0323.goog" - + "le.cloud.bigquery.dataexchange.v1beta1.L" - + "isting\"c\202\323\344\223\002L\"A/v1beta1/{parent=project" - + "s/*/locations/*/dataExchanges/*}/listing" - + "s:\007listing\332A\016parent,listing\022\370\001\n\rUpdateLi" - + "sting\022@.google.cloud.bigquery.dataexchan" - + "ge.v1beta1.UpdateListingRequest\0323.google" - + ".cloud.bigquery.dataexchange.v1beta1.Lis" - + "ting\"p\202\323\344\223\002T2I/v1beta1/{listing.name=pro" - + "jects/*/locations/*/dataExchanges/*/list" - + "ings/*}:\007listing\332A\023listing,update_mask\022\273" - + "\001\n\rDeleteListing\022@.google.cloud.bigquery" - + ".dataexchange.v1beta1.DeleteListingReque" - + "st\032\026.google.protobuf.Empty\"P\202\323\344\223\002C*A/v1b" - + "eta1/{name=projects/*/locations/*/dataEx" - + "changes/*/listings/*}\332A\004name\022\374\001\n\020Subscri" - + "beListing\022C.google.cloud.bigquery.dataex" - + "change.v1beta1.SubscribeListingRequest\032D" - + ".google.cloud.bigquery.dataexchange.v1be" - + "ta1.SubscribeListingResponse\"]\202\323\344\223\002P\"K/v" - + "1beta1/{name=projects/*/locations/*/data" - + "Exchanges/*/listings/*}:subscribe:\001*\332A\004n" - + "ame\022\370\001\n\014GetIamPolicy\022\".google.iam.v1.Get" - + "IamPolicyRequest\032\025.google.iam.v1.Policy\"" - + "\254\001\202\323\344\223\002\245\001\"G/v1beta1/{resource=projects/*" - + "/locations/*/dataExchanges/*}:getIamPoli" - + "cy:\001*ZW\"R/v1beta1/{resource=projects/*/l" - + "ocations/*/dataExchanges/*/listings/*}:g" - + "etIamPolicy:\001*\022\370\001\n\014SetIamPolicy\022\".google" - + ".iam.v1.SetIamPolicyRequest\032\025.google.iam" - + ".v1.Policy\"\254\001\202\323\344\223\002\245\001\"G/v1beta1/{resource" - + "=projects/*/locations/*/dataExchanges/*}" - + ":setIamPolicy:\001*ZW\"R/v1beta1/{resource=p" - + "rojects/*/locations/*/dataExchanges/*/li" - + "stings/*}:setIamPolicy:\001*\022\244\002\n\022TestIamPer" - + "missions\022(.google.iam.v1.TestIamPermissi" - + "onsRequest\032).google.iam.v1.TestIamPermis" - + "sionsResponse\"\270\001\202\323\344\223\002\261\001\"M/v1beta1/{resou" - + "rce=projects/*/locations/*/dataExchanges" - + "/*}:testIamPermissions:\001*Z]\"X/v1beta1/{r" - + "esource=projects/*/locations/*/dataExcha" - + "nges/*/listings/*}:testIamPermissions:\001*" - + "\032x\312A\033analyticshub.googleapis.com\322AWhttps" - + "://www.googleapis.com/auth/bigquery,http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rmB\363\002\n.com.google.cloud.bigquery.dataexc" - + "hange.v1beta1B\021DataExchangeProtoP\001ZVgoog" - + "le.golang.org/genproto/googleapis/cloud/" - + "bigquery/dataexchange/v1beta1;dataexchan" - + "ge\252\002*Google.Cloud.BigQuery.DataExchange." - + "V1Beta1\312\002*Google\\Cloud\\BigQuery\\DataExch" - + "ange\\V1beta1\352\002.Google::Cloud::Bigquery::" - + "DataExchange::V1beta1\352AH\n\037bigquery.googl" - + "eapis.com/Dataset\022%projects/{project}/da" - + "tasets/{dataset}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.bigquery.dataexchange.common.CommonProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Description", - "PrimaryContact", - "Documentation", - "ListingCount", - "Icon", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor, - new java.lang.String[] { - "Name", "PrimaryContact", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor, - new java.lang.String[] { - "Name", "PrimaryContact", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor, - new java.lang.String[] { - "DatasetId", "ProjectId", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor, - new java.lang.String[] { - "DatasetReference", "FriendlyName", "Description", "Labels", "Location", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_descriptor = - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Description", - "PrimaryContact", - "Documentation", - "BigqueryDataset", - "State", - "Icon", - "DataProvider", - "Categories", - "Publisher", - "RequestAccess", - "Source", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor = - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor, - new java.lang.String[] { - "Dataset", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor, - new java.lang.String[] { - "DataExchanges", "NextPageToken", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor, - new java.lang.String[] { - "Organization", "PageSize", "PageToken", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor, - new java.lang.String[] { - "DataExchanges", "NextPageToken", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor, - new java.lang.String[] { - "Parent", "DataExchangeId", "DataExchange", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "DataExchange", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor, - new java.lang.String[] { - "Listings", "NextPageToken", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor, - new java.lang.String[] { - "Parent", "ListingId", "Listing", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "Listing", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor, - new java.lang.String[] { - "Name", "DestinationDataset", "Destination", - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor, - new java.lang.String[] {}); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.bigquery.dataexchange.common.CommonProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java deleted file mode 100644 index 6471d1f..0000000 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.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/bigquery/dataexchange/v1beta1/dataexchange.proto - -package com.google.cloud.bigquery.dataexchange.v1beta1; - -public interface DeleteDataExchangeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the DataExchange to delete.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the DataExchange to delete.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
-   * 
- * - * - * 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-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequestOrBuilder.java deleted file mode 100644 index ebc0b02..0000000 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequestOrBuilder.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/bigquery/dataexchange/v1beta1/dataexchange.proto - -package com.google.cloud.bigquery.dataexchange.v1beta1; - -public interface DeleteListingRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the listing to delete.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Resource name of the listing to delete.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
-   * 
- * - * - * 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-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java deleted file mode 100644 index d3d1315..0000000 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.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/bigquery/dataexchange/v1beta1/dataexchange.proto - -package com.google.cloud.bigquery.dataexchange.v1beta1; - -public interface GetDataExchangeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the DataExchange.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the DataExchange.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
-   * 
- * - * - * 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-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequestOrBuilder.java deleted file mode 100644 index 6a50be5..0000000 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequestOrBuilder.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/bigquery/dataexchange/v1beta1/dataexchange.proto - -package com.google.cloud.bigquery.dataexchange.v1beta1; - -public interface GetListingRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
-   * 
- * - * - * 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-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponseOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponseOrBuilder.java deleted file mode 100644 index f4b3119..0000000 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto - -package com.google.cloud.bigquery.dataexchange.v1beta1; - -public interface SubscribeListingResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java deleted file mode 100644 index 1032559..0000000 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java +++ /dev/null @@ -1,113 +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/bigquery/dataexchange/v1beta1/dataexchange.proto - -package com.google.cloud.bigquery.dataexchange.v1beta1; - -public interface UpdateDataExchangeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * DataExchange resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * DataExchange resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * DataExchange resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * Required. The DataExchange to update.
-   * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the dataExchange field is set. - */ - boolean hasDataExchange(); - /** - * - * - *
-   * Required. The DataExchange to update.
-   * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dataExchange. - */ - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange(); - /** - * - * - *
-   * Required. The DataExchange to update.
-   * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangeOrBuilder(); -} diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java deleted file mode 100644 index 31b96e9..0000000 --- a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java +++ /dev/null @@ -1,113 +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/bigquery/dataexchange/v1beta1/dataexchange.proto - -package com.google.cloud.bigquery.dataexchange.v1beta1; - -public interface UpdateListingRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * Listing resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * Listing resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * Listing resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - * - * - *
-   * Required. The listing to update.
-   * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the listing field is set. - */ - boolean hasListing(); - /** - * - * - *
-   * Required. The listing to update.
-   * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The listing. - */ - com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing(); - /** - * - * - *
-   * Required. The listing to update.
-   * 
- * - * - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingOrBuilder(); -} From 4b4b9ed37be8cfc96e66cd937da2b4164609b4dd Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 31 Aug 2022 22:52:01 +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 --- .../v1beta1/AnalyticsHubServiceClient.java | 58 +- .../v1beta1/AnalyticsHubServiceSettings.java | 13 +- .../dataexchange/v1beta1/gapic_metadata.json | 0 .../dataexchange/v1beta1/package-info.java | 0 .../v1beta1/stub/AnalyticsHubServiceStub.java | 0 .../stub/AnalyticsHubServiceStubSettings.java | 27 +- ...rpcAnalyticsHubServiceCallableFactory.java | 0 .../stub/GrpcAnalyticsHubServiceStub.java | 1 - ...sonAnalyticsHubServiceCallableFactory.java | 0 .../stub/HttpJsonAnalyticsHubServiceStub.java | 0 ...AnalyticsHubServiceClientHttpJsonTest.java | 0 .../AnalyticsHubServiceClientTest.java | 0 .../v1beta1/MockAnalyticsHubService.java | 0 .../v1beta1/MockAnalyticsHubServiceImpl.java | 0 .../dataexchange/v1beta1/MockLocations.java | 0 .../v1beta1/MockLocationsImpl.java | 0 .../v1beta1/AnalyticsHubServiceGrpc.java | 2099 +++++++++++++++ .../v1beta1/AnalyticsHubServiceGrpc.java | 1552 ----------- .../v1beta1/DataExchangeProto.java | 552 ---- .../DeleteDataExchangeRequestOrBuilder.java | 31 - .../DeleteListingRequestOrBuilder.java | 31 - .../GetDataExchangeRequestOrBuilder.java | 31 - .../v1beta1/GetListingRequestOrBuilder.java | 31 - .../SubscribeListingResponseOrBuilder.java | 9 - .../v1beta1/CreateDataExchangeRequest.java | 629 +++-- .../CreateDataExchangeRequestOrBuilder.java | 64 +- .../v1beta1/CreateListingRequest.java | 601 +++-- .../CreateListingRequestOrBuilder.java | 64 +- .../dataexchange/v1beta1/DataExchange.java | 702 +++-- .../v1beta1/DataExchangeName.java | 0 .../v1beta1/DataExchangeOrBuilder.java | 69 +- .../v1beta1/DataExchangeProto.java | 610 +++++ .../dataexchange/v1beta1/DataProvider.java | 393 +-- .../v1beta1/DataProviderOrBuilder.java | 36 +- .../v1beta1/DeleteDataExchangeRequest.java | 388 +-- .../DeleteDataExchangeRequestOrBuilder.java | 56 + .../v1beta1/DeleteListingRequest.java | 375 +-- .../DeleteListingRequestOrBuilder.java | 56 + .../v1beta1/DestinationDataset.java | 1076 +++++--- .../v1beta1/DestinationDatasetOrBuilder.java | 115 +- .../v1beta1/DestinationDatasetReference.java | 489 ++-- .../DestinationDatasetReferenceOrBuilder.java | 36 +- .../v1beta1/GetDataExchangeRequest.java | 375 +-- .../GetDataExchangeRequestOrBuilder.java | 56 + .../v1beta1/GetListingRequest.java | 363 +-- .../v1beta1/GetListingRequestOrBuilder.java | 56 + .../v1beta1/ListDataExchangesRequest.java | 498 ++-- .../ListDataExchangesRequestOrBuilder.java | 47 +- .../v1beta1/ListDataExchangesResponse.java | 606 +++-- .../ListDataExchangesResponseOrBuilder.java | 56 +- .../v1beta1/ListListingsRequest.java | 488 ++-- .../v1beta1/ListListingsRequestOrBuilder.java | 47 +- .../v1beta1/ListListingsResponse.java | 489 ++-- .../ListListingsResponseOrBuilder.java | 45 +- .../v1beta1/ListOrgDataExchangesRequest.java | 523 ++-- .../ListOrgDataExchangesRequestOrBuilder.java | 39 +- .../v1beta1/ListOrgDataExchangesResponse.java | 656 +++-- ...ListOrgDataExchangesResponseOrBuilder.java | 56 +- .../dataexchange/v1beta1/Listing.java | 2377 ++++++++++------- .../dataexchange/v1beta1/ListingName.java | 0 .../v1beta1/ListingOrBuilder.java | 193 +- .../dataexchange/v1beta1/LocationName.java | 0 .../dataexchange/v1beta1/Publisher.java | 393 +-- .../v1beta1/PublisherOrBuilder.java | 36 +- .../v1beta1/SubscribeListingRequest.java | 600 +++-- .../SubscribeListingRequestOrBuilder.java | 58 +- .../v1beta1/SubscribeListingResponse.java | 281 +- .../SubscribeListingResponseOrBuilder.java | 24 + .../v1beta1/UpdateDataExchangeRequest.java | 578 ++-- .../UpdateDataExchangeRequestOrBuilder.java | 55 +- .../v1beta1/UpdateListingRequest.java | 550 ++-- .../UpdateListingRequestOrBuilder.java | 55 +- .../dataexchange/v1beta1/dataexchange.proto | 0 73 files changed, 12090 insertions(+), 7704 deletions(-) rename {owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange => google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange => google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java (97%) rename {owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange => google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange => google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/package-info.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange => google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange => google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange => google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange => google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange => google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange => google-cloud-bigquery-data-exchange}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange => google-cloud-bigquery-data-exchange}/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange => google-cloud-bigquery-data-exchange}/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange => google-cloud-bigquery-data-exchange}/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubService.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange => google-cloud-bigquery-data-exchange}/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubServiceImpl.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange => google-cloud-bigquery-data-exchange}/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocations.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange => google-cloud-bigquery-data-exchange}/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocationsImpl.java (100%) create mode 100644 grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java delete mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponseOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java (76%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java (81%) create mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.java (61%) create mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.java (62%) create mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetOrBuilder.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReferenceOrBuilder.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.java (62%) create mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.java (64%) create mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequestOrBuilder.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponseOrBuilder.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequestOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/LocationName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java (60%) create mode 100644 proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponseOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java (60%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java (60%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1 => proto-google-cloud-bigquery-data-exchange-v1beta1}/src/main/proto/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto (100%) diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java b/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java rename to google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java index 5f44793..823b0b0 100644 --- a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java +++ b/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java @@ -72,13 +72,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1877,7 +1877,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListDataExchangesPagedResponse extends AbstractPagedListResponse< - ListDataExchangesRequest, ListDataExchangesResponse, DataExchange, ListDataExchangesPage, + ListDataExchangesRequest, + ListDataExchangesResponse, + DataExchange, + ListDataExchangesPage, ListDataExchangesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1898,7 +1901,9 @@ private ListDataExchangesPagedResponse(ListDataExchangesPage page) { public static class ListDataExchangesPage extends AbstractPage< - ListDataExchangesRequest, ListDataExchangesResponse, DataExchange, + ListDataExchangesRequest, + ListDataExchangesResponse, + DataExchange, ListDataExchangesPage> { private ListDataExchangesPage( @@ -1928,7 +1933,10 @@ public ApiFuture createPageAsync( public static class ListDataExchangesFixedSizeCollection extends AbstractFixedSizeCollection< - ListDataExchangesRequest, ListDataExchangesResponse, DataExchange, ListDataExchangesPage, + ListDataExchangesRequest, + ListDataExchangesResponse, + DataExchange, + ListDataExchangesPage, ListDataExchangesFixedSizeCollection> { private ListDataExchangesFixedSizeCollection( @@ -1949,8 +1957,11 @@ protected ListDataExchangesFixedSizeCollection createCollection( public static class ListOrgDataExchangesPagedResponse extends AbstractPagedListResponse< - ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, DataExchange, - ListOrgDataExchangesPage, ListOrgDataExchangesFixedSizeCollection> { + ListOrgDataExchangesRequest, + ListOrgDataExchangesResponse, + DataExchange, + ListOrgDataExchangesPage, + ListOrgDataExchangesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -1971,7 +1982,9 @@ private ListOrgDataExchangesPagedResponse(ListOrgDataExchangesPage page) { public static class ListOrgDataExchangesPage extends AbstractPage< - ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, DataExchange, + ListOrgDataExchangesRequest, + ListOrgDataExchangesResponse, + DataExchange, ListOrgDataExchangesPage> { private ListOrgDataExchangesPage( @@ -2004,8 +2017,11 @@ public ApiFuture createPageAsync( public static class ListOrgDataExchangesFixedSizeCollection extends AbstractFixedSizeCollection< - ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, DataExchange, - ListOrgDataExchangesPage, ListOrgDataExchangesFixedSizeCollection> { + ListOrgDataExchangesRequest, + ListOrgDataExchangesResponse, + DataExchange, + ListOrgDataExchangesPage, + ListOrgDataExchangesFixedSizeCollection> { private ListOrgDataExchangesFixedSizeCollection( List pages, int collectionSize) { @@ -2025,7 +2041,10 @@ protected ListOrgDataExchangesFixedSizeCollection createCollection( public static class ListListingsPagedResponse extends AbstractPagedListResponse< - ListListingsRequest, ListListingsResponse, Listing, ListListingsPage, + ListListingsRequest, + ListListingsResponse, + Listing, + ListListingsPage, ListListingsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2074,7 +2093,10 @@ public ApiFuture createPageAsync( public static class ListListingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListListingsRequest, ListListingsResponse, Listing, ListListingsPage, + ListListingsRequest, + ListListingsResponse, + Listing, + ListListingsPage, ListListingsFixedSizeCollection> { private ListListingsFixedSizeCollection(List pages, int collectionSize) { @@ -2094,7 +2116,10 @@ protected ListListingsFixedSizeCollection createCollection( public static class ListLocationsPagedResponse extends AbstractPagedListResponse< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2144,7 +2169,10 @@ public ApiFuture createPageAsync( public static class ListLocationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { private ListLocationsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java b/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java rename to google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java index 51673a1..b9a16b3 100644 --- a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java +++ b/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java @@ -31,7 +31,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.dataexchange.v1beta1.stub.AnalyticsHubServiceStubSettings; @@ -56,9 +55,9 @@ *

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

    - *
  • The default service address (analyticshub.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 (analyticshub.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 @@ -97,7 +96,8 @@ public class AnalyticsHubServiceSettings extends ClientSettings listOrgDataExchangesSettings() { return ((AnalyticsHubServiceStubSettings) getStubSettings()).listOrgDataExchangesSettings(); @@ -306,7 +306,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listOrgDataExchanges. */ public PagedCallSettings.Builder< - ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, + ListOrgDataExchangesRequest, + ListOrgDataExchangesResponse, ListOrgDataExchangesPagedResponse> listOrgDataExchangesSettings() { return getStubSettingsBuilder().listOrgDataExchangesSettings(); diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/gapic_metadata.json b/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/gapic_metadata.json rename to google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/package-info.java b/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/package-info.java rename to google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/package-info.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStub.java b/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStub.java rename to google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java b/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java rename to google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java index fb2bd6e..7c84b75 100644 --- a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java +++ b/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java @@ -90,9 +90,9 @@ *

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

    - *
  • The default service address (analyticshub.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 (analyticshub.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 @@ -132,7 +132,8 @@ public class AnalyticsHubServiceStubSettings extends StubSettings listDataExchangesSettings; private final PagedCallSettings< - ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, + ListOrgDataExchangesRequest, + ListOrgDataExchangesResponse, ListOrgDataExchangesPagedResponse> listOrgDataExchangesSettings; private final UnaryCallSettings getDataExchangeSettings; @@ -315,7 +316,8 @@ public Iterable extractResources(ListLocationsResponse payload) { ListDataExchangesRequest, ListDataExchangesResponse, ListDataExchangesPagedResponse> LIST_DATA_EXCHANGES_PAGE_STR_FACT = new PagedListResponseFactory< - ListDataExchangesRequest, ListDataExchangesResponse, + ListDataExchangesRequest, + ListDataExchangesResponse, ListDataExchangesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -332,11 +334,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, + ListOrgDataExchangesRequest, + ListOrgDataExchangesResponse, ListOrgDataExchangesPagedResponse> LIST_ORG_DATA_EXCHANGES_PAGE_STR_FACT = new PagedListResponseFactory< - ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, + ListOrgDataExchangesRequest, + ListOrgDataExchangesResponse, ListOrgDataExchangesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -395,7 +399,8 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listOrgDataExchanges. */ public PagedCallSettings< - ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, + ListOrgDataExchangesRequest, + ListOrgDataExchangesResponse, ListOrgDataExchangesPagedResponse> listOrgDataExchangesSettings() { return listOrgDataExchangesSettings; @@ -613,7 +618,8 @@ public static class Builder ListDataExchangesRequest, ListDataExchangesResponse, ListDataExchangesPagedResponse> listDataExchangesSettings; private final PagedCallSettings.Builder< - ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, + ListOrgDataExchangesRequest, + ListOrgDataExchangesResponse, ListOrgDataExchangesPagedResponse> listOrgDataExchangesSettings; private final UnaryCallSettings.Builder @@ -903,7 +909,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listOrgDataExchanges. */ public PagedCallSettings.Builder< - ListOrgDataExchangesRequest, ListOrgDataExchangesResponse, + ListOrgDataExchangesRequest, + ListOrgDataExchangesResponse, ListOrgDataExchangesPagedResponse> listOrgDataExchangesSettings() { return listOrgDataExchangesSettings; diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceCallableFactory.java b/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceCallableFactory.java rename to google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java b/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java rename to google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java index b5ed32f..f8193ee 100644 --- a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java +++ b/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java @@ -61,7 +61,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/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceCallableFactory.java b/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceCallableFactory.java rename to google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceStub.java b/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceStub.java rename to google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientHttpJsonTest.java b/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientHttpJsonTest.java rename to google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientTest.java b/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientTest.java rename to google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubService.java b/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubService.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubService.java rename to google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubService.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubServiceImpl.java b/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubServiceImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubServiceImpl.java rename to google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockAnalyticsHubServiceImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocations.java b/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocations.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocations.java rename to google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocations.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocationsImpl.java b/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocationsImpl.java rename to google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocationsImpl.java diff --git a/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java b/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java new file mode 100644 index 0000000..b4bad19 --- /dev/null +++ b/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java @@ -0,0 +1,2099 @@ +/* + * 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.bigquery.dataexchange.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * The `AnalyticsHubService` API facilitates data sharing within and across
+ * organizations. It allows data providers to publish listings that reference
+ * shared datasets. With Analytics Hub, users can discover and search for
+ * listings that they have access to. Subscribers can view and subscribe to
+ * listings. When you subscribe to a listing, Analytics Hub creates a linked
+ * dataset in your project.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AnalyticsHubServiceGrpc { + + private AnalyticsHubServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse> + getListDataExchangesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDataExchanges", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse> + getListDataExchangesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse> + getListDataExchangesMethod; + if ((getListDataExchangesMethod = AnalyticsHubServiceGrpc.getListDataExchangesMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getListDataExchangesMethod = AnalyticsHubServiceGrpc.getListDataExchangesMethod) + == null) { + AnalyticsHubServiceGrpc.getListDataExchangesMethod = + getListDataExchangesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataExchanges")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1 + .ListDataExchangesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1 + .ListDataExchangesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("ListDataExchanges")) + .build(); + } + } + } + return getListDataExchangesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse> + getListOrgDataExchangesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOrgDataExchanges", + requestType = + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.class, + responseType = + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse> + getListOrgDataExchangesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse> + getListOrgDataExchangesMethod; + if ((getListOrgDataExchangesMethod = AnalyticsHubServiceGrpc.getListOrgDataExchangesMethod) + == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getListOrgDataExchangesMethod = AnalyticsHubServiceGrpc.getListOrgDataExchangesMethod) + == null) { + AnalyticsHubServiceGrpc.getListOrgDataExchangesMethod = + getListOrgDataExchangesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListOrgDataExchanges")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1 + .ListOrgDataExchangesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1 + .ListOrgDataExchangesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("ListOrgDataExchanges")) + .build(); + } + } + } + return getListOrgDataExchangesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> + getGetDataExchangeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataExchange", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> + getGetDataExchangeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> + getGetDataExchangeMethod; + if ((getGetDataExchangeMethod = AnalyticsHubServiceGrpc.getGetDataExchangeMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getGetDataExchangeMethod = AnalyticsHubServiceGrpc.getGetDataExchangeMethod) == null) { + AnalyticsHubServiceGrpc.getGetDataExchangeMethod = + getGetDataExchangeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataExchange")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("GetDataExchange")) + .build(); + } + } + } + return getGetDataExchangeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> + getCreateDataExchangeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDataExchange", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> + getCreateDataExchangeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> + getCreateDataExchangeMethod; + if ((getCreateDataExchangeMethod = AnalyticsHubServiceGrpc.getCreateDataExchangeMethod) + == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getCreateDataExchangeMethod = AnalyticsHubServiceGrpc.getCreateDataExchangeMethod) + == null) { + AnalyticsHubServiceGrpc.getCreateDataExchangeMethod = + getCreateDataExchangeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataExchange")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1 + .CreateDataExchangeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("CreateDataExchange")) + .build(); + } + } + } + return getCreateDataExchangeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> + getUpdateDataExchangeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataExchange", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> + getUpdateDataExchangeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> + getUpdateDataExchangeMethod; + if ((getUpdateDataExchangeMethod = AnalyticsHubServiceGrpc.getUpdateDataExchangeMethod) + == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getUpdateDataExchangeMethod = AnalyticsHubServiceGrpc.getUpdateDataExchangeMethod) + == null) { + AnalyticsHubServiceGrpc.getUpdateDataExchangeMethod = + getUpdateDataExchangeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataExchange")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1 + .UpdateDataExchangeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("UpdateDataExchange")) + .build(); + } + } + } + return getUpdateDataExchangeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest, + com.google.protobuf.Empty> + getDeleteDataExchangeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDataExchange", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest, + com.google.protobuf.Empty> + getDeleteDataExchangeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest, + com.google.protobuf.Empty> + getDeleteDataExchangeMethod; + if ((getDeleteDataExchangeMethod = AnalyticsHubServiceGrpc.getDeleteDataExchangeMethod) + == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getDeleteDataExchangeMethod = AnalyticsHubServiceGrpc.getDeleteDataExchangeMethod) + == null) { + AnalyticsHubServiceGrpc.getDeleteDataExchangeMethod = + getDeleteDataExchangeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataExchange")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1 + .DeleteDataExchangeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("DeleteDataExchange")) + .build(); + } + } + } + return getDeleteDataExchangeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse> + getListListingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListListings", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse> + getListListingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse> + getListListingsMethod; + if ((getListListingsMethod = AnalyticsHubServiceGrpc.getListListingsMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getListListingsMethod = AnalyticsHubServiceGrpc.getListListingsMethod) == null) { + AnalyticsHubServiceGrpc.getListListingsMethod = + getListListingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListListings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("ListListings")) + .build(); + } + } + } + return getListListingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing> + getGetListingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetListing", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing> + getGetListingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing> + getGetListingMethod; + if ((getGetListingMethod = AnalyticsHubServiceGrpc.getGetListingMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getGetListingMethod = AnalyticsHubServiceGrpc.getGetListingMethod) == null) { + AnalyticsHubServiceGrpc.getGetListingMethod = + getGetListingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetListing")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("GetListing")) + .build(); + } + } + } + return getGetListingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing> + getCreateListingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateListing", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing> + getCreateListingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing> + getCreateListingMethod; + if ((getCreateListingMethod = AnalyticsHubServiceGrpc.getCreateListingMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getCreateListingMethod = AnalyticsHubServiceGrpc.getCreateListingMethod) == null) { + AnalyticsHubServiceGrpc.getCreateListingMethod = + getCreateListingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateListing")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("CreateListing")) + .build(); + } + } + } + return getCreateListingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing> + getUpdateListingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateListing", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing> + getUpdateListingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing> + getUpdateListingMethod; + if ((getUpdateListingMethod = AnalyticsHubServiceGrpc.getUpdateListingMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getUpdateListingMethod = AnalyticsHubServiceGrpc.getUpdateListingMethod) == null) { + AnalyticsHubServiceGrpc.getUpdateListingMethod = + getUpdateListingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateListing")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("UpdateListing")) + .build(); + } + } + } + return getUpdateListingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest, + com.google.protobuf.Empty> + getDeleteListingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteListing", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest, + com.google.protobuf.Empty> + getDeleteListingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest, + com.google.protobuf.Empty> + getDeleteListingMethod; + if ((getDeleteListingMethod = AnalyticsHubServiceGrpc.getDeleteListingMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getDeleteListingMethod = AnalyticsHubServiceGrpc.getDeleteListingMethod) == null) { + AnalyticsHubServiceGrpc.getDeleteListingMethod = + getDeleteListingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteListing")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("DeleteListing")) + .build(); + } + } + } + return getDeleteListingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse> + getSubscribeListingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SubscribeListing", + requestType = com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.class, + responseType = com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse> + getSubscribeListingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse> + getSubscribeListingMethod; + if ((getSubscribeListingMethod = AnalyticsHubServiceGrpc.getSubscribeListingMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getSubscribeListingMethod = AnalyticsHubServiceGrpc.getSubscribeListingMethod) + == null) { + AnalyticsHubServiceGrpc.getSubscribeListingMethod = + getSubscribeListingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubscribeListing")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.dataexchange.v1beta1 + .SubscribeListingResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("SubscribeListing")) + .build(); + } + } + } + return getSubscribeListingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = AnalyticsHubServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getGetIamPolicyMethod = AnalyticsHubServiceGrpc.getGetIamPolicyMethod) == null) { + AnalyticsHubServiceGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = AnalyticsHubServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getSetIamPolicyMethod = AnalyticsHubServiceGrpc.getSetIamPolicyMethod) == null) { + AnalyticsHubServiceGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = AnalyticsHubServiceGrpc.getTestIamPermissionsMethod) + == null) { + synchronized (AnalyticsHubServiceGrpc.class) { + if ((getTestIamPermissionsMethod = AnalyticsHubServiceGrpc.getTestIamPermissionsMethod) + == null) { + AnalyticsHubServiceGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsHubServiceMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AnalyticsHubServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AnalyticsHubServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsHubServiceStub(channel, callOptions); + } + }; + return AnalyticsHubServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AnalyticsHubServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AnalyticsHubServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsHubServiceBlockingStub(channel, callOptions); + } + }; + return AnalyticsHubServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AnalyticsHubServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AnalyticsHubServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsHubServiceFutureStub(channel, callOptions); + } + }; + return AnalyticsHubServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The `AnalyticsHubService` API facilitates data sharing within and across
+   * organizations. It allows data providers to publish listings that reference
+   * shared datasets. With Analytics Hub, users can discover and search for
+   * listings that they have access to. Subscribers can view and subscribe to
+   * listings. When you subscribe to a listing, Analytics Hub creates a linked
+   * dataset in your project.
+   * 
+ */ + public abstract static class AnalyticsHubServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists all data exchanges in a given project and location.
+     * 
+ */ + public void listDataExchanges( + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDataExchangesMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all data exchanges from projects in a given organization and
+     * location.
+     * 
+ */ + public void listOrgDataExchanges( + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListOrgDataExchangesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details of a data exchange.
+     * 
+ */ + public void getDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataExchangeMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new data exchange.
+     * 
+ */ + public void createDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDataExchangeMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing data exchange.
+     * 
+ */ + public void updateDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDataExchangeMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an existing data exchange.
+     * 
+ */ + public void deleteDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDataExchangeMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all listings in a given project and location.
+     * 
+ */ + public void listListings( + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListListingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details of a listing.
+     * 
+ */ + public void getListing( + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetListingMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new listing.
+     * 
+ */ + public void createListing( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateListingMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing listing.
+     * 
+ */ + public void updateListing( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateListingMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a listing.
+     * 
+ */ + public void deleteListing( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteListingMethod(), responseObserver); + } + + /** + * + * + *
+     * Subscribes to a listing.
+     * Currently, with Analytics Hub, you can create listings that
+     * reference only BigQuery datasets.
+     * Upon subscription to a listing for a BigQuery dataset, Analytics Hub
+     * creates a linked dataset in the subscriber's project.
+     * 
+ */ + public void subscribeListing( + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSubscribeListingMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the IAM policy.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the IAM policy.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the permissions that a caller has.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListDataExchangesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse>( + this, METHODID_LIST_DATA_EXCHANGES))) + .addMethod( + getListOrgDataExchangesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse>( + this, METHODID_LIST_ORG_DATA_EXCHANGES))) + .addMethod( + getGetDataExchangeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>( + this, METHODID_GET_DATA_EXCHANGE))) + .addMethod( + getCreateDataExchangeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>( + this, METHODID_CREATE_DATA_EXCHANGE))) + .addMethod( + getUpdateDataExchangeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>( + this, METHODID_UPDATE_DATA_EXCHANGE))) + .addMethod( + getDeleteDataExchangeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_DATA_EXCHANGE))) + .addMethod( + getListListingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse>( + this, METHODID_LIST_LISTINGS))) + .addMethod( + getGetListingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing>( + this, METHODID_GET_LISTING))) + .addMethod( + getCreateListingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing>( + this, METHODID_CREATE_LISTING))) + .addMethod( + getUpdateListingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing>( + this, METHODID_UPDATE_LISTING))) + .addMethod( + getDeleteListingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_LISTING))) + .addMethod( + getSubscribeListingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest, + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse>( + this, METHODID_SUBSCRIBE_LISTING))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .build(); + } + } + + /** + * + * + *
+   * The `AnalyticsHubService` API facilitates data sharing within and across
+   * organizations. It allows data providers to publish listings that reference
+   * shared datasets. With Analytics Hub, users can discover and search for
+   * listings that they have access to. Subscribers can view and subscribe to
+   * listings. When you subscribe to a listing, Analytics Hub creates a linked
+   * dataset in your project.
+   * 
+ */ + public static final class AnalyticsHubServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AnalyticsHubServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnalyticsHubServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsHubServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all data exchanges in a given project and location.
+     * 
+ */ + public void listDataExchanges( + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDataExchangesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all data exchanges from projects in a given organization and
+     * location.
+     * 
+ */ + public void listOrgDataExchanges( + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOrgDataExchangesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the details of a data exchange.
+     * 
+ */ + public void getDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataExchangeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new data exchange.
+     * 
+ */ + public void createDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDataExchangeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing data exchange.
+     * 
+ */ + public void updateDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDataExchangeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an existing data exchange.
+     * 
+ */ + public void deleteDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDataExchangeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all listings in a given project and location.
+     * 
+ */ + public void listListings( + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListListingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the details of a listing.
+     * 
+ */ + public void getListing( + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetListingMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new listing.
+     * 
+ */ + public void createListing( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateListingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing listing.
+     * 
+ */ + public void updateListing( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateListingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a listing.
+     * 
+ */ + public void deleteListing( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteListingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Subscribes to a listing.
+     * Currently, with Analytics Hub, you can create listings that
+     * reference only BigQuery datasets.
+     * Upon subscription to a listing for a BigQuery dataset, Analytics Hub
+     * creates a linked dataset in the subscriber's project.
+     * 
+ */ + public void subscribeListing( + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSubscribeListingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the IAM policy.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the IAM policy.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the permissions that a caller has.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * The `AnalyticsHubService` API facilitates data sharing within and across
+   * organizations. It allows data providers to publish listings that reference
+   * shared datasets. With Analytics Hub, users can discover and search for
+   * listings that they have access to. Subscribers can view and subscribe to
+   * listings. When you subscribe to a listing, Analytics Hub creates a linked
+   * dataset in your project.
+   * 
+ */ + public static final class AnalyticsHubServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AnalyticsHubServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnalyticsHubServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsHubServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all data exchanges in a given project and location.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse + listDataExchanges( + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataExchangesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all data exchanges from projects in a given organization and
+     * location.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse + listOrgDataExchanges( + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOrgDataExchangesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details of a data exchange.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataExchangeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new data exchange.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange createDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDataExchangeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing data exchange.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange updateDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDataExchangeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an existing data exchange.
+     * 
+ */ + public com.google.protobuf.Empty deleteDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDataExchangeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all listings in a given project and location.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse listListings( + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListListingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details of a listing.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing( + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetListingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new listing.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing createListing( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateListingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing listing.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing updateListing( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateListingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a listing.
+     * 
+ */ + public com.google.protobuf.Empty deleteListing( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteListingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Subscribes to a listing.
+     * Currently, with Analytics Hub, you can create listings that
+     * reference only BigQuery datasets.
+     * Upon subscription to a listing for a BigQuery dataset, Analytics Hub
+     * creates a linked dataset in the subscriber's project.
+     * 
+ */ + public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse subscribeListing( + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSubscribeListingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the IAM policy.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the IAM policy.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the permissions that a caller has.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * The `AnalyticsHubService` API facilitates data sharing within and across
+   * organizations. It allows data providers to publish listings that reference
+   * shared datasets. With Analytics Hub, users can discover and search for
+   * listings that they have access to. Subscribers can view and subscribe to
+   * listings. When you subscribe to a listing, Analytics Hub creates a linked
+   * dataset in your project.
+   * 
+ */ + public static final class AnalyticsHubServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AnalyticsHubServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnalyticsHubServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsHubServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all data exchanges in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse> + listDataExchanges( + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDataExchangesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all data exchanges from projects in a given organization and
+     * location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse> + listOrgDataExchanges( + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOrgDataExchangesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details of a data exchange.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> + getDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataExchangeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new data exchange.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> + createDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDataExchangeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing data exchange.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange> + updateDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDataExchangeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an existing data exchange.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDataExchangeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all listings in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse> + listListings(com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListListingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details of a listing.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.dataexchange.v1beta1.Listing> + getListing(com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetListingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new listing.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.dataexchange.v1beta1.Listing> + createListing(com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateListingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing listing.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.dataexchange.v1beta1.Listing> + updateListing(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateListingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a listing.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteListing(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteListingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Subscribes to a listing.
+     * Currently, with Analytics Hub, you can create listings that
+     * reference only BigQuery datasets.
+     * Upon subscription to a listing for a BigQuery dataset, Analytics Hub
+     * creates a linked dataset in the subscriber's project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse> + subscribeListing( + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSubscribeListingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the IAM policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the IAM policy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the permissions that a caller has.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_DATA_EXCHANGES = 0; + private static final int METHODID_LIST_ORG_DATA_EXCHANGES = 1; + private static final int METHODID_GET_DATA_EXCHANGE = 2; + private static final int METHODID_CREATE_DATA_EXCHANGE = 3; + private static final int METHODID_UPDATE_DATA_EXCHANGE = 4; + private static final int METHODID_DELETE_DATA_EXCHANGE = 5; + private static final int METHODID_LIST_LISTINGS = 6; + private static final int METHODID_GET_LISTING = 7; + private static final int METHODID_CREATE_LISTING = 8; + private static final int METHODID_UPDATE_LISTING = 9; + private static final int METHODID_DELETE_LISTING = 10; + private static final int METHODID_SUBSCRIBE_LISTING = 11; + private static final int METHODID_GET_IAM_POLICY = 12; + private static final int METHODID_SET_IAM_POLICY = 13; + private static final int METHODID_TEST_IAM_PERMISSIONS = 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 AnalyticsHubServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AnalyticsHubServiceImplBase 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_DATA_EXCHANGES: + serviceImpl.listDataExchanges( + (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse>) + responseObserver); + break; + case METHODID_LIST_ORG_DATA_EXCHANGES: + serviceImpl.listOrgDataExchanges( + (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse>) + responseObserver); + break; + case METHODID_GET_DATA_EXCHANGE: + serviceImpl.getDataExchange( + (com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>) + responseObserver); + break; + case METHODID_CREATE_DATA_EXCHANGE: + serviceImpl.createDataExchange( + (com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>) + responseObserver); + break; + case METHODID_UPDATE_DATA_EXCHANGE: + serviceImpl.updateDataExchange( + (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>) + responseObserver); + break; + case METHODID_DELETE_DATA_EXCHANGE: + serviceImpl.deleteDataExchange( + (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_LISTINGS: + serviceImpl.listListings( + (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse>) + responseObserver); + break; + case METHODID_GET_LISTING: + serviceImpl.getListing( + (com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_LISTING: + serviceImpl.createListing( + (com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_LISTING: + serviceImpl.updateListing( + (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_LISTING: + serviceImpl.deleteListing( + (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SUBSCRIBE_LISTING: + serviceImpl.subscribeListing( + (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse>) + responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions( + (com.google.iam.v1.TestIamPermissionsRequest) 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 AnalyticsHubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AnalyticsHubServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AnalyticsHubService"); + } + } + + private static final class AnalyticsHubServiceFileDescriptorSupplier + extends AnalyticsHubServiceBaseDescriptorSupplier { + AnalyticsHubServiceFileDescriptorSupplier() {} + } + + private static final class AnalyticsHubServiceMethodDescriptorSupplier + extends AnalyticsHubServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AnalyticsHubServiceMethodDescriptorSupplier(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 (AnalyticsHubServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AnalyticsHubServiceFileDescriptorSupplier()) + .addMethod(getListDataExchangesMethod()) + .addMethod(getListOrgDataExchangesMethod()) + .addMethod(getGetDataExchangeMethod()) + .addMethod(getCreateDataExchangeMethod()) + .addMethod(getUpdateDataExchangeMethod()) + .addMethod(getDeleteDataExchangeMethod()) + .addMethod(getListListingsMethod()) + .addMethod(getGetListingMethod()) + .addMethod(getCreateListingMethod()) + .addMethod(getUpdateListingMethod()) + .addMethod(getDeleteListingMethod()) + .addMethod(getSubscribeListingMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java deleted file mode 100644 index c31be20..0000000 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java +++ /dev/null @@ -1,1552 +0,0 @@ -package com.google.cloud.bigquery.dataexchange.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * The `AnalyticsHubService` API facilitates data sharing within and across
- * organizations. It allows data providers to publish listings that reference
- * shared datasets. With Analytics Hub, users can discover and search for
- * listings that they have access to. Subscribers can view and subscribe to
- * listings. When you subscribe to a listing, Analytics Hub creates a linked
- * dataset in your project.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AnalyticsHubServiceGrpc { - - private AnalyticsHubServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListDataExchangesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDataExchanges", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDataExchangesMethod() { - io.grpc.MethodDescriptor getListDataExchangesMethod; - if ((getListDataExchangesMethod = AnalyticsHubServiceGrpc.getListDataExchangesMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getListDataExchangesMethod = AnalyticsHubServiceGrpc.getListDataExchangesMethod) == null) { - AnalyticsHubServiceGrpc.getListDataExchangesMethod = getListDataExchangesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataExchanges")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("ListDataExchanges")) - .build(); - } - } - } - return getListDataExchangesMethod; - } - - private static volatile io.grpc.MethodDescriptor getListOrgDataExchangesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListOrgDataExchanges", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListOrgDataExchangesMethod() { - io.grpc.MethodDescriptor getListOrgDataExchangesMethod; - if ((getListOrgDataExchangesMethod = AnalyticsHubServiceGrpc.getListOrgDataExchangesMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getListOrgDataExchangesMethod = AnalyticsHubServiceGrpc.getListOrgDataExchangesMethod) == null) { - AnalyticsHubServiceGrpc.getListOrgDataExchangesMethod = getListOrgDataExchangesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOrgDataExchanges")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("ListOrgDataExchanges")) - .build(); - } - } - } - return getListOrgDataExchangesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDataExchangeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataExchange", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDataExchangeMethod() { - io.grpc.MethodDescriptor getGetDataExchangeMethod; - if ((getGetDataExchangeMethod = AnalyticsHubServiceGrpc.getGetDataExchangeMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getGetDataExchangeMethod = AnalyticsHubServiceGrpc.getGetDataExchangeMethod) == null) { - AnalyticsHubServiceGrpc.getGetDataExchangeMethod = getGetDataExchangeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataExchange")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("GetDataExchange")) - .build(); - } - } - } - return getGetDataExchangeMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateDataExchangeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDataExchange", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateDataExchangeMethod() { - io.grpc.MethodDescriptor getCreateDataExchangeMethod; - if ((getCreateDataExchangeMethod = AnalyticsHubServiceGrpc.getCreateDataExchangeMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getCreateDataExchangeMethod = AnalyticsHubServiceGrpc.getCreateDataExchangeMethod) == null) { - AnalyticsHubServiceGrpc.getCreateDataExchangeMethod = getCreateDataExchangeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataExchange")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("CreateDataExchange")) - .build(); - } - } - } - return getCreateDataExchangeMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateDataExchangeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDataExchange", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateDataExchangeMethod() { - io.grpc.MethodDescriptor getUpdateDataExchangeMethod; - if ((getUpdateDataExchangeMethod = AnalyticsHubServiceGrpc.getUpdateDataExchangeMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getUpdateDataExchangeMethod = AnalyticsHubServiceGrpc.getUpdateDataExchangeMethod) == null) { - AnalyticsHubServiceGrpc.getUpdateDataExchangeMethod = getUpdateDataExchangeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataExchange")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("UpdateDataExchange")) - .build(); - } - } - } - return getUpdateDataExchangeMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteDataExchangeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDataExchange", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteDataExchangeMethod() { - io.grpc.MethodDescriptor getDeleteDataExchangeMethod; - if ((getDeleteDataExchangeMethod = AnalyticsHubServiceGrpc.getDeleteDataExchangeMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getDeleteDataExchangeMethod = AnalyticsHubServiceGrpc.getDeleteDataExchangeMethod) == null) { - AnalyticsHubServiceGrpc.getDeleteDataExchangeMethod = getDeleteDataExchangeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataExchange")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("DeleteDataExchange")) - .build(); - } - } - } - return getDeleteDataExchangeMethod; - } - - private static volatile io.grpc.MethodDescriptor getListListingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListListings", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListListingsMethod() { - io.grpc.MethodDescriptor getListListingsMethod; - if ((getListListingsMethod = AnalyticsHubServiceGrpc.getListListingsMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getListListingsMethod = AnalyticsHubServiceGrpc.getListListingsMethod) == null) { - AnalyticsHubServiceGrpc.getListListingsMethod = getListListingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListListings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("ListListings")) - .build(); - } - } - } - return getListListingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetListingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetListing", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetListingMethod() { - io.grpc.MethodDescriptor getGetListingMethod; - if ((getGetListingMethod = AnalyticsHubServiceGrpc.getGetListingMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getGetListingMethod = AnalyticsHubServiceGrpc.getGetListingMethod) == null) { - AnalyticsHubServiceGrpc.getGetListingMethod = getGetListingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetListing")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("GetListing")) - .build(); - } - } - } - return getGetListingMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateListingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateListing", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateListingMethod() { - io.grpc.MethodDescriptor getCreateListingMethod; - if ((getCreateListingMethod = AnalyticsHubServiceGrpc.getCreateListingMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getCreateListingMethod = AnalyticsHubServiceGrpc.getCreateListingMethod) == null) { - AnalyticsHubServiceGrpc.getCreateListingMethod = getCreateListingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateListing")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("CreateListing")) - .build(); - } - } - } - return getCreateListingMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateListingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateListing", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateListingMethod() { - io.grpc.MethodDescriptor getUpdateListingMethod; - if ((getUpdateListingMethod = AnalyticsHubServiceGrpc.getUpdateListingMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getUpdateListingMethod = AnalyticsHubServiceGrpc.getUpdateListingMethod) == null) { - AnalyticsHubServiceGrpc.getUpdateListingMethod = getUpdateListingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateListing")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("UpdateListing")) - .build(); - } - } - } - return getUpdateListingMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteListingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteListing", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteListingMethod() { - io.grpc.MethodDescriptor getDeleteListingMethod; - if ((getDeleteListingMethod = AnalyticsHubServiceGrpc.getDeleteListingMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getDeleteListingMethod = AnalyticsHubServiceGrpc.getDeleteListingMethod) == null) { - AnalyticsHubServiceGrpc.getDeleteListingMethod = getDeleteListingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteListing")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("DeleteListing")) - .build(); - } - } - } - return getDeleteListingMethod; - } - - private static volatile io.grpc.MethodDescriptor getSubscribeListingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SubscribeListing", - requestType = com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.class, - responseType = com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSubscribeListingMethod() { - io.grpc.MethodDescriptor getSubscribeListingMethod; - if ((getSubscribeListingMethod = AnalyticsHubServiceGrpc.getSubscribeListingMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getSubscribeListingMethod = AnalyticsHubServiceGrpc.getSubscribeListingMethod) == null) { - AnalyticsHubServiceGrpc.getSubscribeListingMethod = getSubscribeListingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubscribeListing")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("SubscribeListing")) - .build(); - } - } - } - return getSubscribeListingMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { - io.grpc.MethodDescriptor getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = AnalyticsHubServiceGrpc.getGetIamPolicyMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getGetIamPolicyMethod = AnalyticsHubServiceGrpc.getGetIamPolicyMethod) == null) { - AnalyticsHubServiceGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { - io.grpc.MethodDescriptor getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = AnalyticsHubServiceGrpc.getSetIamPolicyMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getSetIamPolicyMethod = AnalyticsHubServiceGrpc.getSetIamPolicyMethod) == null) { - AnalyticsHubServiceGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = AnalyticsHubServiceGrpc.getTestIamPermissionsMethod) == null) { - synchronized (AnalyticsHubServiceGrpc.class) { - if ((getTestIamPermissionsMethod = AnalyticsHubServiceGrpc.getTestIamPermissionsMethod) == null) { - AnalyticsHubServiceGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsHubServiceMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AnalyticsHubServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsHubServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsHubServiceStub(channel, callOptions); - } - }; - return AnalyticsHubServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AnalyticsHubServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsHubServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsHubServiceBlockingStub(channel, callOptions); - } - }; - return AnalyticsHubServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AnalyticsHubServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsHubServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsHubServiceFutureStub(channel, callOptions); - } - }; - return AnalyticsHubServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * The `AnalyticsHubService` API facilitates data sharing within and across
-   * organizations. It allows data providers to publish listings that reference
-   * shared datasets. With Analytics Hub, users can discover and search for
-   * listings that they have access to. Subscribers can view and subscribe to
-   * listings. When you subscribe to a listing, Analytics Hub creates a linked
-   * dataset in your project.
-   * 
- */ - public static abstract class AnalyticsHubServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists all data exchanges in a given project and location.
-     * 
- */ - public void listDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDataExchangesMethod(), responseObserver); - } - - /** - *
-     * Lists all data exchanges from projects in a given organization and
-     * location.
-     * 
- */ - public void listOrgDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOrgDataExchangesMethod(), responseObserver); - } - - /** - *
-     * Gets the details of a data exchange.
-     * 
- */ - public void getDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDataExchangeMethod(), responseObserver); - } - - /** - *
-     * Creates a new data exchange.
-     * 
- */ - public void createDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDataExchangeMethod(), responseObserver); - } - - /** - *
-     * Updates an existing data exchange.
-     * 
- */ - public void updateDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDataExchangeMethod(), responseObserver); - } - - /** - *
-     * Deletes an existing data exchange.
-     * 
- */ - public void deleteDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDataExchangeMethod(), responseObserver); - } - - /** - *
-     * Lists all listings in a given project and location.
-     * 
- */ - public void listListings(com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListListingsMethod(), responseObserver); - } - - /** - *
-     * Gets the details of a listing.
-     * 
- */ - public void getListing(com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetListingMethod(), responseObserver); - } - - /** - *
-     * Creates a new listing.
-     * 
- */ - public void createListing(com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateListingMethod(), responseObserver); - } - - /** - *
-     * Updates an existing listing.
-     * 
- */ - public void updateListing(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateListingMethod(), responseObserver); - } - - /** - *
-     * Deletes a listing.
-     * 
- */ - public void deleteListing(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteListingMethod(), responseObserver); - } - - /** - *
-     * Subscribes to a listing.
-     * Currently, with Analytics Hub, you can create listings that
-     * reference only BigQuery datasets.
-     * Upon subscription to a listing for a BigQuery dataset, Analytics Hub
-     * creates a linked dataset in the subscriber's project.
-     * 
- */ - public void subscribeListing(com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubscribeListingMethod(), responseObserver); - } - - /** - *
-     * Gets the IAM policy.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Sets the IAM policy.
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Returns the permissions that a caller has.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListDataExchangesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse>( - this, METHODID_LIST_DATA_EXCHANGES))) - .addMethod( - getListOrgDataExchangesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse>( - this, METHODID_LIST_ORG_DATA_EXCHANGES))) - .addMethod( - getGetDataExchangeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>( - this, METHODID_GET_DATA_EXCHANGE))) - .addMethod( - getCreateDataExchangeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>( - this, METHODID_CREATE_DATA_EXCHANGE))) - .addMethod( - getUpdateDataExchangeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>( - this, METHODID_UPDATE_DATA_EXCHANGE))) - .addMethod( - getDeleteDataExchangeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_DATA_EXCHANGE))) - .addMethod( - getListListingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse>( - this, METHODID_LIST_LISTINGS))) - .addMethod( - getGetListingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing>( - this, METHODID_GET_LISTING))) - .addMethod( - getCreateListingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing>( - this, METHODID_CREATE_LISTING))) - .addMethod( - getUpdateListingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.Listing>( - this, METHODID_UPDATE_LISTING))) - .addMethod( - getDeleteListingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_LISTING))) - .addMethod( - getSubscribeListingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest, - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse>( - this, METHODID_SUBSCRIBE_LISTING))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .build(); - } - } - - /** - *
-   * The `AnalyticsHubService` API facilitates data sharing within and across
-   * organizations. It allows data providers to publish listings that reference
-   * shared datasets. With Analytics Hub, users can discover and search for
-   * listings that they have access to. Subscribers can view and subscribe to
-   * listings. When you subscribe to a listing, Analytics Hub creates a linked
-   * dataset in your project.
-   * 
- */ - public static final class AnalyticsHubServiceStub extends io.grpc.stub.AbstractAsyncStub { - private AnalyticsHubServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnalyticsHubServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsHubServiceStub(channel, callOptions); - } - - /** - *
-     * Lists all data exchanges in a given project and location.
-     * 
- */ - public void listDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDataExchangesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all data exchanges from projects in a given organization and
-     * location.
-     * 
- */ - public void listOrgDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListOrgDataExchangesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the details of a data exchange.
-     * 
- */ - public void getDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataExchangeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new data exchange.
-     * 
- */ - public void createDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDataExchangeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing data exchange.
-     * 
- */ - public void updateDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDataExchangeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an existing data exchange.
-     * 
- */ - public void deleteDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDataExchangeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all listings in a given project and location.
-     * 
- */ - public void listListings(com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListListingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the details of a listing.
-     * 
- */ - public void getListing(com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetListingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new listing.
-     * 
- */ - public void createListing(com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateListingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing listing.
-     * 
- */ - public void updateListing(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateListingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a listing.
-     * 
- */ - public void deleteListing(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteListingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Subscribes to a listing.
-     * Currently, with Analytics Hub, you can create listings that
-     * reference only BigQuery datasets.
-     * Upon subscription to a listing for a BigQuery dataset, Analytics Hub
-     * creates a linked dataset in the subscriber's project.
-     * 
- */ - public void subscribeListing(com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSubscribeListingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the IAM policy.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the IAM policy.
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the permissions that a caller has.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * The `AnalyticsHubService` API facilitates data sharing within and across
-   * organizations. It allows data providers to publish listings that reference
-   * shared datasets. With Analytics Hub, users can discover and search for
-   * listings that they have access to. Subscribers can view and subscribe to
-   * listings. When you subscribe to a listing, Analytics Hub creates a linked
-   * dataset in your project.
-   * 
- */ - public static final class AnalyticsHubServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private AnalyticsHubServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnalyticsHubServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsHubServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists all data exchanges in a given project and location.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse listDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDataExchangesMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all data exchanges from projects in a given organization and
-     * location.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse listOrgDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListOrgDataExchangesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the details of a data exchange.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataExchangeMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new data exchange.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange createDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDataExchangeMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing data exchange.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange updateDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDataExchangeMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an existing data exchange.
-     * 
- */ - public com.google.protobuf.Empty deleteDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDataExchangeMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all listings in a given project and location.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse listListings(com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListListingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the details of a listing.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing(com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetListingMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new listing.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing createListing(com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateListingMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing listing.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing updateListing(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateListingMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a listing.
-     * 
- */ - public com.google.protobuf.Empty deleteListing(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteListingMethod(), getCallOptions(), request); - } - - /** - *
-     * Subscribes to a listing.
-     * Currently, with Analytics Hub, you can create listings that
-     * reference only BigQuery datasets.
-     * Upon subscription to a listing for a BigQuery dataset, Analytics Hub
-     * creates a linked dataset in the subscriber's project.
-     * 
- */ - public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse subscribeListing(com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSubscribeListingMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the IAM policy.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the IAM policy.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the permissions that a caller has.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * The `AnalyticsHubService` API facilitates data sharing within and across
-   * organizations. It allows data providers to publish listings that reference
-   * shared datasets. With Analytics Hub, users can discover and search for
-   * listings that they have access to. Subscribers can view and subscribe to
-   * listings. When you subscribe to a listing, Analytics Hub creates a linked
-   * dataset in your project.
-   * 
- */ - public static final class AnalyticsHubServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private AnalyticsHubServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnalyticsHubServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsHubServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists all data exchanges in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDataExchanges( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDataExchangesMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all data exchanges from projects in a given organization and
-     * location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listOrgDataExchanges( - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListOrgDataExchangesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the details of a data exchange.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDataExchangeMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new data exchange.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDataExchangeMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing data exchange.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDataExchangeMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an existing data exchange.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteDataExchange( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDataExchangeMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all listings in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listListings( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListListingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the details of a listing.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getListing( - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetListingMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new listing.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createListing( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateListingMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing listing.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateListing( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateListingMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a listing.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteListing( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteListingMethod(), getCallOptions()), request); - } - - /** - *
-     * Subscribes to a listing.
-     * Currently, with Analytics Hub, you can create listings that
-     * reference only BigQuery datasets.
-     * Upon subscription to a listing for a BigQuery dataset, Analytics Hub
-     * creates a linked dataset in the subscriber's project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture subscribeListing( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSubscribeListingMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the IAM policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Sets the IAM policy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the permissions that a caller has.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_DATA_EXCHANGES = 0; - private static final int METHODID_LIST_ORG_DATA_EXCHANGES = 1; - private static final int METHODID_GET_DATA_EXCHANGE = 2; - private static final int METHODID_CREATE_DATA_EXCHANGE = 3; - private static final int METHODID_UPDATE_DATA_EXCHANGE = 4; - private static final int METHODID_DELETE_DATA_EXCHANGE = 5; - private static final int METHODID_LIST_LISTINGS = 6; - private static final int METHODID_GET_LISTING = 7; - private static final int METHODID_CREATE_LISTING = 8; - private static final int METHODID_UPDATE_LISTING = 9; - private static final int METHODID_DELETE_LISTING = 10; - private static final int METHODID_SUBSCRIBE_LISTING = 11; - private static final int METHODID_GET_IAM_POLICY = 12; - private static final int METHODID_SET_IAM_POLICY = 13; - private static final int METHODID_TEST_IAM_PERMISSIONS = 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 AnalyticsHubServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AnalyticsHubServiceImplBase 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_DATA_EXCHANGES: - serviceImpl.listDataExchanges((com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ORG_DATA_EXCHANGES: - serviceImpl.listOrgDataExchanges((com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DATA_EXCHANGE: - serviceImpl.getDataExchange((com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_DATA_EXCHANGE: - serviceImpl.createDataExchange((com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_DATA_EXCHANGE: - serviceImpl.updateDataExchange((com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_DATA_EXCHANGE: - serviceImpl.deleteDataExchange((com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_LISTINGS: - serviceImpl.listListings((com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_LISTING: - serviceImpl.getListing((com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_LISTING: - serviceImpl.createListing((com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_LISTING: - serviceImpl.updateListing((com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_LISTING: - serviceImpl.deleteListing((com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SUBSCRIBE_LISTING: - serviceImpl.subscribeListing((com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) 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 AnalyticsHubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AnalyticsHubServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AnalyticsHubService"); - } - } - - private static final class AnalyticsHubServiceFileDescriptorSupplier - extends AnalyticsHubServiceBaseDescriptorSupplier { - AnalyticsHubServiceFileDescriptorSupplier() {} - } - - private static final class AnalyticsHubServiceMethodDescriptorSupplier - extends AnalyticsHubServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AnalyticsHubServiceMethodDescriptorSupplier(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 (AnalyticsHubServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AnalyticsHubServiceFileDescriptorSupplier()) - .addMethod(getListDataExchangesMethod()) - .addMethod(getListOrgDataExchangesMethod()) - .addMethod(getGetDataExchangeMethod()) - .addMethod(getCreateDataExchangeMethod()) - .addMethod(getUpdateDataExchangeMethod()) - .addMethod(getDeleteDataExchangeMethod()) - .addMethod(getListListingsMethod()) - .addMethod(getGetListingMethod()) - .addMethod(getCreateListingMethod()) - .addMethod(getUpdateListingMethod()) - .addMethod(getDeleteListingMethod()) - .addMethod(getSubscribeListingMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java deleted file mode 100644 index 8c4f8f7..0000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java +++ /dev/null @@ -1,552 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto - -package com.google.cloud.bigquery.dataexchange.v1beta1; - -public final class DataExchangeProto { - private DataExchangeProto() {} - 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_bigquery_dataexchange_v1beta1_DataExchange_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_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/bigquery/dataexchange/v1b" + - "eta1/dataexchange.proto\022*google.cloud.bi" + - "gquery.dataexchange.v1beta1\032\034google/api/" + - "annotations.proto\032\027google/api/client.pro" + - "to\032\037google/api/field_behavior.proto\032\031goo" + - "gle/api/resource.proto\032\036google/iam/v1/ia" + - "m_policy.proto\032\032google/iam/v1/policy.pro" + - "to\032\033google/protobuf/empty.proto\032 google/" + - "protobuf/field_mask.proto\032\036google/protob" + - "uf/wrappers.proto\"\265\002\n\014DataExchange\022\021\n\004na" + - "me\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002" + - "\022\030\n\013description\030\003 \001(\tB\003\340A\001\022\034\n\017primary_co" + - "ntact\030\004 \001(\tB\003\340A\001\022\032\n\rdocumentation\030\005 \001(\tB" + - "\003\340A\001\022\032\n\rlisting_count\030\006 \001(\005B\003\340A\003\022\021\n\004icon" + - "\030\007 \001(\014B\003\340A\001:t\352Aq\n(analyticshub.googleapi" + - "s.com/DataExchange\022Eprojects/{project}/l" + - "ocations/{location}/dataExchanges/{data_" + - "exchange}\"?\n\014DataProvider\022\021\n\004name\030\001 \001(\tB" + - "\003\340A\001\022\034\n\017primary_contact\030\002 \001(\tB\003\340A\001\"<\n\tPu" + - "blisher\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\034\n\017primary_co" + - "ntact\030\002 \001(\tB\003\340A\001\"O\n\033DestinationDatasetRe" + - "ference\022\027\n\ndataset_id\030\001 \001(\tB\003\340A\002\022\027\n\nproj" + - "ect_id\030\002 \001(\tB\003\340A\002\"\226\003\n\022DestinationDataset" + - "\022g\n\021dataset_reference\030\001 \001(\0132G.google.clo" + - "ud.bigquery.dataexchange.v1beta1.Destina" + - "tionDatasetReferenceB\003\340A\002\0228\n\rfriendly_na" + - "me\030\002 \001(\0132\034.google.protobuf.StringValueB\003" + - "\340A\001\0226\n\013description\030\003 \001(\0132\034.google.protob" + - "uf.StringValueB\003\340A\001\022_\n\006labels\030\004 \003(\0132J.go" + - "ogle.cloud.bigquery.dataexchange.v1beta1" + - ".DestinationDataset.LabelsEntryB\003\340A\001\022\025\n\010" + - "location\030\005 \001(\tB\003\340A\002\032-\n\013LabelsEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\267\013\n\007Listing\022j" + - "\n\020bigquery_dataset\030\006 \001(\0132I.google.cloud." + - "bigquery.dataexchange.v1beta1.Listing.Bi" + - "gQueryDatasetSourceB\003\340A\002H\000\022\021\n\004name\030\001 \001(\t" + - "B\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\030\n\013desc" + - "ription\030\003 \001(\tB\003\340A\001\022\034\n\017primary_contact\030\004 " + - "\001(\tB\003\340A\001\022\032\n\rdocumentation\030\005 \001(\tB\003\340A\001\022M\n\005" + - "state\030\007 \001(\01629.google.cloud.bigquery.data" + - "exchange.v1beta1.Listing.StateB\003\340A\003\022\021\n\004i" + - "con\030\010 \001(\014B\003\340A\001\022T\n\rdata_provider\030\t \001(\01328." + - "google.cloud.bigquery.dataexchange.v1bet" + - "a1.DataProviderB\003\340A\001\022U\n\ncategories\030\n \003(\016" + - "2<.google.cloud.bigquery.dataexchange.v1" + - "beta1.Listing.CategoryB\003\340A\001\022M\n\tpublisher" + - "\030\013 \001(\01325.google.cloud.bigquery.dataexcha" + - "nge.v1beta1.PublisherB\003\340A\001\022\033\n\016request_ac" + - "cess\030\014 \001(\tB\003\340A\001\032N\n\025BigQueryDatasetSource" + - "\0225\n\007dataset\030\001 \001(\tB$\372A!\n\037bigquery.googlea" + - "pis.com/Dataset\"*\n\005State\022\025\n\021STATE_UNSPEC" + - "IFIED\020\000\022\n\n\006ACTIVE\020\001\"\267\004\n\010Category\022\030\n\024CATE" + - "GORY_UNSPECIFIED\020\000\022\023\n\017CATEGORY_OTHERS\020\001\022" + - "&\n\"CATEGORY_ADVERTISING_AND_MARKETING\020\002\022" + - "\025\n\021CATEGORY_COMMERCE\020\003\022$\n CATEGORY_CLIMA" + - "TE_AND_ENVIRONMENT\020\004\022\031\n\025CATEGORY_DEMOGRA" + - "PHICS\020\005\022\026\n\022CATEGORY_ECONOMICS\020\006\022\026\n\022CATEG" + - "ORY_EDUCATION\020\007\022\023\n\017CATEGORY_ENERGY\020\010\022\026\n\022" + - "CATEGORY_FINANCIAL\020\t\022\023\n\017CATEGORY_GAMING\020" + - "\n\022\027\n\023CATEGORY_GEOSPATIAL\020\013\022(\n$CATEGORY_H" + - "EALTHCARE_AND_LIFE_SCIENCE\020\014\022\022\n\016CATEGORY" + - "_MEDIA\020\r\022\032\n\026CATEGORY_PUBLIC_SECTOR\020\016\022\023\n\017" + - "CATEGORY_RETAIL\020\017\022\023\n\017CATEGORY_SPORTS\020\020\022!" + - "\n\035CATEGORY_SCIENCE_AND_RESEARCH\020\021\022)\n%CAT" + - "EGORY_TRANSPORTATION_AND_LOGISTICS\020\022\022\037\n\033" + - "CATEGORY_TRAVEL_AND_TOURISM\020\023:\202\001\352A\177\n#ana" + - "lyticshub.googleapis.com/Listing\022Xprojec" + - "ts/{project}/locations/{location}/dataEx" + - "changes/{data_exchange}/listings/{listin" + - "g}B\010\n\006source\"|\n\030ListDataExchangesRequest" + - "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + - "leapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022" + - "\n\npage_token\030\003 \001(\t\"\206\001\n\031ListDataExchanges" + - "Response\022P\n\016data_exchanges\030\001 \003(\01328.googl" + - "e.cloud.bigquery.dataexchange.v1beta1.Da" + - "taExchange\022\027\n\017next_page_token\030\002 \001(\t\"_\n\033L" + - "istOrgDataExchangesRequest\022\031\n\014organizati" + - "on\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + - "_token\030\003 \001(\t\"\211\001\n\034ListOrgDataExchangesRes" + - "ponse\022P\n\016data_exchanges\030\001 \003(\01328.google.c" + - "loud.bigquery.dataexchange.v1beta1.DataE" + - "xchange\022\027\n\017next_page_token\030\002 \001(\t\"X\n\026GetD" + - "ataExchangeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*" + - "\n(analyticshub.googleapis.com/DataExchan" + - "ge\"\313\001\n\031CreateDataExchangeRequest\0229\n\006pare" + - "nt\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.c" + - "om/Location\022\035\n\020data_exchange_id\030\002 \001(\tB\003\340" + - "A\002\022T\n\rdata_exchange\030\003 \001(\01328.google.cloud" + - ".bigquery.dataexchange.v1beta1.DataExcha" + - "ngeB\003\340A\002\"\247\001\n\031UpdateDataExchangeRequest\0224" + - "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + - "eldMaskB\003\340A\002\022T\n\rdata_exchange\030\002 \001(\01328.go" + - "ogle.cloud.bigquery.dataexchange.v1beta1" + - ".DataExchangeB\003\340A\002\"[\n\031DeleteDataExchange" + - "Request\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analytics" + - "hub.googleapis.com/DataExchange\"~\n\023ListL" + - "istingsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(" + - "analyticshub.googleapis.com/DataExchange" + - "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" + - "v\n\024ListListingsResponse\022E\n\010listings\030\001 \003(" + - "\01323.google.cloud.bigquery.dataexchange.v" + - "1beta1.Listing\022\027\n\017next_page_token\030\002 \001(\t\"" + - "N\n\021GetListingRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372" + - "A%\n#analyticshub.googleapis.com/Listing\"" + - "\274\001\n\024CreateListingRequest\022@\n\006parent\030\001 \001(\t" + - "B0\340A\002\372A*\n(analyticshub.googleapis.com/Da" + - "taExchange\022\027\n\nlisting_id\030\002 \001(\tB\003\340A\002\022I\n\007l" + - "isting\030\003 \001(\01323.google.cloud.bigquery.dat" + - "aexchange.v1beta1.ListingB\003\340A\002\"\227\001\n\024Updat" + - "eListingRequest\0224\n\013update_mask\030\001 \001(\0132\032.g" + - "oogle.protobuf.FieldMaskB\003\340A\002\022I\n\007listing" + - "\030\002 \001(\01323.google.cloud.bigquery.dataexcha" + - "nge.v1beta1.ListingB\003\340A\002\"Q\n\024DeleteListin" + - "gRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#analytic" + - "shub.googleapis.com/Listing\"\302\001\n\027Subscrib" + - "eListingRequest\022]\n\023destination_dataset\030\003" + - " \001(\0132>.google.cloud.bigquery.dataexchang" + - "e.v1beta1.DestinationDatasetH\000\0229\n\004name\030\001" + - " \001(\tB+\340A\002\372A%\n#analyticshub.googleapis.co" + - "m/ListingB\r\n\013destination\"\032\n\030SubscribeLis" + - "tingResponse2\246\035\n\023AnalyticsHubService\022\351\001\n" + - "\021ListDataExchanges\022D.google.cloud.bigque" + - "ry.dataexchange.v1beta1.ListDataExchange" + - "sRequest\032E.google.cloud.bigquery.dataexc" + - "hange.v1beta1.ListDataExchangesResponse\"" + - "G\202\323\344\223\0028\0226/v1beta1/{parent=projects/*/loc" + - "ations/*}/dataExchanges\332A\006parent\022\203\002\n\024Lis" + - "tOrgDataExchanges\022G.google.cloud.bigquer" + - "y.dataexchange.v1beta1.ListOrgDataExchan" + - "gesRequest\032H.google.cloud.bigquery.datae" + - "xchange.v1beta1.ListOrgDataExchangesResp" + - "onse\"X\202\323\344\223\002C\022A/v1beta1/{organization=org" + - "anizations/*/locations/*}/dataExchanges\332" + - "A\014organization\022\326\001\n\017GetDataExchange\022B.goo" + - "gle.cloud.bigquery.dataexchange.v1beta1." + - "GetDataExchangeRequest\0328.google.cloud.bi" + - "gquery.dataexchange.v1beta1.DataExchange" + - "\"E\202\323\344\223\0028\0226/v1beta1/{name=projects/*/loca" + - "tions/*/dataExchanges/*}\332A\004name\022\373\001\n\022Crea" + - "teDataExchange\022E.google.cloud.bigquery.d" + - "ataexchange.v1beta1.CreateDataExchangeRe" + - "quest\0328.google.cloud.bigquery.dataexchan" + - "ge.v1beta1.DataExchange\"d\202\323\344\223\002G\"6/v1beta" + - "1/{parent=projects/*/locations/*}/dataEx" + - "changes:\rdata_exchange\332A\024parent,data_exc" + - "hange\022\216\002\n\022UpdateDataExchange\022E.google.cl" + - "oud.bigquery.dataexchange.v1beta1.Update" + - "DataExchangeRequest\0328.google.cloud.bigqu" + - "ery.dataexchange.v1beta1.DataExchange\"w\202" + - "\323\344\223\002U2D/v1beta1/{data_exchange.name=proj" + - "ects/*/locations/*/dataExchanges/*}:\rdat" + - "a_exchange\332A\031data_exchange,update_mask\022\272" + - "\001\n\022DeleteDataExchange\022E.google.cloud.big" + - "query.dataexchange.v1beta1.DeleteDataExc" + - "hangeRequest\032\026.google.protobuf.Empty\"E\202\323" + - "\344\223\0028*6/v1beta1/{name=projects/*/location" + - "s/*/dataExchanges/*}\332A\004name\022\345\001\n\014ListList" + - "ings\022?.google.cloud.bigquery.dataexchang" + - "e.v1beta1.ListListingsRequest\032@.google.c" + - "loud.bigquery.dataexchange.v1beta1.ListL" + - "istingsResponse\"R\202\323\344\223\002C\022A/v1beta1/{paren" + - "t=projects/*/locations/*/dataExchanges/*" + - "}/listings\332A\006parent\022\322\001\n\nGetListing\022=.goo" + - "gle.cloud.bigquery.dataexchange.v1beta1." + - "GetListingRequest\0323.google.cloud.bigquer" + - "y.dataexchange.v1beta1.Listing\"P\202\323\344\223\002C\022A" + - "/v1beta1/{name=projects/*/locations/*/da" + - "taExchanges/*/listings/*}\332A\004name\022\353\001\n\rCre" + - "ateListing\022@.google.cloud.bigquery.datae" + - "xchange.v1beta1.CreateListingRequest\0323.g" + - "oogle.cloud.bigquery.dataexchange.v1beta" + - "1.Listing\"c\202\323\344\223\002L\"A/v1beta1/{parent=proj" + - "ects/*/locations/*/dataExchanges/*}/list" + - "ings:\007listing\332A\016parent,listing\022\370\001\n\rUpdat" + - "eListing\022@.google.cloud.bigquery.dataexc" + - "hange.v1beta1.UpdateListingRequest\0323.goo" + - "gle.cloud.bigquery.dataexchange.v1beta1." + - "Listing\"p\202\323\344\223\002T2I/v1beta1/{listing.name=" + - "projects/*/locations/*/dataExchanges/*/l" + - "istings/*}:\007listing\332A\023listing,update_mas" + - "k\022\273\001\n\rDeleteListing\022@.google.cloud.bigqu" + - "ery.dataexchange.v1beta1.DeleteListingRe" + - "quest\032\026.google.protobuf.Empty\"P\202\323\344\223\002C*A/" + - "v1beta1/{name=projects/*/locations/*/dat" + - "aExchanges/*/listings/*}\332A\004name\022\374\001\n\020Subs" + - "cribeListing\022C.google.cloud.bigquery.dat" + - "aexchange.v1beta1.SubscribeListingReques" + - "t\032D.google.cloud.bigquery.dataexchange.v" + - "1beta1.SubscribeListingResponse\"]\202\323\344\223\002P\"" + - "K/v1beta1/{name=projects/*/locations/*/d" + - "ataExchanges/*/listings/*}:subscribe:\001*\332" + - "A\004name\022\370\001\n\014GetIamPolicy\022\".google.iam.v1." + - "GetIamPolicyRequest\032\025.google.iam.v1.Poli" + - "cy\"\254\001\202\323\344\223\002\245\001\"G/v1beta1/{resource=project" + - "s/*/locations/*/dataExchanges/*}:getIamP" + - "olicy:\001*ZW\"R/v1beta1/{resource=projects/" + - "*/locations/*/dataExchanges/*/listings/*" + - "}:getIamPolicy:\001*\022\370\001\n\014SetIamPolicy\022\".goo" + - "gle.iam.v1.SetIamPolicyRequest\032\025.google." + - "iam.v1.Policy\"\254\001\202\323\344\223\002\245\001\"G/v1beta1/{resou" + - "rce=projects/*/locations/*/dataExchanges" + - "/*}:setIamPolicy:\001*ZW\"R/v1beta1/{resourc" + - "e=projects/*/locations/*/dataExchanges/*" + - "/listings/*}:setIamPolicy:\001*\022\244\002\n\022TestIam" + - "Permissions\022(.google.iam.v1.TestIamPermi" + - "ssionsRequest\032).google.iam.v1.TestIamPer" + - "missionsResponse\"\270\001\202\323\344\223\002\261\001\"M/v1beta1/{re" + - "source=projects/*/locations/*/dataExchan" + - "ges/*}:testIamPermissions:\001*Z]\"X/v1beta1" + - "/{resource=projects/*/locations/*/dataEx" + - "changes/*/listings/*}:testIamPermissions" + - ":\001*\032x\312A\033analyticshub.googleapis.com\322AWht" + - "tps://www.googleapis.com/auth/bigquery,h" + - "ttps://www.googleapis.com/auth/cloud-pla" + - "tformB\363\002\n.com.google.cloud.bigquery.data" + - "exchange.v1beta1B\021DataExchangeProtoP\001ZVg" + - "oogle.golang.org/genproto/googleapis/clo" + - "ud/bigquery/dataexchange/v1beta1;dataexc" + - "hange\252\002*Google.Cloud.BigQuery.DataExchan" + - "ge.V1Beta1\312\002*Google\\Cloud\\BigQuery\\DataE" + - "xchange\\V1beta1\352\002.Google::Cloud::Bigquer" + - "y::DataExchange::V1beta1\352AH\n\037bigquery.go" + - "ogleapis.com/Dataset\022%projects/{project}" + - "/datasets/{dataset}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "PrimaryContact", "Documentation", "ListingCount", "Icon", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor, - new java.lang.String[] { "Name", "PrimaryContact", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor, - new java.lang.String[] { "Name", "PrimaryContact", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor, - new java.lang.String[] { "DatasetId", "ProjectId", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor, - new java.lang.String[] { "DatasetReference", "FriendlyName", "Description", "Labels", "Location", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_descriptor = - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor, - new java.lang.String[] { "BigqueryDataset", "Name", "DisplayName", "Description", "PrimaryContact", "Documentation", "State", "Icon", "DataProvider", "Categories", "Publisher", "RequestAccess", "Source", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor = - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor, - new java.lang.String[] { "Dataset", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor, - new java.lang.String[] { "DataExchanges", "NextPageToken", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor, - new java.lang.String[] { "Organization", "PageSize", "PageToken", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor, - new java.lang.String[] { "DataExchanges", "NextPageToken", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor, - new java.lang.String[] { "Parent", "DataExchangeId", "DataExchange", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor, - new java.lang.String[] { "UpdateMask", "DataExchange", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor, - new java.lang.String[] { "Listings", "NextPageToken", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor, - new java.lang.String[] { "Parent", "ListingId", "Listing", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor, - new java.lang.String[] { "UpdateMask", "Listing", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor, - new java.lang.String[] { "DestinationDataset", "Name", "Destination", }); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java deleted file mode 100644 index d3b0545..0000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto - -package com.google.cloud.bigquery.dataexchange.v1beta1; - -public interface DeleteDataExchangeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The full name of the data exchange resource that you want to delete.
-   * For example, `projects/myproject/locations/US/dataExchanges/123`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The full name of the data exchange resource that you want to delete.
-   * For example, `projects/myproject/locations/US/dataExchanges/123`.
-   * 
- * - * 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/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequestOrBuilder.java deleted file mode 100644 index 6b0c8b0..0000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto - -package com.google.cloud.bigquery.dataexchange.v1beta1; - -public interface DeleteListingRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the listing to delete.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the listing to delete.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
-   * 
- * - * 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/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java deleted file mode 100644 index 64ebb89..0000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto - -package com.google.cloud.bigquery.dataexchange.v1beta1; - -public interface GetDataExchangeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the data exchange.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the data exchange.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
-   * 
- * - * 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/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequestOrBuilder.java deleted file mode 100644 index db3b624..0000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto - -package com.google.cloud.bigquery.dataexchange.v1beta1; - -public interface GetListingRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the listing.
-   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
-   * 
- * - * 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/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponseOrBuilder.java deleted file mode 100644 index bd2510d..0000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto - -package com.google.cloud.bigquery.dataexchange.v1beta1; - -public interface SubscribeListingResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.java index 9e1d0fc..3b220bb 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Message for creating a data exchange.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest} */ -public final class CreateDataExchangeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateDataExchangeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) CreateDataExchangeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateDataExchangeRequest.newBuilder() to construct. private CreateDataExchangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateDataExchangeRequest() { parent_ = ""; dataExchangeId_ = ""; @@ -26,16 +44,15 @@ private CreateDataExchangeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateDataExchangeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateDataExchangeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,44 @@ private CreateDataExchangeRequest( 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(); - dataExchangeId_ = s; - break; - } - case 26: { - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder subBuilder = null; - if (dataExchange_ != null) { - subBuilder = dataExchange_.toBuilder(); + parent_ = s; + break; } - dataExchange_ = input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataExchange_); - dataExchange_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + dataExchangeId_ = s; + break; } + case 26: + { + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder subBuilder = null; + if (dataExchange_ != null) { + subBuilder = dataExchange_.toBuilder(); + } + dataExchange_ = + input.readMessage( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataExchange_); + dataExchange_ = 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 +116,42 @@ private CreateDataExchangeRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource path of the data exchange.
    * e.g. `projects/myproject/locations/US`.
    * 
* - * 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 +160,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource path of the data exchange.
    * e.g. `projects/myproject/locations/US`.
    * 
* - * 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,6 +196,8 @@ public java.lang.String getParent() { public static final int DATA_EXCHANGE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object dataExchangeId_; /** + * + * *
    * Required. The ID of the data exchange.
    * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -173,6 +207,7 @@ public java.lang.String getParent() {
    * 
* * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataExchangeId. */ @java.lang.Override @@ -181,14 +216,15 @@ public java.lang.String getDataExchangeId() { 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(); dataExchangeId_ = s; return s; } } /** + * + * *
    * Required. The ID of the data exchange.
    * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -198,16 +234,15 @@ public java.lang.String getDataExchangeId() {
    * 
* * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataExchangeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDataExchangeIdBytes() { + public com.google.protobuf.ByteString getDataExchangeIdBytes() { java.lang.Object ref = dataExchangeId_; 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); dataExchangeId_ = b; return b; } else { @@ -218,11 +253,16 @@ public java.lang.String getDataExchangeId() { public static final int DATA_EXCHANGE_FIELD_NUMBER = 3; private com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange dataExchange_; /** + * + * *
    * Required. The data exchange to create.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataExchange field is set. */ @java.lang.Override @@ -230,30 +270,43 @@ public boolean hasDataExchange() { return dataExchange_ != null; } /** + * + * *
    * Required. The data exchange to create.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataExchange. */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange() { - return dataExchange_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() : dataExchange_; + return dataExchange_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() + : dataExchange_; } /** + * + * *
    * Required. The data exchange to create.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangeOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder + getDataExchangeOrBuilder() { return getDataExchange(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +318,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_); } @@ -292,8 +344,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataExchangeId_); } if (dataExchange_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDataExchange()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDataExchange()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,21 +354,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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest)) { + if (!(obj + instanceof com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest other = + (com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getDataExchangeId() - .equals(other.getDataExchangeId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getDataExchangeId().equals(other.getDataExchangeId())) return false; if (hasDataExchange() != other.hasDataExchange()) return false; if (hasDataExchange()) { - if (!getDataExchange() - .equals(other.getDataExchange())) return false; + if (!getDataExchange().equals(other.getDataExchange())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -344,134 +394,146 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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; } /** + * + * *
    * Message for creating a data exchange.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest} */ - 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.Builder + .class); } - // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.newBuilder() + // Construct using + // com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,19 +551,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest build() { - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest result = buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -510,7 +575,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest result = + new com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest(this); result.parent_ = parent_; result.dataExchangeId_ = dataExchangeId_; if (dataExchangeBuilder_ == null) { @@ -526,46 +592,52 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest)other); + if (other + instanceof com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) { + return mergeFrom( + (com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -596,7 +668,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,19 +682,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource path of the data exchange.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * 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; @@ -629,21 +707,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource path of the data exchange.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * 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 { @@ -651,57 +732,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource path of the data exchange.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * 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. The parent resource path of the data exchange.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * 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. The parent resource path of the data exchange.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * 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; @@ -709,6 +803,8 @@ public Builder setParentBytes( private java.lang.Object dataExchangeId_ = ""; /** + * + * *
      * Required. The ID of the data exchange.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -718,13 +814,13 @@ public Builder setParentBytes(
      * 
* * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataExchangeId. */ public java.lang.String getDataExchangeId() { java.lang.Object ref = dataExchangeId_; 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(); dataExchangeId_ = s; return s; @@ -733,6 +829,8 @@ public java.lang.String getDataExchangeId() { } } /** + * + * *
      * Required. The ID of the data exchange.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -742,15 +840,14 @@ public java.lang.String getDataExchangeId() {
      * 
* * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataExchangeId. */ - public com.google.protobuf.ByteString - getDataExchangeIdBytes() { + public com.google.protobuf.ByteString getDataExchangeIdBytes() { java.lang.Object ref = dataExchangeId_; 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); dataExchangeId_ = b; return b; } else { @@ -758,6 +855,8 @@ public java.lang.String getDataExchangeId() { } } /** + * + * *
      * Required. The ID of the data exchange.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -767,20 +866,22 @@ public java.lang.String getDataExchangeId() {
      * 
* * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The dataExchangeId to set. * @return This builder for chaining. */ - public Builder setDataExchangeId( - java.lang.String value) { + public Builder setDataExchangeId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataExchangeId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the data exchange.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -790,15 +891,18 @@ public Builder setDataExchangeId(
      * 
* * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDataExchangeId() { - + dataExchangeId_ = getDefaultInstance().getDataExchangeId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the data exchange.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -808,16 +912,16 @@ public Builder clearDataExchangeId() {
      * 
* * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for dataExchangeId to set. * @return This builder for chaining. */ - public Builder setDataExchangeIdBytes( - com.google.protobuf.ByteString value) { + public Builder setDataExchangeIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataExchangeId_ = value; onChanged(); return this; @@ -825,41 +929,61 @@ public Builder setDataExchangeIdBytes( private com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange dataExchange_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> dataExchangeBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> + dataExchangeBuilder_; /** + * + * *
      * Required. The data exchange to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataExchange field is set. */ public boolean hasDataExchange() { return dataExchangeBuilder_ != null || dataExchange_ != null; } /** + * + * *
      * Required. The data exchange to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataExchange. */ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange() { if (dataExchangeBuilder_ == null) { - return dataExchange_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() : dataExchange_; + return dataExchange_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() + : dataExchange_; } else { return dataExchangeBuilder_.getMessage(); } } /** + * + * *
      * Required. The data exchange to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { + public Builder setDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { if (dataExchangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -873,11 +997,15 @@ public Builder setDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.Da return this; } /** + * + * *
      * Required. The data exchange to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDataExchange( com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { @@ -891,17 +1019,24 @@ public Builder setDataExchange( return this; } /** + * + * *
      * Required. The data exchange to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { + public Builder mergeDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { if (dataExchangeBuilder_ == null) { if (dataExchange_ != null) { dataExchange_ = - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.newBuilder(dataExchange_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.newBuilder(dataExchange_) + .mergeFrom(value) + .buildPartial(); } else { dataExchange_ = value; } @@ -913,11 +1048,15 @@ public Builder mergeDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1. return this; } /** + * + * *
      * Required. The data exchange to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDataExchange() { if (dataExchangeBuilder_ == null) { @@ -931,55 +1070,73 @@ public Builder clearDataExchange() { return this; } /** + * + * *
      * Required. The data exchange to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder getDataExchangeBuilder() { - + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder + getDataExchangeBuilder() { + onChanged(); return getDataExchangeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The data exchange to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangeOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder + getDataExchangeOrBuilder() { if (dataExchangeBuilder_ != null) { return dataExchangeBuilder_.getMessageOrBuilder(); } else { - return dataExchange_ == null ? - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() : dataExchange_; + return dataExchange_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() + : dataExchange_; } } /** + * + * *
      * Required. The data exchange to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> getDataExchangeFieldBuilder() { if (dataExchangeBuilder_ == null) { - dataExchangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>( - getDataExchange(), - getParentForChildren(), - isClean()); + dataExchangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>( + getDataExchange(), getParentForChildren(), isClean()); dataExchange_ = null; } return dataExchangeBuilder_; } + @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); } @@ -989,30 +1146,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDataExchangeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDataExchangeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDataExchangeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDataExchangeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1024,9 +1184,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java index e30c6f7..a1eb97b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface CreateDataExchangeRequestOrBuilder extends +public interface CreateDataExchangeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource path of the data exchange.
    * e.g. `projects/myproject/locations/US`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource path of the data exchange.
    * e.g. `projects/myproject/locations/US`.
    * 
* - * 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. The ID of the data exchange.
    * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -39,10 +66,13 @@ public interface CreateDataExchangeRequestOrBuilder extends
    * 
* * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The dataExchangeId. */ java.lang.String getDataExchangeId(); /** + * + * *
    * Required. The ID of the data exchange.
    * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -52,35 +82,49 @@ public interface CreateDataExchangeRequestOrBuilder extends
    * 
* * string data_exchange_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for dataExchangeId. */ - com.google.protobuf.ByteString - getDataExchangeIdBytes(); + com.google.protobuf.ByteString getDataExchangeIdBytes(); /** + * + * *
    * Required. The data exchange to create.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataExchange field is set. */ boolean hasDataExchange(); /** + * + * *
    * Required. The data exchange to create.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataExchange. */ com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange(); /** + * + * *
    * Required. The data exchange to create.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangeOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.java index a45095c..6b78071 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Message for creating a listing.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest} */ -public final class CreateListingRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateListingRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) CreateListingRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateListingRequest.newBuilder() to construct. private CreateListingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateListingRequest() { parent_ = ""; listingId_ = ""; @@ -26,16 +44,15 @@ private CreateListingRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateListingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateListingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,44 @@ private CreateListingRequest( 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(); - listingId_ = s; - break; - } - case 26: { - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder subBuilder = null; - if (listing_ != null) { - subBuilder = listing_.toBuilder(); + parent_ = s; + break; } - listing_ = input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(listing_); - listing_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + listingId_ = s; + break; } + case 26: + { + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder subBuilder = null; + if (listing_ != null) { + subBuilder = listing_.toBuilder(); + } + listing_ = + input.readMessage( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(listing_); + listing_ = 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 +116,42 @@ private CreateListingRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource path of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * 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 +160,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource path of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * 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,6 +196,8 @@ public java.lang.String getParent() { public static final int LISTING_ID_FIELD_NUMBER = 2; private volatile java.lang.Object listingId_; /** + * + * *
    * Required. The ID of the listing to create.
    * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -173,6 +207,7 @@ public java.lang.String getParent() {
    * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The listingId. */ @java.lang.Override @@ -181,14 +216,15 @@ public java.lang.String getListingId() { 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(); listingId_ = s; return s; } } /** + * + * *
    * Required. The ID of the listing to create.
    * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -198,16 +234,15 @@ public java.lang.String getListingId() {
    * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for listingId. */ @java.lang.Override - public com.google.protobuf.ByteString - getListingIdBytes() { + public com.google.protobuf.ByteString getListingIdBytes() { java.lang.Object ref = listingId_; 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); listingId_ = b; return b; } else { @@ -218,11 +253,16 @@ public java.lang.String getListingId() { public static final int LISTING_FIELD_NUMBER = 3; private com.google.cloud.bigquery.dataexchange.v1beta1.Listing listing_; /** + * + * *
    * Required. The listing to create.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the listing field is set. */ @java.lang.Override @@ -230,23 +270,34 @@ public boolean hasListing() { return listing_ != null; } /** + * + * *
    * Required. The listing to create.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The listing. */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing() { - return listing_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() : listing_; + return listing_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() + : listing_; } /** + * + * *
    * Required. The listing to create.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingOrBuilder() { @@ -254,6 +305,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListin } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +317,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_); } @@ -292,8 +343,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, listingId_); } if (listing_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getListing()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getListing()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,21 +353,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.bigquery.dataexchange.v1beta1.CreateListingRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest other = + (com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getListingId() - .equals(other.getListingId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getListingId().equals(other.getListingId())) return false; if (hasListing() != other.hasListing()) return false; if (hasListing()) { - if (!getListing() - .equals(other.getListing())) return false; + if (!getListing().equals(other.getListing())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -344,134 +392,145 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest 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.bigquery.dataexchange.v1beta1.CreateListingRequest 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.bigquery.dataexchange.v1beta1.CreateListingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest 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.bigquery.dataexchange.v1beta1.CreateListingRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest 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.bigquery.dataexchange.v1beta1.CreateListingRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest 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.bigquery.dataexchange.v1beta1.CreateListingRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest 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.bigquery.dataexchange.v1beta1.CreateListingRequest 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.bigquery.dataexchange.v1beta1.CreateListingRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest 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; } /** + * + * *
    * Message for creating a listing.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest} */ - 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.bigquery.dataexchange.v1beta1.CreateListingRequest) com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.newBuilder() + // Construct using + // com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,14 +548,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest + .getDefaultInstance(); } @java.lang.Override @@ -510,7 +571,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest build @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest result = + new com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest(this); result.parent_ = parent_; result.listingId_ = listingId_; if (listingBuilder_ == null) { @@ -526,46 +588,51 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest build 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.bigquery.dataexchange.v1beta1.CreateListingRequest) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -596,7 +663,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,19 +677,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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; @@ -629,21 +702,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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 { @@ -651,57 +727,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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; @@ -709,6 +798,8 @@ public Builder setParentBytes( private java.lang.Object listingId_ = ""; /** + * + * *
      * Required. The ID of the listing to create.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -718,13 +809,13 @@ public Builder setParentBytes(
      * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The listingId. */ public java.lang.String getListingId() { java.lang.Object ref = listingId_; 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(); listingId_ = s; return s; @@ -733,6 +824,8 @@ public java.lang.String getListingId() { } } /** + * + * *
      * Required. The ID of the listing to create.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -742,15 +835,14 @@ public java.lang.String getListingId() {
      * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for listingId. */ - public com.google.protobuf.ByteString - getListingIdBytes() { + public com.google.protobuf.ByteString getListingIdBytes() { java.lang.Object ref = listingId_; 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); listingId_ = b; return b; } else { @@ -758,6 +850,8 @@ public java.lang.String getListingId() { } } /** + * + * *
      * Required. The ID of the listing to create.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -767,20 +861,22 @@ public java.lang.String getListingId() {
      * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The listingId to set. * @return This builder for chaining. */ - public Builder setListingId( - java.lang.String value) { + public Builder setListingId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + listingId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the listing to create.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -790,15 +886,18 @@ public Builder setListingId(
      * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearListingId() { - + listingId_ = getDefaultInstance().getListingId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the listing to create.
      * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -808,16 +907,16 @@ public Builder clearListingId() {
      * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for listingId to set. * @return This builder for chaining. */ - public Builder setListingIdBytes( - com.google.protobuf.ByteString value) { + public Builder setListingIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + listingId_ = value; onChanged(); return this; @@ -825,39 +924,58 @@ public Builder setListingIdBytes( private com.google.cloud.bigquery.dataexchange.v1beta1.Listing listing_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> listingBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> + listingBuilder_; /** + * + * *
      * Required. The listing to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the listing field is set. */ public boolean hasListing() { return listingBuilder_ != null || listing_ != null; } /** + * + * *
      * Required. The listing to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The listing. */ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing() { if (listingBuilder_ == null) { - return listing_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() : listing_; + return listing_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() + : listing_; } else { return listingBuilder_.getMessage(); } } /** + * + * *
      * Required. The listing to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setListing(com.google.cloud.bigquery.dataexchange.v1beta1.Listing value) { if (listingBuilder_ == null) { @@ -873,11 +991,15 @@ public Builder setListing(com.google.cloud.bigquery.dataexchange.v1beta1.Listing return this; } /** + * + * *
      * Required. The listing to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setListing( com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder builderForValue) { @@ -891,17 +1013,23 @@ public Builder setListing( return this; } /** + * + * *
      * Required. The listing to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeListing(com.google.cloud.bigquery.dataexchange.v1beta1.Listing value) { if (listingBuilder_ == null) { if (listing_ != null) { listing_ = - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.newBuilder(listing_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.newBuilder(listing_) + .mergeFrom(value) + .buildPartial(); } else { listing_ = value; } @@ -913,11 +1041,15 @@ public Builder mergeListing(com.google.cloud.bigquery.dataexchange.v1beta1.Listi return this; } /** + * + * *
      * Required. The listing to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearListing() { if (listingBuilder_ == null) { @@ -931,55 +1063,71 @@ public Builder clearListing() { return this; } /** + * + * *
      * Required. The listing to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder getListingBuilder() { - + onChanged(); return getListingFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The listing to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingOrBuilder() { if (listingBuilder_ != null) { return listingBuilder_.getMessageOrBuilder(); } else { - return listing_ == null ? - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() : listing_; + return listing_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() + : listing_; } } /** + * + * *
      * Required. The listing to create.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> getListingFieldBuilder() { if (listingBuilder_ == null) { - listingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder>( - getListing(), - getParentForChildren(), - isClean()); + listingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder>( + getListing(), getParentForChildren(), isClean()); listing_ = null; } return listingBuilder_; } + @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); } @@ -989,30 +1137,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateListingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateListingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateListingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateListingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1024,9 +1174,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java index d7b783c..1fe9fd0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface CreateListingRequestOrBuilder extends +public interface CreateListingRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource path of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource path of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * 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. The ID of the listing to create.
    * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -39,10 +66,13 @@ public interface CreateListingRequestOrBuilder extends
    * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The listingId. */ java.lang.String getListingId(); /** + * + * *
    * Required. The ID of the listing to create.
    * Must contain only Unicode letters, numbers (0-9), underscores (_).
@@ -52,35 +82,49 @@ public interface CreateListingRequestOrBuilder extends
    * 
* * string listing_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for listingId. */ - com.google.protobuf.ByteString - getListingIdBytes(); + com.google.protobuf.ByteString getListingIdBytes(); /** + * + * *
    * Required. The listing to create.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the listing field is set. */ boolean hasListing(); /** + * + * *
    * Required. The listing to create.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The listing. */ com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing(); /** + * + * *
    * Required. The listing to create.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java similarity index 76% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java index b90e562..80b1f5b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * A data exchange is a container that lets you share data. Along with the
  * descriptive information about the data exchange, it contains listings that
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DataExchange}
  */
-public final class DataExchange extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DataExchange extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.DataExchange)
     DataExchangeOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DataExchange.newBuilder() to construct.
   private DataExchange(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DataExchange() {
     name_ = "";
     displayName_ = "";
@@ -32,16 +50,15 @@ private DataExchange() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DataExchange();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DataExchange(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,53 +77,58 @@ private DataExchange(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            displayName_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            description_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            primaryContact_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              displayName_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            documentation_ = s;
-            break;
-          }
-          case 48: {
+              description_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            listingCount_ = input.readInt32();
-            break;
-          }
-          case 58: {
+              primaryContact_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            icon_ = input.readBytes();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              documentation_ = s;
+              break;
+            }
+          case 48:
+            {
+              listingCount_ = input.readInt32();
+              break;
+            }
+          case 58:
+            {
+              icon_ = input.readBytes();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -114,35 +136,40 @@ private DataExchange(
     } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+        .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_fieldAccessorTable
+    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+        .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder.class);
+            com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class,
+            com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. The resource name of the data exchange.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -151,30 +178,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. The resource name of the data exchange.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* * 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 { @@ -185,6 +212,8 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. Human-readable display name of the data exchange. The display name must
    * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
@@ -194,6 +223,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -202,14 +232,15 @@ 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; } } /** + * + * *
    * Required. Human-readable display name of the data exchange. The display name must
    * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
@@ -219,16 +250,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -239,6 +269,8 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Optional. Description of the data exchange. The description must not contain Unicode
    * non-characters as well as C0 and C1 control codes except tabs (HT),
@@ -248,6 +280,7 @@ public java.lang.String getDisplayName() {
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -256,14 +289,15 @@ public java.lang.String getDescription() { 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(); description_ = s; return s; } } /** + * + * *
    * Optional. Description of the data exchange. The description must not contain Unicode
    * non-characters as well as C0 and C1 control codes except tabs (HT),
@@ -273,16 +307,15 @@ public java.lang.String getDescription() {
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -293,12 +326,15 @@ public java.lang.String getDescription() { public static final int PRIMARY_CONTACT_FIELD_NUMBER = 4; private volatile java.lang.Object primaryContact_; /** + * + * *
    * Optional. Email or URL of the primary point of contact of the data exchange.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The primaryContact. */ @java.lang.Override @@ -307,30 +343,30 @@ public java.lang.String getPrimaryContact() { 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(); primaryContact_ = s; return s; } } /** + * + * *
    * Optional. Email or URL of the primary point of contact of the data exchange.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for primaryContact. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrimaryContactBytes() { + public com.google.protobuf.ByteString getPrimaryContactBytes() { java.lang.Object ref = primaryContact_; 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); primaryContact_ = b; return b; } else { @@ -341,11 +377,14 @@ public java.lang.String getPrimaryContact() { public static final int DOCUMENTATION_FIELD_NUMBER = 5; private volatile java.lang.Object documentation_; /** + * + * *
    * Optional. Documentation describing the data exchange.
    * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The documentation. */ @java.lang.Override @@ -354,29 +393,29 @@ public java.lang.String getDocumentation() { 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(); documentation_ = s; return s; } } /** + * + * *
    * Optional. Documentation describing the data exchange.
    * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for documentation. */ @java.lang.Override - public com.google.protobuf.ByteString - getDocumentationBytes() { + public com.google.protobuf.ByteString getDocumentationBytes() { java.lang.Object ref = documentation_; 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); documentation_ = b; return b; } else { @@ -387,11 +426,14 @@ public java.lang.String getDocumentation() { public static final int LISTING_COUNT_FIELD_NUMBER = 6; private int listingCount_; /** + * + * *
    * Output only. Number of listings contained in the data exchange.
    * 
* * int32 listing_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The listingCount. */ @java.lang.Override @@ -402,6 +444,8 @@ public int getListingCount() { public static final int ICON_FIELD_NUMBER = 7; private com.google.protobuf.ByteString icon_; /** + * + * *
    * Optional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB
    * Expected image dimensions are 512x512 pixels, however the API only
@@ -411,6 +455,7 @@ public int getListingCount() {
    * 
* * bytes icon = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The icon. */ @java.lang.Override @@ -419,6 +464,7 @@ public com.google.protobuf.ByteString getIcon() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -430,8 +476,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_); } @@ -478,12 +523,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, documentation_); } if (listingCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, listingCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, listingCount_); } if (!icon_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, icon_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, icon_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -493,27 +536,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.bigquery.dataexchange.v1beta1.DataExchange)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange other = (com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getPrimaryContact() - .equals(other.getPrimaryContact())) return false; - if (!getDocumentation() - .equals(other.getDocumentation())) return false; - if (getListingCount() - != other.getListingCount()) return false; - if (!getIcon() - .equals(other.getIcon())) return false; + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange other = + (com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getPrimaryContact().equals(other.getPrimaryContact())) return false; + if (!getDocumentation().equals(other.getDocumentation())) return false; + if (getListingCount() != other.getListingCount()) return false; + if (!getIcon().equals(other.getIcon())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -545,96 +582,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange 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 data exchange is a container that lets you share data. Along with the
    * descriptive information about the data exchange, it contains listings that
@@ -643,21 +688,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DataExchange}
    */
-  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.bigquery.dataexchange.v1beta1.DataExchange)
       com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_fieldAccessorTable
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder.class);
+              com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.class,
+              com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.newBuilder()
@@ -665,16 +712,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();
@@ -696,9 +742,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor;
     }
 
     @java.lang.Override
@@ -717,7 +763,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange buildPartial() {
-      com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange result = new com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange(this);
+      com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange result =
+          new com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       result.description_ = description_;
@@ -733,38 +780,39 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange 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.bigquery.dataexchange.v1beta1.DataExchange) {
-        return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange)other);
+        return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -772,7 +820,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange other) {
-      if (other == com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -818,7 +867,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -830,19 +880,21 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* * 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; @@ -851,21 +903,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* * 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 { @@ -873,57 +926,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* * 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. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* * 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. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* * 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; @@ -931,6 +991,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. Human-readable display name of the data exchange. The display name must
      * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
@@ -940,13 +1002,13 @@ public Builder setNameBytes(
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -955,6 +1017,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Human-readable display name of the data exchange. The display name must
      * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
@@ -964,15 +1028,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -980,6 +1043,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Human-readable display name of the data exchange. The display name must
      * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
@@ -989,20 +1054,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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; } /** + * + * *
      * Required. Human-readable display name of the data exchange. The display name must
      * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
@@ -1012,15 +1079,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Required. Human-readable display name of the data exchange. The display name must
      * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
@@ -1030,16 +1100,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -1047,6 +1117,8 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Optional. Description of the data exchange. The description must not contain Unicode
      * non-characters as well as C0 and C1 control codes except tabs (HT),
@@ -1056,13 +1128,13 @@ public Builder setDisplayNameBytes(
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; @@ -1071,6 +1143,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. Description of the data exchange. The description must not contain Unicode
      * non-characters as well as C0 and C1 control codes except tabs (HT),
@@ -1080,15 +1154,14 @@ public java.lang.String getDescription() {
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -1096,6 +1169,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. Description of the data exchange. The description must not contain Unicode
      * non-characters as well as C0 and C1 control codes except tabs (HT),
@@ -1105,20 +1180,22 @@ public java.lang.String getDescription() {
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Description of the data exchange. The description must not contain Unicode
      * non-characters as well as C0 and C1 control codes except tabs (HT),
@@ -1128,15 +1205,18 @@ public Builder setDescription(
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. Description of the data exchange. The description must not contain Unicode
      * non-characters as well as C0 and C1 control codes except tabs (HT),
@@ -1146,16 +1226,16 @@ public Builder clearDescription() {
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1163,19 +1243,21 @@ public Builder setDescriptionBytes( private java.lang.Object primaryContact_ = ""; /** + * + * *
      * Optional. Email or URL of the primary point of contact of the data exchange.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The primaryContact. */ public java.lang.String getPrimaryContact() { java.lang.Object ref = primaryContact_; 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(); primaryContact_ = s; return s; @@ -1184,21 +1266,22 @@ public java.lang.String getPrimaryContact() { } } /** + * + * *
      * Optional. Email or URL of the primary point of contact of the data exchange.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for primaryContact. */ - public com.google.protobuf.ByteString - getPrimaryContactBytes() { + public com.google.protobuf.ByteString getPrimaryContactBytes() { java.lang.Object ref = primaryContact_; 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); primaryContact_ = b; return b; } else { @@ -1206,57 +1289,64 @@ public java.lang.String getPrimaryContact() { } } /** + * + * *
      * Optional. Email or URL of the primary point of contact of the data exchange.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The primaryContact to set. * @return This builder for chaining. */ - public Builder setPrimaryContact( - java.lang.String value) { + public Builder setPrimaryContact(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + primaryContact_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Email or URL of the primary point of contact of the data exchange.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPrimaryContact() { - + primaryContact_ = getDefaultInstance().getPrimaryContact(); onChanged(); return this; } /** + * + * *
      * Optional. Email or URL of the primary point of contact of the data exchange.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for primaryContact to set. * @return This builder for chaining. */ - public Builder setPrimaryContactBytes( - com.google.protobuf.ByteString value) { + public Builder setPrimaryContactBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryContact_ = value; onChanged(); return this; @@ -1264,18 +1354,20 @@ public Builder setPrimaryContactBytes( private java.lang.Object documentation_ = ""; /** + * + * *
      * Optional. Documentation describing the data exchange.
      * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The documentation. */ public java.lang.String getDocumentation() { java.lang.Object ref = documentation_; 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(); documentation_ = s; return s; @@ -1284,20 +1376,21 @@ public java.lang.String getDocumentation() { } } /** + * + * *
      * Optional. Documentation describing the data exchange.
      * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for documentation. */ - public com.google.protobuf.ByteString - getDocumentationBytes() { + public com.google.protobuf.ByteString getDocumentationBytes() { java.lang.Object ref = documentation_; 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); documentation_ = b; return b; } else { @@ -1305,66 +1398,76 @@ public java.lang.String getDocumentation() { } } /** + * + * *
      * Optional. Documentation describing the data exchange.
      * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The documentation to set. * @return This builder for chaining. */ - public Builder setDocumentation( - java.lang.String value) { + public Builder setDocumentation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + documentation_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Documentation describing the data exchange.
      * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDocumentation() { - + documentation_ = getDefaultInstance().getDocumentation(); onChanged(); return this; } /** + * + * *
      * Optional. Documentation describing the data exchange.
      * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for documentation to set. * @return This builder for chaining. */ - public Builder setDocumentationBytes( - com.google.protobuf.ByteString value) { + public Builder setDocumentationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentation_ = value; onChanged(); return this; } - private int listingCount_ ; + private int listingCount_; /** + * + * *
      * Output only. Number of listings contained in the data exchange.
      * 
* * int32 listing_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The listingCount. */ @java.lang.Override @@ -1372,30 +1475,36 @@ public int getListingCount() { return listingCount_; } /** + * + * *
      * Output only. Number of listings contained in the data exchange.
      * 
* * int32 listing_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The listingCount to set. * @return This builder for chaining. */ public Builder setListingCount(int value) { - + listingCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Number of listings contained in the data exchange.
      * 
* * int32 listing_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearListingCount() { - + listingCount_ = 0; onChanged(); return this; @@ -1403,6 +1512,8 @@ public Builder clearListingCount() { private com.google.protobuf.ByteString icon_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB
      * Expected image dimensions are 512x512 pixels, however the API only
@@ -1412,6 +1523,7 @@ public Builder clearListingCount() {
      * 
* * bytes icon = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The icon. */ @java.lang.Override @@ -1419,6 +1531,8 @@ public com.google.protobuf.ByteString getIcon() { return icon_; } /** + * + * *
      * Optional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB
      * Expected image dimensions are 512x512 pixels, however the API only
@@ -1428,19 +1542,22 @@ public com.google.protobuf.ByteString getIcon() {
      * 
* * bytes icon = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The icon to set. * @return This builder for chaining. */ public Builder setIcon(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + icon_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB
      * Expected image dimensions are 512x512 pixels, however the API only
@@ -1450,17 +1567,18 @@ public Builder setIcon(com.google.protobuf.ByteString value) {
      * 
* * bytes icon = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIcon() { - + icon_ = getDefaultInstance().getIcon(); 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); } @@ -1470,12 +1588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.DataExchange) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.DataExchange) private static final com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange(); } @@ -1484,16 +1602,16 @@ public static com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataExchange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DataExchange(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataExchange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DataExchange(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1508,6 +1626,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeName.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeName.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java similarity index 81% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java index d0318d1..fc1735b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java @@ -1,35 +1,58 @@ +/* + * 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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface DataExchangeOrBuilder extends +public interface DataExchangeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.DataExchange) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the data exchange.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the data exchange.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Human-readable display name of the data exchange. The display name must
    * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
@@ -39,10 +62,13 @@ public interface DataExchangeOrBuilder extends
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Human-readable display name of the data exchange. The display name must
    * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
@@ -52,12 +78,14 @@ public interface DataExchangeOrBuilder extends
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. Description of the data exchange. The description must not contain Unicode
    * non-characters as well as C0 and C1 control codes except tabs (HT),
@@ -67,10 +95,13 @@ public interface DataExchangeOrBuilder extends
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. Description of the data exchange. The description must not contain Unicode
    * non-characters as well as C0 and C1 control codes except tabs (HT),
@@ -80,64 +111,79 @@ public interface DataExchangeOrBuilder extends
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Optional. Email or URL of the primary point of contact of the data exchange.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The primaryContact. */ java.lang.String getPrimaryContact(); /** + * + * *
    * Optional. Email or URL of the primary point of contact of the data exchange.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for primaryContact. */ - com.google.protobuf.ByteString - getPrimaryContactBytes(); + com.google.protobuf.ByteString getPrimaryContactBytes(); /** + * + * *
    * Optional. Documentation describing the data exchange.
    * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The documentation. */ java.lang.String getDocumentation(); /** + * + * *
    * Optional. Documentation describing the data exchange.
    * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for documentation. */ - com.google.protobuf.ByteString - getDocumentationBytes(); + com.google.protobuf.ByteString getDocumentationBytes(); /** + * + * *
    * Output only. Number of listings contained in the data exchange.
    * 
* * int32 listing_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The listingCount. */ int getListingCount(); /** + * + * *
    * Optional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB
    * Expected image dimensions are 512x512 pixels, however the API only
@@ -147,6 +193,7 @@ public interface DataExchangeOrBuilder extends
    * 
* * bytes icon = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The icon. */ com.google.protobuf.ByteString getIcon(); diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java new file mode 100644 index 0000000..187c0d0 --- /dev/null +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java @@ -0,0 +1,610 @@ +/* + * 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/bigquery/dataexchange/v1beta1/dataexchange.proto + +package com.google.cloud.bigquery.dataexchange.v1beta1; + +public final class DataExchangeProto { + private DataExchangeProto() {} + + 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_bigquery_dataexchange_v1beta1_DataExchange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_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/bigquery/dataexchange/v1b" + + "eta1/dataexchange.proto\022*google.cloud.bi" + + "gquery.dataexchange.v1beta1\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032\036google/iam/v1/ia" + + "m_policy.proto\032\032google/iam/v1/policy.pro" + + "to\032\033google/protobuf/empty.proto\032 google/" + + "protobuf/field_mask.proto\032\036google/protob" + + "uf/wrappers.proto\"\265\002\n\014DataExchange\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002" + + "\022\030\n\013description\030\003 \001(\tB\003\340A\001\022\034\n\017primary_co" + + "ntact\030\004 \001(\tB\003\340A\001\022\032\n\rdocumentation\030\005 \001(\tB" + + "\003\340A\001\022\032\n\rlisting_count\030\006 \001(\005B\003\340A\003\022\021\n\004icon" + + "\030\007 \001(\014B\003\340A\001:t\352Aq\n(analyticshub.googleapi" + + "s.com/DataExchange\022Eprojects/{project}/l" + + "ocations/{location}/dataExchanges/{data_" + + "exchange}\"?\n\014DataProvider\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\001\022\034\n\017primary_contact\030\002 \001(\tB\003\340A\001\"<\n\tPu" + + "blisher\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\034\n\017primary_co" + + "ntact\030\002 \001(\tB\003\340A\001\"O\n\033DestinationDatasetRe" + + "ference\022\027\n\ndataset_id\030\001 \001(\tB\003\340A\002\022\027\n\nproj" + + "ect_id\030\002 \001(\tB\003\340A\002\"\226\003\n\022DestinationDataset" + + "\022g\n\021dataset_reference\030\001 \001(\0132G.google.clo" + + "ud.bigquery.dataexchange.v1beta1.Destina" + + "tionDatasetReferenceB\003\340A\002\0228\n\rfriendly_na" + + "me\030\002 \001(\0132\034.google.protobuf.StringValueB\003" + + "\340A\001\0226\n\013description\030\003 \001(\0132\034.google.protob" + + "uf.StringValueB\003\340A\001\022_\n\006labels\030\004 \003(\0132J.go" + + "ogle.cloud.bigquery.dataexchange.v1beta1" + + ".DestinationDataset.LabelsEntryB\003\340A\001\022\025\n\010" + + "location\030\005 \001(\tB\003\340A\002\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\267\013\n\007Listing\022j" + + "\n\020bigquery_dataset\030\006 \001(\0132I.google.cloud." + + "bigquery.dataexchange.v1beta1.Listing.Bi" + + "gQueryDatasetSourceB\003\340A\002H\000\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\030\n\013desc" + + "ription\030\003 \001(\tB\003\340A\001\022\034\n\017primary_contact\030\004 " + + "\001(\tB\003\340A\001\022\032\n\rdocumentation\030\005 \001(\tB\003\340A\001\022M\n\005" + + "state\030\007 \001(\01629.google.cloud.bigquery.data" + + "exchange.v1beta1.Listing.StateB\003\340A\003\022\021\n\004i" + + "con\030\010 \001(\014B\003\340A\001\022T\n\rdata_provider\030\t \001(\01328." + + "google.cloud.bigquery.dataexchange.v1bet" + + "a1.DataProviderB\003\340A\001\022U\n\ncategories\030\n \003(\016" + + "2<.google.cloud.bigquery.dataexchange.v1" + + "beta1.Listing.CategoryB\003\340A\001\022M\n\tpublisher" + + "\030\013 \001(\01325.google.cloud.bigquery.dataexcha" + + "nge.v1beta1.PublisherB\003\340A\001\022\033\n\016request_ac" + + "cess\030\014 \001(\tB\003\340A\001\032N\n\025BigQueryDatasetSource" + + "\0225\n\007dataset\030\001 \001(\tB$\372A!\n\037bigquery.googlea" + + "pis.com/Dataset\"*\n\005State\022\025\n\021STATE_UNSPEC" + + "IFIED\020\000\022\n\n\006ACTIVE\020\001\"\267\004\n\010Category\022\030\n\024CATE" + + "GORY_UNSPECIFIED\020\000\022\023\n\017CATEGORY_OTHERS\020\001\022" + + "&\n\"CATEGORY_ADVERTISING_AND_MARKETING\020\002\022" + + "\025\n\021CATEGORY_COMMERCE\020\003\022$\n CATEGORY_CLIMA" + + "TE_AND_ENVIRONMENT\020\004\022\031\n\025CATEGORY_DEMOGRA" + + "PHICS\020\005\022\026\n\022CATEGORY_ECONOMICS\020\006\022\026\n\022CATEG" + + "ORY_EDUCATION\020\007\022\023\n\017CATEGORY_ENERGY\020\010\022\026\n\022" + + "CATEGORY_FINANCIAL\020\t\022\023\n\017CATEGORY_GAMING\020" + + "\n\022\027\n\023CATEGORY_GEOSPATIAL\020\013\022(\n$CATEGORY_H" + + "EALTHCARE_AND_LIFE_SCIENCE\020\014\022\022\n\016CATEGORY" + + "_MEDIA\020\r\022\032\n\026CATEGORY_PUBLIC_SECTOR\020\016\022\023\n\017" + + "CATEGORY_RETAIL\020\017\022\023\n\017CATEGORY_SPORTS\020\020\022!" + + "\n\035CATEGORY_SCIENCE_AND_RESEARCH\020\021\022)\n%CAT" + + "EGORY_TRANSPORTATION_AND_LOGISTICS\020\022\022\037\n\033" + + "CATEGORY_TRAVEL_AND_TOURISM\020\023:\202\001\352A\177\n#ana" + + "lyticshub.googleapis.com/Listing\022Xprojec" + + "ts/{project}/locations/{location}/dataEx" + + "changes/{data_exchange}/listings/{listin" + + "g}B\010\n\006source\"|\n\030ListDataExchangesRequest" + + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + + "leapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\"\206\001\n\031ListDataExchanges" + + "Response\022P\n\016data_exchanges\030\001 \003(\01328.googl" + + "e.cloud.bigquery.dataexchange.v1beta1.Da" + + "taExchange\022\027\n\017next_page_token\030\002 \001(\t\"_\n\033L" + + "istOrgDataExchangesRequest\022\031\n\014organizati" + + "on\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\"\211\001\n\034ListOrgDataExchangesRes" + + "ponse\022P\n\016data_exchanges\030\001 \003(\01328.google.c" + + "loud.bigquery.dataexchange.v1beta1.DataE" + + "xchange\022\027\n\017next_page_token\030\002 \001(\t\"X\n\026GetD" + + "ataExchangeRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*" + + "\n(analyticshub.googleapis.com/DataExchan" + + "ge\"\313\001\n\031CreateDataExchangeRequest\0229\n\006pare" + + "nt\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.c" + + "om/Location\022\035\n\020data_exchange_id\030\002 \001(\tB\003\340" + + "A\002\022T\n\rdata_exchange\030\003 \001(\01328.google.cloud" + + ".bigquery.dataexchange.v1beta1.DataExcha" + + "ngeB\003\340A\002\"\247\001\n\031UpdateDataExchangeRequest\0224" + + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\002\022T\n\rdata_exchange\030\002 \001(\01328.go" + + "ogle.cloud.bigquery.dataexchange.v1beta1" + + ".DataExchangeB\003\340A\002\"[\n\031DeleteDataExchange" + + "Request\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analytics" + + "hub.googleapis.com/DataExchange\"~\n\023ListL" + + "istingsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(" + + "analyticshub.googleapis.com/DataExchange" + + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" + + "v\n\024ListListingsResponse\022E\n\010listings\030\001 \003(" + + "\01323.google.cloud.bigquery.dataexchange.v" + + "1beta1.Listing\022\027\n\017next_page_token\030\002 \001(\t\"" + + "N\n\021GetListingRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372" + + "A%\n#analyticshub.googleapis.com/Listing\"" + + "\274\001\n\024CreateListingRequest\022@\n\006parent\030\001 \001(\t" + + "B0\340A\002\372A*\n(analyticshub.googleapis.com/Da" + + "taExchange\022\027\n\nlisting_id\030\002 \001(\tB\003\340A\002\022I\n\007l" + + "isting\030\003 \001(\01323.google.cloud.bigquery.dat" + + "aexchange.v1beta1.ListingB\003\340A\002\"\227\001\n\024Updat" + + "eListingRequest\0224\n\013update_mask\030\001 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\003\340A\002\022I\n\007listing" + + "\030\002 \001(\01323.google.cloud.bigquery.dataexcha" + + "nge.v1beta1.ListingB\003\340A\002\"Q\n\024DeleteListin" + + "gRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#analytic" + + "shub.googleapis.com/Listing\"\302\001\n\027Subscrib" + + "eListingRequest\022]\n\023destination_dataset\030\003" + + " \001(\0132>.google.cloud.bigquery.dataexchang" + + "e.v1beta1.DestinationDatasetH\000\0229\n\004name\030\001" + + " \001(\tB+\340A\002\372A%\n#analyticshub.googleapis.co" + + "m/ListingB\r\n\013destination\"\032\n\030SubscribeLis" + + "tingResponse2\246\035\n\023AnalyticsHubService\022\351\001\n" + + "\021ListDataExchanges\022D.google.cloud.bigque" + + "ry.dataexchange.v1beta1.ListDataExchange" + + "sRequest\032E.google.cloud.bigquery.dataexc" + + "hange.v1beta1.ListDataExchangesResponse\"" + + "G\202\323\344\223\0028\0226/v1beta1/{parent=projects/*/loc" + + "ations/*}/dataExchanges\332A\006parent\022\203\002\n\024Lis" + + "tOrgDataExchanges\022G.google.cloud.bigquer" + + "y.dataexchange.v1beta1.ListOrgDataExchan" + + "gesRequest\032H.google.cloud.bigquery.datae" + + "xchange.v1beta1.ListOrgDataExchangesResp" + + "onse\"X\202\323\344\223\002C\022A/v1beta1/{organization=org" + + "anizations/*/locations/*}/dataExchanges\332" + + "A\014organization\022\326\001\n\017GetDataExchange\022B.goo" + + "gle.cloud.bigquery.dataexchange.v1beta1." + + "GetDataExchangeRequest\0328.google.cloud.bi" + + "gquery.dataexchange.v1beta1.DataExchange" + + "\"E\202\323\344\223\0028\0226/v1beta1/{name=projects/*/loca" + + "tions/*/dataExchanges/*}\332A\004name\022\373\001\n\022Crea" + + "teDataExchange\022E.google.cloud.bigquery.d" + + "ataexchange.v1beta1.CreateDataExchangeRe" + + "quest\0328.google.cloud.bigquery.dataexchan" + + "ge.v1beta1.DataExchange\"d\202\323\344\223\002G\"6/v1beta" + + "1/{parent=projects/*/locations/*}/dataEx" + + "changes:\rdata_exchange\332A\024parent,data_exc" + + "hange\022\216\002\n\022UpdateDataExchange\022E.google.cl" + + "oud.bigquery.dataexchange.v1beta1.Update" + + "DataExchangeRequest\0328.google.cloud.bigqu" + + "ery.dataexchange.v1beta1.DataExchange\"w\202" + + "\323\344\223\002U2D/v1beta1/{data_exchange.name=proj" + + "ects/*/locations/*/dataExchanges/*}:\rdat" + + "a_exchange\332A\031data_exchange,update_mask\022\272" + + "\001\n\022DeleteDataExchange\022E.google.cloud.big" + + "query.dataexchange.v1beta1.DeleteDataExc" + + "hangeRequest\032\026.google.protobuf.Empty\"E\202\323" + + "\344\223\0028*6/v1beta1/{name=projects/*/location" + + "s/*/dataExchanges/*}\332A\004name\022\345\001\n\014ListList" + + "ings\022?.google.cloud.bigquery.dataexchang" + + "e.v1beta1.ListListingsRequest\032@.google.c" + + "loud.bigquery.dataexchange.v1beta1.ListL" + + "istingsResponse\"R\202\323\344\223\002C\022A/v1beta1/{paren" + + "t=projects/*/locations/*/dataExchanges/*" + + "}/listings\332A\006parent\022\322\001\n\nGetListing\022=.goo" + + "gle.cloud.bigquery.dataexchange.v1beta1." + + "GetListingRequest\0323.google.cloud.bigquer" + + "y.dataexchange.v1beta1.Listing\"P\202\323\344\223\002C\022A" + + "/v1beta1/{name=projects/*/locations/*/da" + + "taExchanges/*/listings/*}\332A\004name\022\353\001\n\rCre" + + "ateListing\022@.google.cloud.bigquery.datae" + + "xchange.v1beta1.CreateListingRequest\0323.g" + + "oogle.cloud.bigquery.dataexchange.v1beta" + + "1.Listing\"c\202\323\344\223\002L\"A/v1beta1/{parent=proj" + + "ects/*/locations/*/dataExchanges/*}/list" + + "ings:\007listing\332A\016parent,listing\022\370\001\n\rUpdat" + + "eListing\022@.google.cloud.bigquery.dataexc" + + "hange.v1beta1.UpdateListingRequest\0323.goo" + + "gle.cloud.bigquery.dataexchange.v1beta1." + + "Listing\"p\202\323\344\223\002T2I/v1beta1/{listing.name=" + + "projects/*/locations/*/dataExchanges/*/l" + + "istings/*}:\007listing\332A\023listing,update_mas" + + "k\022\273\001\n\rDeleteListing\022@.google.cloud.bigqu" + + "ery.dataexchange.v1beta1.DeleteListingRe" + + "quest\032\026.google.protobuf.Empty\"P\202\323\344\223\002C*A/" + + "v1beta1/{name=projects/*/locations/*/dat" + + "aExchanges/*/listings/*}\332A\004name\022\374\001\n\020Subs" + + "cribeListing\022C.google.cloud.bigquery.dat" + + "aexchange.v1beta1.SubscribeListingReques" + + "t\032D.google.cloud.bigquery.dataexchange.v" + + "1beta1.SubscribeListingResponse\"]\202\323\344\223\002P\"" + + "K/v1beta1/{name=projects/*/locations/*/d" + + "ataExchanges/*/listings/*}:subscribe:\001*\332" + + "A\004name\022\370\001\n\014GetIamPolicy\022\".google.iam.v1." + + "GetIamPolicyRequest\032\025.google.iam.v1.Poli" + + "cy\"\254\001\202\323\344\223\002\245\001\"G/v1beta1/{resource=project" + + "s/*/locations/*/dataExchanges/*}:getIamP" + + "olicy:\001*ZW\"R/v1beta1/{resource=projects/" + + "*/locations/*/dataExchanges/*/listings/*" + + "}:getIamPolicy:\001*\022\370\001\n\014SetIamPolicy\022\".goo" + + "gle.iam.v1.SetIamPolicyRequest\032\025.google." + + "iam.v1.Policy\"\254\001\202\323\344\223\002\245\001\"G/v1beta1/{resou" + + "rce=projects/*/locations/*/dataExchanges" + + "/*}:setIamPolicy:\001*ZW\"R/v1beta1/{resourc" + + "e=projects/*/locations/*/dataExchanges/*" + + "/listings/*}:setIamPolicy:\001*\022\244\002\n\022TestIam" + + "Permissions\022(.google.iam.v1.TestIamPermi" + + "ssionsRequest\032).google.iam.v1.TestIamPer" + + "missionsResponse\"\270\001\202\323\344\223\002\261\001\"M/v1beta1/{re" + + "source=projects/*/locations/*/dataExchan" + + "ges/*}:testIamPermissions:\001*Z]\"X/v1beta1" + + "/{resource=projects/*/locations/*/dataEx" + + "changes/*/listings/*}:testIamPermissions" + + ":\001*\032x\312A\033analyticshub.googleapis.com\322AWht" + + "tps://www.googleapis.com/auth/bigquery,h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformB\363\002\n.com.google.cloud.bigquery.data" + + "exchange.v1beta1B\021DataExchangeProtoP\001ZVg" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/bigquery/dataexchange/v1beta1;dataexc" + + "hange\252\002*Google.Cloud.BigQuery.DataExchan" + + "ge.V1Beta1\312\002*Google\\Cloud\\BigQuery\\DataE" + + "xchange\\V1beta1\352\002.Google::Cloud::Bigquer" + + "y::DataExchange::V1beta1\352AH\n\037bigquery.go" + + "ogleapis.com/Dataset\022%projects/{project}" + + "/datasets/{dataset}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataExchange_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "PrimaryContact", + "Documentation", + "ListingCount", + "Icon", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor, + new java.lang.String[] { + "Name", "PrimaryContact", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor, + new java.lang.String[] { + "Name", "PrimaryContact", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor, + new java.lang.String[] { + "DatasetId", "ProjectId", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor, + new java.lang.String[] { + "DatasetReference", "FriendlyName", "Description", "Labels", "Location", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_descriptor = + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor, + new java.lang.String[] { + "BigqueryDataset", + "Name", + "DisplayName", + "Description", + "PrimaryContact", + "Documentation", + "State", + "Icon", + "DataProvider", + "Categories", + "Publisher", + "RequestAccess", + "Source", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor = + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor, + new java.lang.String[] { + "Dataset", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor, + new java.lang.String[] { + "DataExchanges", "NextPageToken", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor, + new java.lang.String[] { + "Organization", "PageSize", "PageToken", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor, + new java.lang.String[] { + "DataExchanges", "NextPageToken", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateDataExchangeRequest_descriptor, + new java.lang.String[] { + "Parent", "DataExchangeId", "DataExchange", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "DataExchange", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor, + new java.lang.String[] { + "Listings", "NextPageToken", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_CreateListingRequest_descriptor, + new java.lang.String[] { + "Parent", "ListingId", "Listing", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Listing", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor, + new java.lang.String[] { + "DestinationDataset", "Name", "Destination", + }); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor, + new java.lang.String[] {}); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.java index b2ebea5..2892529 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Contains details of the data provider.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DataProvider} */ -public final class DataProvider extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DataProvider extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.DataProvider) DataProviderOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DataProvider.newBuilder() to construct. private DataProvider(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DataProvider() { name_ = ""; primaryContact_ = ""; @@ -26,16 +44,15 @@ private DataProvider() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DataProvider(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DataProvider( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private DataProvider( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - primaryContact_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + primaryContact_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,39 @@ private DataProvider( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.class, com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.class, + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Optional. Name of the data provider.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ @java.lang.Override @@ -116,29 +140,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Optional. Name of the data provider.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -149,12 +173,15 @@ public java.lang.String getName() { public static final int PRIMARY_CONTACT_FIELD_NUMBER = 2; private volatile java.lang.Object primaryContact_; /** + * + * *
    * Optional. Email or URL of the data provider.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The primaryContact. */ @java.lang.Override @@ -163,30 +190,30 @@ public java.lang.String getPrimaryContact() { 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(); primaryContact_ = s; return s; } } /** + * + * *
    * Optional. Email or URL of the data provider.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for primaryContact. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrimaryContactBytes() { + public com.google.protobuf.ByteString getPrimaryContactBytes() { java.lang.Object ref = primaryContact_; 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); primaryContact_ = b; return b; } else { @@ -195,6 +222,7 @@ public java.lang.String getPrimaryContact() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +234,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_); } @@ -237,17 +264,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.bigquery.dataexchange.v1beta1.DataProvider)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider other = (com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider other = + (com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getPrimaryContact() - .equals(other.getPrimaryContact())) return false; + if (!getName().equals(other.getName())) return false; + if (!getPrimaryContact().equals(other.getPrimaryContact())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -269,117 +295,127 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider 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; } /** + * + * *
    * Contains details of the data provider.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DataProvider} */ - 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.bigquery.dataexchange.v1beta1.DataProvider) com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.class, com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.class, + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder.class); } // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.newBuilder() @@ -387,16 +423,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(); @@ -408,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DataProvider_descriptor; } @java.lang.Override @@ -429,7 +464,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider build() { @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider result = new com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider(this); + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider result = + new com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider(this); result.name_ = name_; result.primaryContact_ = primaryContact_; onBuilt(); @@ -440,38 +476,39 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider 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.bigquery.dataexchange.v1beta1.DataProvider) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider)other); + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider) other); } else { super.mergeFrom(other); return this; @@ -479,7 +516,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -507,7 +545,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -519,18 +558,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Optional. Name of the data provider.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -539,20 +580,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Optional. Name of the data provider.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -560,54 +602,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Optional. Name of the data provider.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. Name of the data provider.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Optional. Name of the data provider.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -615,19 +664,21 @@ public Builder setNameBytes( private java.lang.Object primaryContact_ = ""; /** + * + * *
      * Optional. Email or URL of the data provider.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The primaryContact. */ public java.lang.String getPrimaryContact() { java.lang.Object ref = primaryContact_; 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(); primaryContact_ = s; return s; @@ -636,21 +687,22 @@ public java.lang.String getPrimaryContact() { } } /** + * + * *
      * Optional. Email or URL of the data provider.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for primaryContact. */ - public com.google.protobuf.ByteString - getPrimaryContactBytes() { + public com.google.protobuf.ByteString getPrimaryContactBytes() { java.lang.Object ref = primaryContact_; 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); primaryContact_ = b; return b; } else { @@ -658,64 +710,71 @@ public java.lang.String getPrimaryContact() { } } /** + * + * *
      * Optional. Email or URL of the data provider.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The primaryContact to set. * @return This builder for chaining. */ - public Builder setPrimaryContact( - java.lang.String value) { + public Builder setPrimaryContact(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + primaryContact_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Email or URL of the data provider.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPrimaryContact() { - + primaryContact_ = getDefaultInstance().getPrimaryContact(); onChanged(); return this; } /** + * + * *
      * Optional. Email or URL of the data provider.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for primaryContact to set. * @return This builder for chaining. */ - public Builder setPrimaryContactBytes( - com.google.protobuf.ByteString value) { + public Builder setPrimaryContactBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryContact_ = 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); } @@ -725,12 +784,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.DataProvider) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.DataProvider) private static final com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider(); } @@ -739,16 +798,16 @@ public static com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataProvider parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DataProvider(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataProvider parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DataProvider(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -763,6 +822,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java index 5bd031a..d6c1e9d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java @@ -1,51 +1,77 @@ +/* + * 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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface DataProviderOrBuilder extends +public interface DataProviderOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.DataProvider) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Name of the data provider.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Optional. Name of the data provider.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. Email or URL of the data provider.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The primaryContact. */ java.lang.String getPrimaryContact(); /** + * + * *
    * Optional. Email or URL of the data provider.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for primaryContact. */ - com.google.protobuf.ByteString - getPrimaryContactBytes(); + com.google.protobuf.ByteString getPrimaryContactBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.java index 0a8a436..8e38bb5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Message for deleting a data exchange.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest} */ -public final class DeleteDataExchangeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteDataExchangeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) DeleteDataExchangeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteDataExchangeRequest.newBuilder() to construct. private DeleteDataExchangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteDataExchangeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteDataExchangeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteDataExchangeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteDataExchangeRequest( 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 DeleteDataExchangeRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The full name of the data exchange resource that you want to delete.
    * For example, `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * 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. The full name of the data exchange resource that you want to delete.
    * For example, `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * 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,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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest)) { + if (!(obj + instanceof com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest other = + (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) 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,134 +234,146 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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; } /** + * + * *
    * Message for deleting a data exchange.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest} */ - 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.Builder + .class); } - // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.newBuilder() + // Construct using + // com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,19 +383,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteDataExchangeRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest build() { - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest result = buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -364,7 +407,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest result = + new com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +418,52 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest 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.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest)other); + if (other + instanceof com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) { + return mergeFrom( + (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +487,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +501,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full name of the data exchange resource that you want to delete.
      * For example, `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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 +526,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the data exchange resource that you want to delete.
      * For example, `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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 +551,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full name of the data exchange resource that you want to delete.
      * For example, `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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. The full name of the data exchange resource that you want to delete.
      * For example, `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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. The full name of the data exchange resource that you want to delete.
      * For example, `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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,30 +631,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDataExchangeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteDataExchangeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDataExchangeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteDataExchangeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +669,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java new file mode 100644 index 0000000..33b8bbe --- /dev/null +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.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/bigquery/dataexchange/v1beta1/dataexchange.proto + +package com.google.cloud.bigquery.dataexchange.v1beta1; + +public interface DeleteDataExchangeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The full name of the data exchange resource that you want to delete.
+   * For example, `projects/myproject/locations/US/dataExchanges/123`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The full name of the data exchange resource that you want to delete.
+   * For example, `projects/myproject/locations/US/dataExchanges/123`.
+   * 
+ * + * + * 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/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.java index 5d7bd59..bb16cac 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Message for deleting a listing.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest} */ -public final class DeleteListingRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteListingRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) DeleteListingRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteListingRequest.newBuilder() to construct. private DeleteListingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteListingRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteListingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteListingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteListingRequest( 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 DeleteListingRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the listing to delete.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
    * 
* - * 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 listing to delete.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
    * 
* - * 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.bigquery.dataexchange.v1beta1.DeleteListingRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest other = + (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) 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,134 +233,145 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest 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.bigquery.dataexchange.v1beta1.DeleteListingRequest 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.bigquery.dataexchange.v1beta1.DeleteListingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest 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.bigquery.dataexchange.v1beta1.DeleteListingRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest 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.bigquery.dataexchange.v1beta1.DeleteListingRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest 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.bigquery.dataexchange.v1beta1.DeleteListingRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest 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.bigquery.dataexchange.v1beta1.DeleteListingRequest 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.bigquery.dataexchange.v1beta1.DeleteListingRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest 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; } /** + * + * *
    * Message for deleting a listing.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest} */ - 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.bigquery.dataexchange.v1beta1.DeleteListingRequest) com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.newBuilder() + // Construct using + // com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,14 +381,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DeleteListingRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest + .getDefaultInstance(); } @java.lang.Override @@ -364,7 +404,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest build @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest result = + new com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +415,51 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest build 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.bigquery.dataexchange.v1beta1.DeleteListingRequest) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +483,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +497,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the listing to delete.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * 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 +522,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the listing to delete.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * 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 +547,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the listing to delete.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * 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 listing to delete.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * 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 listing to delete.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * 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,30 +627,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteListingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteListingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteListingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteListingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +664,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequestOrBuilder.java new file mode 100644 index 0000000..ebc0b02 --- /dev/null +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequestOrBuilder.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/bigquery/dataexchange/v1beta1/dataexchange.proto + +package com.google.cloud.bigquery.dataexchange.v1beta1; + +public interface DeleteListingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the listing to delete.
+   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the listing to delete.
+   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * 
+ * + * + * 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/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.java index b7901ca..293f6b8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Defines the destination bigquery dataset.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset} */ -public final class DestinationDataset extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DestinationDataset extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) DestinationDatasetOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DestinationDataset.newBuilder() to construct. private DestinationDataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DestinationDataset() { location_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DestinationDataset(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DestinationDataset( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,71 +71,82 @@ private DestinationDataset( case 0: done = true; break; - case 10: { - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder subBuilder = null; - if (datasetReference_ != null) { - subBuilder = datasetReference_.toBuilder(); + case 10: + { + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder + subBuilder = null; + if (datasetReference_ != null) { + subBuilder = datasetReference_.toBuilder(); + } + datasetReference_ = + input.readMessage( + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(datasetReference_); + datasetReference_ = subBuilder.buildPartial(); + } + + break; } - datasetReference_ = input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(datasetReference_); - datasetReference_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (friendlyName_ != null) { + subBuilder = friendlyName_.toBuilder(); + } + friendlyName_ = + input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(friendlyName_); + friendlyName_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 18: { - com.google.protobuf.StringValue.Builder subBuilder = null; - if (friendlyName_ != null) { - subBuilder = friendlyName_.toBuilder(); + case 26: + { + com.google.protobuf.StringValue.Builder subBuilder = null; + if (description_ != null) { + subBuilder = description_.toBuilder(); + } + description_ = + input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(description_); + description_ = subBuilder.buildPartial(); + } + + break; } - friendlyName_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(friendlyName_); - friendlyName_ = 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 26: { - com.google.protobuf.StringValue.Builder subBuilder = null; - if (description_ != null) { - subBuilder = description_.toBuilder(); - } - description_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(description_); - description_ = subBuilder.buildPartial(); + location_ = s; + break; } - - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + 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(); - - location_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -126,46 +154,53 @@ private DestinationDataset( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.class, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.class, + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder.class); } public static final int DATASET_REFERENCE_FIELD_NUMBER = 1; - private com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference datasetReference_; + private com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + datasetReference_; /** + * + * *
    * Required. A reference that identifies the destination dataset.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the datasetReference field is set. */ @java.lang.Override @@ -173,37 +208,55 @@ public boolean hasDatasetReference() { return datasetReference_ != null; } /** + * + * *
    * Required. A reference that identifies the destination dataset.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The datasetReference. */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference getDatasetReference() { - return datasetReference_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.getDefaultInstance() : datasetReference_; + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + getDatasetReference() { + return datasetReference_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + .getDefaultInstance() + : datasetReference_; } /** + * + * *
    * Required. A reference that identifies the destination dataset.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder getDatasetReferenceOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder + getDatasetReferenceOrBuilder() { return getDatasetReference(); } public static final int FRIENDLY_NAME_FIELD_NUMBER = 2; private com.google.protobuf.StringValue friendlyName_; /** + * + * *
    * Optional. A descriptive name for the dataset.
    * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the friendlyName field is set. */ @java.lang.Override @@ -211,23 +264,32 @@ public boolean hasFriendlyName() { return friendlyName_ != null; } /** + * + * *
    * Optional. A descriptive name for the dataset.
    * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The friendlyName. */ @java.lang.Override public com.google.protobuf.StringValue getFriendlyName() { - return friendlyName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : friendlyName_; + return friendlyName_ == null + ? com.google.protobuf.StringValue.getDefaultInstance() + : friendlyName_; } /** + * + * *
    * Optional. A descriptive name for the dataset.
    * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getFriendlyNameOrBuilder() { @@ -237,11 +299,15 @@ public com.google.protobuf.StringValueOrBuilder getFriendlyNameOrBuilder() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private com.google.protobuf.StringValue description_; /** + * + * *
    * Optional. A user-friendly description of the dataset.
    * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the description field is set. */ @java.lang.Override @@ -249,23 +315,32 @@ public boolean hasDescription() { return description_ != null; } /** + * + * *
    * Optional. A user-friendly description of the dataset.
    * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The description. */ @java.lang.Override public com.google.protobuf.StringValue getDescription() { - return description_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : description_; + return description_ == null + ? com.google.protobuf.StringValue.getDefaultInstance() + : description_; } /** + * + * *
    * Optional. A user-friendly description of the dataset.
    * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getDescriptionOrBuilder() { @@ -273,24 +348,23 @@ public com.google.protobuf.StringValueOrBuilder getDescriptionOrBuilder() { } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_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.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_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_; } @@ -299,6 +373,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -309,22 +385,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. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -336,11 +412,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. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -352,16 +429,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. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -373,12 +450,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();
     }
@@ -388,6 +464,8 @@ public java.lang.String getLabelsOrThrow(
   public static final int LOCATION_FIELD_NUMBER = 5;
   private volatile java.lang.Object location_;
   /**
+   *
+   *
    * 
    * Required. The geographic location where the dataset should reside. See
    * https://cloud.google.com/bigquery/docs/locations for supported
@@ -395,6 +473,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The location. */ @java.lang.Override @@ -403,14 +482,15 @@ 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; } } /** + * + * *
    * Required. The geographic location where the dataset should reside. See
    * https://cloud.google.com/bigquery/docs/locations for supported
@@ -418,16 +498,15 @@ public java.lang.String getLocation() {
    * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -436,6 +515,7 @@ public java.lang.String getLocation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -447,8 +527,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 (datasetReference_ != null) { output.writeMessage(1, getDatasetReference()); } @@ -458,12 +537,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (description_ != null) { output.writeMessage(3, getDescription()); } - 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(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, location_); } @@ -477,26 +552,23 @@ public int getSerializedSize() { size = 0; if (datasetReference_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDatasetReference()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDatasetReference()); } if (friendlyName_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFriendlyName()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFriendlyName()); } if (description_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDescription()); - } - 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, getDescription()); + } + 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(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, location_); @@ -509,32 +581,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.bigquery.dataexchange.v1beta1.DestinationDataset)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset other = (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset other = + (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) obj; if (hasDatasetReference() != other.hasDatasetReference()) return false; if (hasDatasetReference()) { - if (!getDatasetReference() - .equals(other.getDatasetReference())) return false; + if (!getDatasetReference().equals(other.getDatasetReference())) return false; } if (hasFriendlyName() != other.hasFriendlyName()) return false; if (hasFriendlyName()) { - if (!getFriendlyName() - .equals(other.getFriendlyName())) return false; + if (!getFriendlyName().equals(other.getFriendlyName())) return false; } if (hasDescription() != other.hasDescription()) return false; if (hasDescription()) { - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getLocation() - .equals(other.getLocation())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getLocation().equals(other.getLocation())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -570,156 +638,165 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset 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.bigquery.dataexchange.v1beta1.DestinationDataset 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.bigquery.dataexchange.v1beta1.DestinationDataset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset 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.bigquery.dataexchange.v1beta1.DestinationDataset parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset 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.bigquery.dataexchange.v1beta1.DestinationDataset parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset 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.bigquery.dataexchange.v1beta1.DestinationDataset parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset 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.bigquery.dataexchange.v1beta1.DestinationDataset 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.bigquery.dataexchange.v1beta1.DestinationDataset prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset 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; } /** + * + * *
    * Defines the destination bigquery dataset.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset} */ - 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.bigquery.dataexchange.v1beta1.DestinationDataset) com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.class, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.class, + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder.class); } - // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.newBuilder() + // Construct using + // com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -748,13 +825,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDataset_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset + getDefaultInstanceForType() { return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance(); } @@ -769,7 +847,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset build() @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset result = new com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset(this); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset result = + new com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset(this); int from_bitField0_ = bitField0_; if (datasetReferenceBuilder_ == null) { result.datasetReference_ = datasetReference_; @@ -797,46 +876,50 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset buildPa 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.bigquery.dataexchange.v1beta1.DestinationDataset) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset)other); + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance()) + return this; if (other.hasDatasetReference()) { mergeDatasetReference(other.getDatasetReference()); } @@ -846,8 +929,7 @@ public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.Destinat if (other.hasDescription()) { mergeDescription(other.getDescription()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getLocation().isEmpty()) { location_ = other.location_; onChanged(); @@ -871,7 +953,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -880,45 +964,69 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference datasetReference_; + private com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + datasetReference_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder> datasetReferenceBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference, + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder> + datasetReferenceBuilder_; /** + * + * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the datasetReference field is set. */ public boolean hasDatasetReference() { return datasetReferenceBuilder_ != null || datasetReference_ != null; } /** + * + * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The datasetReference. */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference getDatasetReference() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + getDatasetReference() { if (datasetReferenceBuilder_ == null) { - return datasetReference_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.getDefaultInstance() : datasetReference_; + return datasetReference_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + .getDefaultInstance() + : datasetReference_; } else { return datasetReferenceBuilder_.getMessage(); } } /** + * + * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDatasetReference(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference value) { + public Builder setDatasetReference( + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference value) { if (datasetReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -932,14 +1040,19 @@ public Builder setDatasetReference(com.google.cloud.bigquery.dataexchange.v1beta return this; } /** + * + * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDatasetReference( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder builderForValue) { + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder + builderForValue) { if (datasetReferenceBuilder_ == null) { datasetReference_ = builderForValue.build(); onChanged(); @@ -950,17 +1063,25 @@ public Builder setDatasetReference( return this; } /** + * + * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeDatasetReference(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference value) { + public Builder mergeDatasetReference( + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference value) { if (datasetReferenceBuilder_ == null) { if (datasetReference_ != null) { datasetReference_ = - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.newBuilder(datasetReference_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.newBuilder( + datasetReference_) + .mergeFrom(value) + .buildPartial(); } else { datasetReference_ = value; } @@ -972,11 +1093,15 @@ public Builder mergeDatasetReference(com.google.cloud.bigquery.dataexchange.v1be return this; } /** + * + * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDatasetReference() { if (datasetReferenceBuilder_ == null) { @@ -990,48 +1115,68 @@ public Builder clearDatasetReference() { return this; } /** + * + * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder getDatasetReferenceBuilder() { - + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder + getDatasetReferenceBuilder() { + onChanged(); return getDatasetReferenceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder getDatasetReferenceOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder + getDatasetReferenceOrBuilder() { if (datasetReferenceBuilder_ != null) { return datasetReferenceBuilder_.getMessageOrBuilder(); } else { - return datasetReference_ == null ? - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.getDefaultInstance() : datasetReference_; + return datasetReference_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + .getDefaultInstance() + : datasetReference_; } } /** + * + * *
      * Required. A reference that identifies the destination dataset.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference, + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder> getDatasetReferenceFieldBuilder() { if (datasetReferenceBuilder_ == null) { - datasetReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder>( - getDatasetReference(), - getParentForChildren(), - isClean()); + datasetReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference, + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1 + .DestinationDatasetReferenceOrBuilder>( + getDatasetReference(), getParentForChildren(), isClean()); datasetReference_ = null; } return datasetReferenceBuilder_; @@ -1039,39 +1184,58 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenc private com.google.protobuf.StringValue friendlyName_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> friendlyNameBuilder_; + com.google.protobuf.StringValue, + com.google.protobuf.StringValue.Builder, + com.google.protobuf.StringValueOrBuilder> + friendlyNameBuilder_; /** + * + * *
      * Optional. A descriptive name for the dataset.
      * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the friendlyName field is set. */ public boolean hasFriendlyName() { return friendlyNameBuilder_ != null || friendlyName_ != null; } /** + * + * *
      * Optional. A descriptive name for the dataset.
      * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The friendlyName. */ public com.google.protobuf.StringValue getFriendlyName() { if (friendlyNameBuilder_ == null) { - return friendlyName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : friendlyName_; + return friendlyName_ == null + ? com.google.protobuf.StringValue.getDefaultInstance() + : friendlyName_; } else { return friendlyNameBuilder_.getMessage(); } } /** + * + * *
      * Optional. A descriptive name for the dataset.
      * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setFriendlyName(com.google.protobuf.StringValue value) { if (friendlyNameBuilder_ == null) { @@ -1087,14 +1251,17 @@ public Builder setFriendlyName(com.google.protobuf.StringValue value) { return this; } /** + * + * *
      * Optional. A descriptive name for the dataset.
      * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setFriendlyName( - com.google.protobuf.StringValue.Builder builderForValue) { + public Builder setFriendlyName(com.google.protobuf.StringValue.Builder builderForValue) { if (friendlyNameBuilder_ == null) { friendlyName_ = builderForValue.build(); onChanged(); @@ -1105,17 +1272,23 @@ public Builder setFriendlyName( return this; } /** + * + * *
      * Optional. A descriptive name for the dataset.
      * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeFriendlyName(com.google.protobuf.StringValue value) { if (friendlyNameBuilder_ == null) { if (friendlyName_ != null) { friendlyName_ = - com.google.protobuf.StringValue.newBuilder(friendlyName_).mergeFrom(value).buildPartial(); + com.google.protobuf.StringValue.newBuilder(friendlyName_) + .mergeFrom(value) + .buildPartial(); } else { friendlyName_ = value; } @@ -1127,11 +1300,15 @@ public Builder mergeFriendlyName(com.google.protobuf.StringValue value) { return this; } /** + * + * *
      * Optional. A descriptive name for the dataset.
      * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearFriendlyName() { if (friendlyNameBuilder_ == null) { @@ -1145,48 +1322,64 @@ public Builder clearFriendlyName() { return this; } /** + * + * *
      * Optional. A descriptive name for the dataset.
      * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.StringValue.Builder getFriendlyNameBuilder() { - + onChanged(); return getFriendlyNameFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. A descriptive name for the dataset.
      * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.StringValueOrBuilder getFriendlyNameOrBuilder() { if (friendlyNameBuilder_ != null) { return friendlyNameBuilder_.getMessageOrBuilder(); } else { - return friendlyName_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : friendlyName_; + return friendlyName_ == null + ? com.google.protobuf.StringValue.getDefaultInstance() + : friendlyName_; } } /** + * + * *
      * Optional. A descriptive name for the dataset.
      * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + com.google.protobuf.StringValue, + com.google.protobuf.StringValue.Builder, + com.google.protobuf.StringValueOrBuilder> getFriendlyNameFieldBuilder() { if (friendlyNameBuilder_ == null) { - friendlyNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getFriendlyName(), - getParentForChildren(), - isClean()); + friendlyNameBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, + com.google.protobuf.StringValue.Builder, + com.google.protobuf.StringValueOrBuilder>( + getFriendlyName(), getParentForChildren(), isClean()); friendlyName_ = null; } return friendlyNameBuilder_; @@ -1194,39 +1387,55 @@ public com.google.protobuf.StringValueOrBuilder getFriendlyNameOrBuilder() { private com.google.protobuf.StringValue description_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> descriptionBuilder_; + com.google.protobuf.StringValue, + com.google.protobuf.StringValue.Builder, + com.google.protobuf.StringValueOrBuilder> + descriptionBuilder_; /** + * + * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the description field is set. */ public boolean hasDescription() { return descriptionBuilder_ != null || description_ != null; } /** + * + * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The description. */ public com.google.protobuf.StringValue getDescription() { if (descriptionBuilder_ == null) { - return description_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : description_; + return description_ == null + ? com.google.protobuf.StringValue.getDefaultInstance() + : description_; } else { return descriptionBuilder_.getMessage(); } } /** + * + * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDescription(com.google.protobuf.StringValue value) { if (descriptionBuilder_ == null) { @@ -1242,14 +1451,16 @@ public Builder setDescription(com.google.protobuf.StringValue value) { return this; } /** + * + * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDescription( - com.google.protobuf.StringValue.Builder builderForValue) { + public Builder setDescription(com.google.protobuf.StringValue.Builder builderForValue) { if (descriptionBuilder_ == null) { description_ = builderForValue.build(); onChanged(); @@ -1260,17 +1471,22 @@ public Builder setDescription( return this; } /** + * + * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeDescription(com.google.protobuf.StringValue value) { if (descriptionBuilder_ == null) { if (description_ != null) { description_ = - com.google.protobuf.StringValue.newBuilder(description_).mergeFrom(value).buildPartial(); + com.google.protobuf.StringValue.newBuilder(description_) + .mergeFrom(value) + .buildPartial(); } else { description_ = value; } @@ -1282,11 +1498,14 @@ public Builder mergeDescription(com.google.protobuf.StringValue value) { return this; } /** + * + * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearDescription() { if (descriptionBuilder_ == null) { @@ -1300,69 +1519,81 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.StringValue.Builder getDescriptionBuilder() { - + onChanged(); return getDescriptionFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.StringValueOrBuilder getDescriptionOrBuilder() { if (descriptionBuilder_ != null) { return descriptionBuilder_.getMessageOrBuilder(); } else { - return description_ == null ? - com.google.protobuf.StringValue.getDefaultInstance() : description_; + return description_ == null + ? com.google.protobuf.StringValue.getDefaultInstance() + : description_; } } /** + * + * *
      * Optional. A user-friendly description of the dataset.
      * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + com.google.protobuf.StringValue, + com.google.protobuf.StringValue.Builder, + com.google.protobuf.StringValueOrBuilder> getDescriptionFieldBuilder() { if (descriptionBuilder_ == null) { - descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( - getDescription(), - getParentForChildren(), - isClean()); + descriptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, + com.google.protobuf.StringValue.Builder, + com.google.protobuf.StringValueOrBuilder>( + getDescription(), getParentForChildren(), isClean()); description_ = null; } return descriptionBuilder_; } - 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(); @@ -1374,6 +1605,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels associated with this dataset. You can use these
      * to organize and group your datasets.
@@ -1384,22 +1617,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. The labels associated with this dataset. You can use these
      * to organize and group your datasets.
@@ -1411,11 +1644,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. The labels associated with this dataset. You can use these
      * to organize and group your datasets.
@@ -1427,16 +1661,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. The labels associated with this dataset. You can use these
      * to organize and group your datasets.
@@ -1448,12 +1683,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();
       }
@@ -1461,11 +1695,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels associated with this dataset. You can use these
      * to organize and group your datasets.
@@ -1476,23 +1711,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. The labels associated with this dataset. You can use these
      * to organize and group your datasets.
@@ -1503,19 +1736,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. The labels associated with this dataset. You can use these
      * to organize and group your datasets.
@@ -1526,16 +1760,15 @@ 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 location_ = "";
     /**
+     *
+     *
      * 
      * Required. The geographic location where the dataset should reside. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1543,13 +1776,13 @@ public Builder putAllLabels(
      * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -1558,6 +1791,8 @@ public java.lang.String getLocation() { } } /** + * + * *
      * Required. The geographic location where the dataset should reside. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1565,15 +1800,14 @@ public java.lang.String getLocation() {
      * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -1581,6 +1815,8 @@ public java.lang.String getLocation() { } } /** + * + * *
      * Required. The geographic location where the dataset should reside. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1588,20 +1824,22 @@ public java.lang.String getLocation() {
      * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @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; } /** + * + * *
      * Required. The geographic location where the dataset should reside. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1609,15 +1847,18 @@ public Builder setLocation(
      * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** + * + * *
      * Required. The geographic location where the dataset should reside. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1625,23 +1866,23 @@ public Builder clearLocation() {
      * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @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; } + @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); } @@ -1651,30 +1892,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DestinationDataset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DestinationDataset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DestinationDataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DestinationDataset(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1686,9 +1929,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetOrBuilder.java index 49f58ff..9fbbc50 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetOrBuilder.java @@ -1,94 +1,149 @@ +/* + * 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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface DestinationDatasetOrBuilder extends +public interface DestinationDatasetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. A reference that identifies the destination dataset.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the datasetReference field is set. */ boolean hasDatasetReference(); /** + * + * *
    * Required. A reference that identifies the destination dataset.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The datasetReference. */ com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference getDatasetReference(); /** + * + * *
    * Required. A reference that identifies the destination dataset.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference dataset_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder getDatasetReferenceOrBuilder(); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder + getDatasetReferenceOrBuilder(); /** + * + * *
    * Optional. A descriptive name for the dataset.
    * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the friendlyName field is set. */ boolean hasFriendlyName(); /** + * + * *
    * Optional. A descriptive name for the dataset.
    * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The friendlyName. */ com.google.protobuf.StringValue getFriendlyName(); /** + * + * *
    * Optional. A descriptive name for the dataset.
    * 
* - * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue friendly_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.StringValueOrBuilder getFriendlyNameOrBuilder(); /** + * + * *
    * Optional. A user-friendly description of the dataset.
    * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the description field is set. */ boolean hasDescription(); /** + * + * *
    * Optional. A user-friendly description of the dataset.
    * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The description. */ com.google.protobuf.StringValue getDescription(); /** + * + * *
    * Optional. A user-friendly description of the dataset.
    * 
* - * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.StringValue description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.StringValueOrBuilder getDescriptionOrBuilder(); /** + * + * *
    * Optional. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -101,6 +156,8 @@ public interface DestinationDatasetOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -111,15 +168,13 @@ public interface DestinationDatasetOrBuilder 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. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -130,9 +185,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -145,11 +201,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. The labels associated with this dataset. You can use these
    * to organize and group your datasets.
@@ -160,11 +218,11 @@ 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);
 
   /**
+   *
+   *
    * 
    * Required. The geographic location where the dataset should reside. See
    * https://cloud.google.com/bigquery/docs/locations for supported
@@ -172,10 +230,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The location. */ java.lang.String getLocation(); /** + * + * *
    * Required. The geographic location where the dataset should reside. See
    * https://cloud.google.com/bigquery/docs/locations for supported
@@ -183,8 +244,8 @@ java.lang.String getLabelsOrThrow(
    * 
* * string location = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for location. */ - com.google.protobuf.ByteString - getLocationBytes(); + com.google.protobuf.ByteString getLocationBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.java index 82374b5..d8c8466 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Contains the reference that identifies a destination bigquery dataset.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference} */ -public final class DestinationDatasetReference extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DestinationDatasetReference extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) DestinationDatasetReferenceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DestinationDatasetReference.newBuilder() to construct. private DestinationDatasetReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DestinationDatasetReference() { datasetId_ = ""; projectId_ = ""; @@ -26,16 +44,15 @@ private DestinationDatasetReference() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DestinationDatasetReference(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DestinationDatasetReference( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private DestinationDatasetReference( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - datasetId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + datasetId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - projectId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + projectId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,29 +99,34 @@ private DestinationDatasetReference( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.class, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.class, + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder + .class); } public static final int DATASET_ID_FIELD_NUMBER = 1; private volatile java.lang.Object datasetId_; /** + * + * *
    * Required. A unique ID for this dataset, without the project name. The ID
    * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -110,6 +134,7 @@ private DestinationDatasetReference(
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The datasetId. */ @java.lang.Override @@ -118,14 +143,15 @@ public java.lang.String getDatasetId() { 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(); datasetId_ = s; return s; } } /** + * + * *
    * Required. A unique ID for this dataset, without the project name. The ID
    * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -133,16 +159,15 @@ public java.lang.String getDatasetId() {
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetIdBytes() { + public com.google.protobuf.ByteString getDatasetIdBytes() { java.lang.Object ref = datasetId_; 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); datasetId_ = b; return b; } else { @@ -153,11 +178,14 @@ public java.lang.String getDatasetId() { public static final int PROJECT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object projectId_; /** + * + * *
    * Required. The ID of the project containing this dataset.
    * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ @java.lang.Override @@ -166,29 +194,29 @@ public java.lang.String getProjectId() { 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(); projectId_ = s; return s; } } /** + * + * *
    * Required. The ID of the project containing this dataset.
    * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; 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); projectId_ = b; return b; } else { @@ -197,6 +225,7 @@ public java.lang.String getProjectId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +237,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(datasetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); } @@ -239,17 +267,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.bigquery.dataexchange.v1beta1.DestinationDatasetReference)) { + if (!(obj + instanceof com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference other = (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference other = + (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) obj; - if (!getDatasetId() - .equals(other.getDatasetId())) return false; - if (!getProjectId() - .equals(other.getProjectId())) return false; + if (!getDatasetId().equals(other.getDatasetId())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -270,135 +298,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + 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.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference 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; } /** + * + * *
    * Contains the reference that identifies a destination bigquery dataset.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference} */ - 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.bigquery.dataexchange.v1beta1.DestinationDatasetReference) com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.class, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.class, + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.Builder + .class); } - // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.newBuilder() + // Construct using + // com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,19 +455,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_DestinationDatasetReference_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference build() { - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference result = buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -430,8 +478,10 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenc } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference result = new com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference(this); + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + buildPartial() { + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference result = + new com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference(this); result.datasetId_ = datasetId_; result.projectId_ = projectId_; onBuilt(); @@ -442,46 +492,52 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReferenc 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.bigquery.dataexchange.v1beta1.DestinationDatasetReference) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference)other); + if (other + instanceof com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) { + return mergeFrom( + (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + .getDefaultInstance()) return this; if (!other.getDatasetId().isEmpty()) { datasetId_ = other.datasetId_; onChanged(); @@ -505,11 +561,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parsedMessage = null; + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,6 +580,8 @@ public Builder mergeFrom( private java.lang.Object datasetId_ = ""; /** + * + * *
      * Required. A unique ID for this dataset, without the project name. The ID
      * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -528,13 +589,13 @@ public Builder mergeFrom(
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The datasetId. */ public java.lang.String getDatasetId() { java.lang.Object ref = datasetId_; 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(); datasetId_ = s; return s; @@ -543,6 +604,8 @@ public java.lang.String getDatasetId() { } } /** + * + * *
      * Required. A unique ID for this dataset, without the project name. The ID
      * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -550,15 +613,14 @@ public java.lang.String getDatasetId() {
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString - getDatasetIdBytes() { + public com.google.protobuf.ByteString getDatasetIdBytes() { java.lang.Object ref = datasetId_; 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); datasetId_ = b; return b; } else { @@ -566,6 +628,8 @@ public java.lang.String getDatasetId() { } } /** + * + * *
      * Required. A unique ID for this dataset, without the project name. The ID
      * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -573,20 +637,22 @@ public java.lang.String getDatasetId() {
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetId( - java.lang.String value) { + public Builder setDatasetId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + datasetId_ = value; onChanged(); return this; } /** + * + * *
      * Required. A unique ID for this dataset, without the project name. The ID
      * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -594,15 +660,18 @@ public Builder setDatasetId(
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDatasetId() { - + datasetId_ = getDefaultInstance().getDatasetId(); onChanged(); return this; } /** + * + * *
      * Required. A unique ID for this dataset, without the project name. The ID
      * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -610,16 +679,16 @@ public Builder clearDatasetId() {
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetIdBytes( - com.google.protobuf.ByteString value) { + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datasetId_ = value; onChanged(); return this; @@ -627,18 +696,20 @@ public Builder setDatasetIdBytes( private java.lang.Object projectId_ = ""; /** + * + * *
      * Required. The ID of the project containing this dataset.
      * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; 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(); projectId_ = s; return s; @@ -647,20 +718,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the project containing this dataset.
      * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; 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); projectId_ = b; return b; } else { @@ -668,61 +740,68 @@ public java.lang.String getProjectId() { } } /** + * + * *
      * Required. The ID of the project containing this dataset.
      * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + projectId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID of the project containing this dataset.
      * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProjectId() { - + projectId_ = getDefaultInstance().getProjectId(); onChanged(); return this; } /** + * + * *
      * Required. The ID of the project containing this dataset.
      * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = 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); } @@ -732,30 +811,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DestinationDatasetReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DestinationDatasetReference(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DestinationDatasetReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DestinationDatasetReference(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -767,9 +849,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReferenceOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReferenceOrBuilder.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReferenceOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReferenceOrBuilder.java index def4ee4..3405e7a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReferenceOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReferenceOrBuilder.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface DestinationDatasetReferenceOrBuilder extends +public interface DestinationDatasetReferenceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. A unique ID for this dataset, without the project name. The ID
    * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -15,10 +33,13 @@ public interface DestinationDatasetReferenceOrBuilder extends
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The datasetId. */ java.lang.String getDatasetId(); /** + * + * *
    * Required. A unique ID for this dataset, without the project name. The ID
    * must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
@@ -26,28 +47,33 @@ public interface DestinationDatasetReferenceOrBuilder extends
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for datasetId. */ - com.google.protobuf.ByteString - getDatasetIdBytes(); + com.google.protobuf.ByteString getDatasetIdBytes(); /** + * + * *
    * Required. The ID of the project containing this dataset.
    * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
    * Required. The ID of the project containing this dataset.
    * 
* * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.java index d4d7b88..d122262 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Message for getting a data exchange.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest} */ -public final class GetDataExchangeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetDataExchangeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) GetDataExchangeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetDataExchangeRequest.newBuilder() to construct. private GetDataExchangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetDataExchangeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetDataExchangeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetDataExchangeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetDataExchangeRequest( 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 GetDataExchangeRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the data exchange.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * 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. The resource name of the data exchange.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest other = + (com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) 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,134 +233,145 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest 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; } /** + * + * *
    * Message for getting a data exchange.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest} */ - 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.newBuilder() + // Construct using + // com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,14 +381,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetDataExchangeRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest + .getDefaultInstance(); } @java.lang.Override @@ -364,7 +404,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest bui @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest result = + new com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +415,51 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest bui 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.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +483,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +497,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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 +522,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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 +547,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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,30 +627,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDataExchangeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDataExchangeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataExchangeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDataExchangeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +664,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java new file mode 100644 index 0000000..9ed7e09 --- /dev/null +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.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/bigquery/dataexchange/v1beta1/dataexchange.proto + +package com.google.cloud.bigquery.dataexchange.v1beta1; + +public interface GetDataExchangeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the data exchange.
+   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the data exchange.
+   * e.g. `projects/myproject/locations/US/dataExchanges/123`.
+   * 
+ * + * + * 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/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.java index 51e57d8..10310fb 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Message for getting a listing.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest} */ -public final class GetListingRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetListingRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) GetListingRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetListingRequest.newBuilder() to construct. private GetListingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetListingRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetListingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetListingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetListingRequest( 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 GetListingRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
    * 
* - * 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. The resource name of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
    * 
* - * 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.bigquery.dataexchange.v1beta1.GetListingRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest other = + (com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) 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.bigquery.dataexchange.v1beta1.GetListingRequest 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.bigquery.dataexchange.v1beta1.GetListingRequest 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.bigquery.dataexchange.v1beta1.GetListingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest 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.bigquery.dataexchange.v1beta1.GetListingRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest 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.bigquery.dataexchange.v1beta1.GetListingRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest 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.bigquery.dataexchange.v1beta1.GetListingRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest 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.bigquery.dataexchange.v1beta1.GetListingRequest 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.bigquery.dataexchange.v1beta1.GetListingRequest 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.bigquery.dataexchange.v1beta1.GetListingRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest 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; } /** + * + * *
    * Message for getting a listing.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest} */ - 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.bigquery.dataexchange.v1beta1.GetListingRequest) com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.Builder.class); } // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.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,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_GetListingRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest build() @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest result = + new com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +412,50 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest buildPar 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.bigquery.dataexchange.v1beta1.GetListingRequest) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest)other); + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +479,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +493,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * 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 +518,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * 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 +543,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * 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. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * 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. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * 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,30 +623,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetListingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetListingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetListingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetListingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +660,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequestOrBuilder.java new file mode 100644 index 0000000..6a50be5 --- /dev/null +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequestOrBuilder.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/bigquery/dataexchange/v1beta1/dataexchange.proto + +package com.google.cloud.bigquery.dataexchange.v1beta1; + +public interface GetListingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the listing.
+   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the listing.
+   * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
+   * 
+ * + * + * 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/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.java index a4de896..7b05b6b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Message for requesting the list of data exchanges.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest} */ -public final class ListDataExchangesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDataExchangesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) ListDataExchangesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDataExchangesRequest.newBuilder() to construct. private ListDataExchangesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDataExchangesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListDataExchangesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDataExchangesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListDataExchangesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListDataExchangesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListDataExchangesRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource path of the data exchanges.
    * e.g. `projects/myproject/locations/US`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -122,30 +148,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource path of the data exchanges.
    * e.g. `projects/myproject/locations/US`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,12 +184,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response page. Leverage
    * the page tokens to iterate through the entire collection.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -172,12 +203,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -186,30 +220,30 @@ 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, returned by a previous call, to request the next page of
    * results.
    * 
* * 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 { @@ -218,6 +252,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -253,8 +287,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_); @@ -267,19 +300,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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest other = + (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -303,134 +334,146 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest 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; } /** + * + * *
    * Message for requesting the list of data exchanges.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest} */ - 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.Builder + .class); } - // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.newBuilder() + // Construct using + // com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,19 +487,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest build() { - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest result = buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -465,7 +511,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest b @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest result = + new com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -477,46 +524,52 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest b 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.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest)other); + if (other + instanceof com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) { + return mergeFrom( + (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -547,7 +600,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -559,19 +614,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource path of the data exchanges.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * 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; @@ -580,21 +639,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource path of the data exchanges.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * 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 { @@ -602,70 +664,86 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource path of the data exchanges.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * 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. The parent resource path of the data exchanges.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * 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. The parent resource path of the data exchanges.
      * e.g. `projects/myproject/locations/US`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -673,32 +751,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -706,19 +790,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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; @@ -727,21 +813,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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 { @@ -749,64 +836,71 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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, returned by a previous call, to request the next page of
      * results.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -816,30 +910,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataExchangesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDataExchangesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataExchangesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDataExchangesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -851,9 +948,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java index f9d2208..df01f39 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java @@ -1,64 +1,97 @@ +/* + * 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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface ListDataExchangesRequestOrBuilder extends +public interface ListDataExchangesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource path of the data exchanges.
    * e.g. `projects/myproject/locations/US`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource path of the data exchanges.
    * e.g. `projects/myproject/locations/US`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of results to return in a single response page. Leverage
    * the page tokens to iterate through the entire collection.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.java index 5995648..faf66fc 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Message for response to the list of data exchanges.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse} */ -public final class ListDataExchangesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDataExchangesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) ListDataExchangesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDataExchangesResponse.newBuilder() to construct. private ListDataExchangesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDataExchangesResponse() { dataExchanges_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListDataExchangesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDataExchangesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListDataExchangesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,34 @@ private ListDataExchangesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dataExchanges_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dataExchanges_ = + new java.util.ArrayList< + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>(); + mutable_bitField0_ |= 0x00000001; + } + dataExchanges_.add( + input.readMessage( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.parser(), + extensionRegistry)); + break; } - dataExchanges_.add( - input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +107,7 @@ private ListDataExchangesResponse( } 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)) { dataExchanges_ = java.util.Collections.unmodifiableList(dataExchanges_); @@ -94,87 +116,111 @@ private ListDataExchangesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.class, + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.Builder.class); } public static final int DATA_EXCHANGES_FIELD_NUMBER = 1; - private java.util.List dataExchanges_; + private java.util.List + dataExchanges_; /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ @java.lang.Override - public java.util.List getDataExchangesList() { + public java.util.List + getDataExchangesList() { return dataExchanges_; } /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> getDataExchangesOrBuilderList() { return dataExchanges_; } /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ @java.lang.Override public int getDataExchangesCount() { return dataExchanges_.size(); } /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchanges(int index) { return dataExchanges_.get(index); } /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangesOrBuilder( - int index) { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder + getDataExchangesOrBuilder(int index) { return dataExchanges_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,29 +229,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; } } /** + * + * *
    * A token to request the next page of results.
    * 
* * 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 { @@ -214,6 +260,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +272,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 < dataExchanges_.size(); i++) { output.writeMessage(1, dataExchanges_.get(i)); } @@ -243,8 +289,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < dataExchanges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, dataExchanges_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataExchanges_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +302,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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse)) { + if (!(obj + instanceof com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse other = (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse other = + (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) obj; - if (!getDataExchangesList() - .equals(other.getDataExchangesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getDataExchangesList().equals(other.getDataExchangesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,135 +336,148 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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; } /** + * + * *
    * Message for response to the list of data exchanges.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse} */ - 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.class, + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.Builder + .class); } - // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.newBuilder() + // Construct using + // com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDataExchangesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,19 +493,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListDataExchangesResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse build() { - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse result = buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -456,7 +517,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse result = new com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse(this); + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse result = + new com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse(this); int from_bitField0_ = bitField0_; if (dataExchangesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,46 +538,52 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse 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.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse)other); + if (other + instanceof com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) { + return mergeFrom( + (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse + .getDefaultInstance()) return this; if (dataExchangesBuilder_ == null) { if (!other.dataExchanges_.isEmpty()) { if (dataExchanges_.isEmpty()) { @@ -534,9 +602,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.ListData dataExchangesBuilder_ = null; dataExchanges_ = other.dataExchanges_; bitField0_ = (bitField0_ & ~0x00000001); - dataExchangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataExchangesFieldBuilder() : null; + dataExchangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataExchangesFieldBuilder() + : null; } else { dataExchangesBuilder_.addAllMessages(other.dataExchanges_); } @@ -565,7 +634,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,28 +645,39 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List dataExchanges_ = - java.util.Collections.emptyList(); + private java.util.List + dataExchanges_ = java.util.Collections.emptyList(); + private void ensureDataExchangesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - dataExchanges_ = new java.util.ArrayList(dataExchanges_); + dataExchanges_ = + new java.util.ArrayList( + dataExchanges_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> dataExchangesBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> + dataExchangesBuilder_; /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - public java.util.List getDataExchangesList() { + public java.util.List + getDataExchangesList() { if (dataExchangesBuilder_ == null) { return java.util.Collections.unmodifiableList(dataExchanges_); } else { @@ -603,11 +685,14 @@ public java.util.List * The list of data exchanges. *
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public int getDataExchangesCount() { if (dataExchangesBuilder_ == null) { @@ -617,11 +702,14 @@ public int getDataExchangesCount() { } } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchanges(int index) { if (dataExchangesBuilder_ == null) { @@ -631,11 +719,14 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchan } } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public Builder setDataExchanges( int index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { @@ -652,14 +743,18 @@ public Builder setDataExchanges( return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public Builder setDataExchanges( - int index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { + int index, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { if (dataExchangesBuilder_ == null) { ensureDataExchangesIsMutable(); dataExchanges_.set(index, builderForValue.build()); @@ -670,13 +765,17 @@ public Builder setDataExchanges( return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - public Builder addDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { + public Builder addDataExchanges( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { if (dataExchangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -690,11 +789,14 @@ public Builder addDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.D return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public Builder addDataExchanges( int index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { @@ -711,11 +813,14 @@ public Builder addDataExchanges( return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public Builder addDataExchanges( com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { @@ -729,14 +834,18 @@ public Builder addDataExchanges( return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public Builder addDataExchanges( - int index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { + int index, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { if (dataExchangesBuilder_ == null) { ensureDataExchangesIsMutable(); dataExchanges_.add(index, builderForValue.build()); @@ -747,18 +856,21 @@ public Builder addDataExchanges( return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public Builder addAllDataExchanges( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (dataExchangesBuilder_ == null) { ensureDataExchangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataExchanges_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataExchanges_); onChanged(); } else { dataExchangesBuilder_.addAllMessages(values); @@ -766,11 +878,14 @@ public Builder addAllDataExchanges( return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public Builder clearDataExchanges() { if (dataExchangesBuilder_ == null) { @@ -783,11 +898,14 @@ public Builder clearDataExchanges() { return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public Builder removeDataExchanges(int index) { if (dataExchangesBuilder_ == null) { @@ -800,39 +918,50 @@ public Builder removeDataExchanges(int index) { return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder getDataExchangesBuilder( - int index) { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder + getDataExchangesBuilder(int index) { return getDataExchangesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangesOrBuilder( - int index) { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder + getDataExchangesOrBuilder(int index) { if (dataExchangesBuilder_ == null) { - return dataExchanges_.get(index); } else { + return dataExchanges_.get(index); + } else { return dataExchangesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - public java.util.List - getDataExchangesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> + getDataExchangesOrBuilderList() { if (dataExchangesBuilder_ != null) { return dataExchangesBuilder_.getMessageOrBuilderList(); } else { @@ -840,45 +969,64 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getD } } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder addDataExchangesBuilder() { - return getDataExchangesFieldBuilder().addBuilder( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()); + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder + addDataExchangesBuilder() { + return getDataExchangesFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()); } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder addDataExchangesBuilder( - int index) { - return getDataExchangesFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()); + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder + addDataExchangesBuilder(int index) { + return getDataExchangesFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()); } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - public java.util.List - getDataExchangesBuilderList() { + public java.util.List + getDataExchangesBuilderList() { return getDataExchangesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> getDataExchangesFieldBuilder() { if (dataExchangesBuilder_ == null) { - dataExchangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>( + dataExchangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>( dataExchanges_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -890,18 +1038,20 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder addDa private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to request the next page of results.
      * 
* * 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; @@ -910,20 +1060,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of results.
      * 
* * 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 { @@ -931,61 +1082,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -995,30 +1153,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataExchangesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDataExchangesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataExchangesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDataExchangesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1030,9 +1191,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java index 51fc381..67d9101 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java @@ -1,73 +1,109 @@ +/* + * 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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface ListDataExchangesResponseOrBuilder extends +public interface ListDataExchangesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - java.util.List + java.util.List getDataExchangesList(); /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchanges(int index); /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ int getDataExchangesCount(); /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - java.util.List + java.util.List getDataExchangesOrBuilderList(); /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangesOrBuilder( int index); /** + * + * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.java index 079df33..f76de0e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Message for requesting the list of listings.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest} */ -public final class ListListingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListListingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) ListListingsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListListingsRequest.newBuilder() to construct. private ListListingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListListingsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListListingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListListingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListListingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListListingsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListListingsRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource path of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -122,30 +148,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource path of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,12 +184,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response page. Leverage
    * the page tokens to iterate through the entire collection.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -172,12 +203,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -186,30 +220,30 @@ 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, returned by a previous call, to request the next page of
    * results.
    * 
* * 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 { @@ -218,6 +252,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -253,8 +287,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_); @@ -267,19 +300,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.bigquery.dataexchange.v1beta1.ListListingsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest other = + (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -303,134 +334,145 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest 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.bigquery.dataexchange.v1beta1.ListListingsRequest 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.bigquery.dataexchange.v1beta1.ListListingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest 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.bigquery.dataexchange.v1beta1.ListListingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest 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.bigquery.dataexchange.v1beta1.ListListingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest 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.bigquery.dataexchange.v1beta1.ListListingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest 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.bigquery.dataexchange.v1beta1.ListListingsRequest 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.bigquery.dataexchange.v1beta1.ListListingsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest 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; } /** + * + * *
    * Message for requesting the list of listings.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest} */ - 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.bigquery.dataexchange.v1beta1.ListListingsRequest) com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.newBuilder() + // Construct using + // com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,14 +486,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest + .getDefaultInstance(); } @java.lang.Override @@ -465,7 +509,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest build( @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest result = + new com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -477,46 +522,51 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest buildP 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.bigquery.dataexchange.v1beta1.ListListingsRequest) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -547,7 +597,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -559,19 +611,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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; @@ -580,21 +636,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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 { @@ -602,70 +661,86 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * 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. The parent resource path of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -673,32 +748,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -706,19 +787,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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; @@ -727,21 +810,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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 { @@ -749,64 +833,71 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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, returned by a previous call, to request the next page of
      * results.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -816,30 +907,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListListingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListListingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListListingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListListingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -851,9 +944,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequestOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequestOrBuilder.java index 6a8e942..5047f3d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequestOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequestOrBuilder.java @@ -1,64 +1,97 @@ +/* + * 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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface ListListingsRequestOrBuilder extends +public interface ListListingsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource path of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource path of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of results to return in a single response page. Leverage
    * the page tokens to iterate through the entire collection.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.java index 1a94fec..f95b3e0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Message for response to the list of Listings.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse} */ -public final class ListListingsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListListingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) ListListingsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListListingsResponse.newBuilder() to construct. private ListListingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListListingsResponse() { listings_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListListingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListListingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListListingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,34 @@ private ListListingsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - listings_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + listings_ = + new java.util.ArrayList< + com.google.cloud.bigquery.dataexchange.v1beta1.Listing>(); + mutable_bitField0_ |= 0x00000001; + } + listings_.add( + input.readMessage( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.parser(), + extensionRegistry)); + break; } - listings_.add( - input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +107,7 @@ private ListListingsResponse( } 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)) { listings_ = java.util.Collections.unmodifiableList(listings_); @@ -94,22 +116,27 @@ private ListListingsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.class, + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.Builder.class); } public static final int LISTINGS_FIELD_NUMBER = 1; private java.util.List listings_; /** + * + * *
    * The list of Listing.
    * 
@@ -121,6 +148,8 @@ public java.util.List ge return listings_; } /** + * + * *
    * The list of Listing.
    * 
@@ -128,11 +157,13 @@ public java.util.List ge * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ @java.lang.Override - public java.util.List + public java.util.List getListingsOrBuilderList() { return listings_; } /** + * + * *
    * The list of Listing.
    * 
@@ -144,6 +175,8 @@ public int getListingsCount() { return listings_.size(); } /** + * + * *
    * The list of Listing.
    * 
@@ -155,6 +188,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListings(int in return listings_.get(index); } /** + * + * *
    * The list of Listing.
    * 
@@ -170,11 +205,14 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListin public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,29 +221,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; } } /** + * + * *
    * A token to request the next page of results.
    * 
* * 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 { @@ -214,6 +252,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < listings_.size(); i++) { output.writeMessage(1, listings_.get(i)); } @@ -243,8 +281,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < listings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, listings_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, listings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +294,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse other = (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse other = + (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) obj; - if (!getListingsList() - .equals(other.getListingsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getListingsList().equals(other.getListingsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,135 +327,147 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse 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.bigquery.dataexchange.v1beta1.ListListingsResponse 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.bigquery.dataexchange.v1beta1.ListListingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse 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.bigquery.dataexchange.v1beta1.ListListingsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse 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.bigquery.dataexchange.v1beta1.ListListingsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse 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.bigquery.dataexchange.v1beta1.ListListingsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse 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.bigquery.dataexchange.v1beta1.ListListingsResponse 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.bigquery.dataexchange.v1beta1.ListListingsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse 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; } /** + * + * *
    * Message for response to the list of Listings.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse} */ - 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.bigquery.dataexchange.v1beta1.ListListingsResponse) com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.class, + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.Builder.class); } - // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.newBuilder() + // Construct using + // com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getListingsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,14 +483,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListListingsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse + .getDefaultInstance(); } @java.lang.Override @@ -456,7 +506,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse build @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse result = new com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse(this); + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse result = + new com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse(this); int from_bitField0_ = bitField0_; if (listingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,46 +527,51 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse build 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.bigquery.dataexchange.v1beta1.ListListingsResponse) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse)other); + return mergeFrom( + (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse + .getDefaultInstance()) return this; if (listingsBuilder_ == null) { if (!other.listings_.isEmpty()) { if (listings_.isEmpty()) { @@ -534,9 +590,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.ListList listingsBuilder_ = null; listings_ = other.listings_; bitField0_ = (bitField0_ & ~0x00000001); - listingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getListingsFieldBuilder() : null; + listingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getListingsFieldBuilder() + : null; } else { listingsBuilder_.addAllMessages(other.listings_); } @@ -565,7 +622,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,28 +633,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List listings_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureListingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - listings_ = new java.util.ArrayList(listings_); + listings_ = + new java.util.ArrayList( + listings_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> listingsBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> + listingsBuilder_; /** + * + * *
      * The list of Listing.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ - public java.util.List getListingsList() { + public java.util.List + getListingsList() { if (listingsBuilder_ == null) { return java.util.Collections.unmodifiableList(listings_); } else { @@ -603,6 +672,8 @@ public java.util.List ge } } /** + * + * *
      * The list of Listing.
      * 
@@ -617,6 +688,8 @@ public int getListingsCount() { } } /** + * + * *
      * The list of Listing.
      * 
@@ -631,6 +704,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListings(int in } } /** + * + * *
      * The list of Listing.
      * 
@@ -652,6 +727,8 @@ public Builder setListings( return this; } /** + * + * *
      * The list of Listing.
      * 
@@ -670,6 +747,8 @@ public Builder setListings( return this; } /** + * + * *
      * The list of Listing.
      * 
@@ -690,6 +769,8 @@ public Builder addListings(com.google.cloud.bigquery.dataexchange.v1beta1.Listin return this; } /** + * + * *
      * The list of Listing.
      * 
@@ -711,6 +792,8 @@ public Builder addListings( return this; } /** + * + * *
      * The list of Listing.
      * 
@@ -729,6 +812,8 @@ public Builder addListings( return this; } /** + * + * *
      * The list of Listing.
      * 
@@ -747,6 +832,8 @@ public Builder addListings( return this; } /** + * + * *
      * The list of Listing.
      * 
@@ -754,11 +841,11 @@ public Builder addListings( * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ public Builder addAllListings( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (listingsBuilder_ == null) { ensureListingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, listings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listings_); onChanged(); } else { listingsBuilder_.addAllMessages(values); @@ -766,6 +853,8 @@ public Builder addAllListings( return this; } /** + * + * *
      * The list of Listing.
      * 
@@ -783,6 +872,8 @@ public Builder clearListings() { return this; } /** + * + * *
      * The list of Listing.
      * 
@@ -800,6 +891,8 @@ public Builder removeListings(int index) { return this; } /** + * + * *
      * The list of Listing.
      * 
@@ -811,6 +904,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder getListing return getListingsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of Listing.
      * 
@@ -820,19 +915,22 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder getListing public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingsOrBuilder( int index) { if (listingsBuilder_ == null) { - return listings_.get(index); } else { + return listings_.get(index); + } else { return listingsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of Listing.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ - public java.util.List - getListingsOrBuilderList() { + public java.util.List + getListingsOrBuilderList() { if (listingsBuilder_ != null) { return listingsBuilder_.getMessageOrBuilderList(); } else { @@ -840,6 +938,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListin } } /** + * + * *
      * The list of Listing.
      * 
@@ -847,10 +947,12 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListin * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder addListingsBuilder() { - return getListingsFieldBuilder().addBuilder( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance()); + return getListingsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance()); } /** + * + * *
      * The list of Listing.
      * 
@@ -859,30 +961,36 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder addListing */ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder addListingsBuilder( int index) { - return getListingsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance()); + return getListingsFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance()); } /** + * + * *
      * The list of Listing.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ - public java.util.List - getListingsBuilderList() { + public java.util.List + getListingsBuilderList() { return getListingsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> getListingsFieldBuilder() { if (listingsBuilder_ == null) { - listingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder>( - listings_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + listingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder>( + listings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); listings_ = null; } return listingsBuilder_; @@ -890,18 +998,20 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder addListing private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to request the next page of results.
      * 
* * 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; @@ -910,20 +1020,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of results.
      * 
* * 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 { @@ -931,61 +1042,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -995,30 +1113,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListListingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListListingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListListingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListListingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1030,9 +1150,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponseOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponseOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponseOrBuilder.java index bed7b2b..85f1dbb 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponseOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponseOrBuilder.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface ListListingsResponseOrBuilder extends +public interface ListListingsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of Listing.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ - java.util.List - getListingsList(); + java.util.List getListingsList(); /** + * + * *
    * The list of Listing.
    * 
@@ -25,6 +44,8 @@ public interface ListListingsResponseOrBuilder extends */ com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListings(int index); /** + * + * *
    * The list of Listing.
    * 
@@ -33,41 +54,49 @@ public interface ListListingsResponseOrBuilder extends */ int getListingsCount(); /** + * + * *
    * The list of Listing.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ - java.util.List + java.util.List getListingsOrBuilderList(); /** + * + * *
    * The list of Listing.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing listings = 1; */ - com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingsOrBuilder( - int index); + com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingsOrBuilder(int index); /** + * + * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java index 5ba50b8..f0c5408 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Message for requesting the list of data exchanges from projects in an
  * organization and location.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest}
  */
-public final class ListOrgDataExchangesRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListOrgDataExchangesRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest)
     ListOrgDataExchangesRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListOrgDataExchangesRequest.newBuilder() to construct.
   private ListOrgDataExchangesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListOrgDataExchangesRequest() {
     organization_ = "";
     pageToken_ = "";
@@ -27,16 +45,15 @@ private ListOrgDataExchangesRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListOrgDataExchangesRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListOrgDataExchangesRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,30 +72,32 @@ private ListOrgDataExchangesRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            organization_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageSize_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              organization_ = s;
+              break;
+            }
+          case 16:
+            {
+              pageSize_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pageToken_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              pageToken_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -86,35 +105,41 @@ private ListOrgDataExchangesRequest(
     } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+        .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_fieldAccessorTable
+    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+        .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.Builder.class);
+            com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.class,
+            com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.Builder
+                .class);
   }
 
   public static final int ORGANIZATION_FIELD_NUMBER = 1;
   private volatile java.lang.Object organization_;
   /**
+   *
+   *
    * 
    * Required. The organization resource path of the projects containing DataExchanges.
    * e.g. `organizations/myorg/locations/US`.
    * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The organization. */ @java.lang.Override @@ -123,30 +148,30 @@ public java.lang.String getOrganization() { 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(); organization_ = s; return s; } } /** + * + * *
    * Required. The organization resource path of the projects containing DataExchanges.
    * e.g. `organizations/myorg/locations/US`.
    * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for organization. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrganizationBytes() { + public com.google.protobuf.ByteString getOrganizationBytes() { java.lang.Object ref = organization_; 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); organization_ = b; return b; } else { @@ -157,12 +182,15 @@ public java.lang.String getOrganization() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of results to return in a single response page. Leverage
    * the page tokens to iterate through the entire collection.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -173,12 +201,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -187,30 +218,30 @@ 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, returned by a previous call, to request the next page of
    * results.
    * 
* * 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 { @@ -219,6 +250,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, organization_); } @@ -254,8 +285,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, organization_); } 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_); @@ -268,19 +298,18 @@ 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.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest)) { + if (!(obj + instanceof com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest other = + (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) obj; - if (!getOrganization() - .equals(other.getOrganization())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getOrganization().equals(other.getOrganization())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -303,97 +332,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest + 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.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest 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; } /** + * + * *
    * Message for requesting the list of data exchanges from projects in an
    * organization and location.
@@ -401,38 +444,41 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest}
    */
-  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.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest)
       com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_fieldAccessorTable
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.Builder.class);
+              com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.class,
+              com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.newBuilder()
+    // Construct using
+    // com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -446,19 +492,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest getDefaultInstanceForType() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.getDefaultInstance();
+    public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest build() {
-      com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest result = buildPartial();
+      com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -466,8 +515,10 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesReques
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest buildPartial() {
-      com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest(this);
+    public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest
+        buildPartial() {
+      com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest result =
+          new com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest(this);
       result.organization_ = organization_;
       result.pageSize_ = pageSize_;
       result.pageToken_ = pageToken_;
@@ -479,46 +530,52 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesReques
     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.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) {
-        return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest)other);
+      if (other
+          instanceof com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) {
+        return mergeFrom(
+            (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest other) {
-      if (other == com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest other) {
+      if (other
+          == com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest
+              .getDefaultInstance()) return this;
       if (!other.getOrganization().isEmpty()) {
         organization_ = other.organization_;
         onChanged();
@@ -545,11 +602,14 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parsedMessage = null;
+      com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest parsedMessage =
+          null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -561,19 +621,21 @@ public Builder mergeFrom(
 
     private java.lang.Object organization_ = "";
     /**
+     *
+     *
      * 
      * Required. The organization resource path of the projects containing DataExchanges.
      * e.g. `organizations/myorg/locations/US`.
      * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The organization. */ public java.lang.String getOrganization() { java.lang.Object ref = organization_; 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(); organization_ = s; return s; @@ -582,21 +644,22 @@ public java.lang.String getOrganization() { } } /** + * + * *
      * Required. The organization resource path of the projects containing DataExchanges.
      * e.g. `organizations/myorg/locations/US`.
      * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for organization. */ - public com.google.protobuf.ByteString - getOrganizationBytes() { + public com.google.protobuf.ByteString getOrganizationBytes() { java.lang.Object ref = organization_; 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); organization_ = b; return b; } else { @@ -604,70 +667,80 @@ public java.lang.String getOrganization() { } } /** + * + * *
      * Required. The organization resource path of the projects containing DataExchanges.
      * e.g. `organizations/myorg/locations/US`.
      * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The organization to set. * @return This builder for chaining. */ - public Builder setOrganization( - java.lang.String value) { + public Builder setOrganization(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + organization_ = value; onChanged(); return this; } /** + * + * *
      * Required. The organization resource path of the projects containing DataExchanges.
      * e.g. `organizations/myorg/locations/US`.
      * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearOrganization() { - + organization_ = getDefaultInstance().getOrganization(); onChanged(); return this; } /** + * + * *
      * Required. The organization resource path of the projects containing DataExchanges.
      * e.g. `organizations/myorg/locations/US`.
      * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for organization to set. * @return This builder for chaining. */ - public Builder setOrganizationBytes( - com.google.protobuf.ByteString value) { + public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organization_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -675,32 +748,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of results to return in a single response page. Leverage
      * the page tokens to iterate through the entire collection.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -708,19 +787,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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; @@ -729,21 +810,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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 { @@ -751,64 +833,71 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * 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, returned by a previous call, to request the next page of
      * results.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token, returned by a previous call, to request the next page of
      * results.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -818,30 +907,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOrgDataExchangesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListOrgDataExchangesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrgDataExchangesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListOrgDataExchangesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -853,9 +945,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequestOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequestOrBuilder.java index ef276cb..5449334 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequestOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequestOrBuilder.java @@ -1,64 +1,93 @@ +/* + * 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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface ListOrgDataExchangesRequestOrBuilder extends +public interface ListOrgDataExchangesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The organization resource path of the projects containing DataExchanges.
    * e.g. `organizations/myorg/locations/US`.
    * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The organization. */ java.lang.String getOrganization(); /** + * + * *
    * Required. The organization resource path of the projects containing DataExchanges.
    * e.g. `organizations/myorg/locations/US`.
    * 
* * string organization = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for organization. */ - com.google.protobuf.ByteString - getOrganizationBytes(); + com.google.protobuf.ByteString getOrganizationBytes(); /** + * + * *
    * The maximum number of results to return in a single response page. Leverage
    * the page tokens to iterate through the entire collection.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token, returned by a previous call, to request the next page of
    * results.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java index b792b1e..4d7c3c9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Message for response to listing data exchanges in an organization and
  * location.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse}
  */
-public final class ListOrgDataExchangesResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListOrgDataExchangesResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse)
     ListOrgDataExchangesResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListOrgDataExchangesResponse.newBuilder() to construct.
   private ListOrgDataExchangesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListOrgDataExchangesResponse() {
     dataExchanges_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -27,16 +45,15 @@ private ListOrgDataExchangesResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListOrgDataExchangesResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListOrgDataExchangesResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,28 +73,34 @@ private ListOrgDataExchangesResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              dataExchanges_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                dataExchanges_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              dataExchanges_.add(
+                  input.readMessage(
+                      com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.parser(),
+                      extensionRegistry));
+              break;
             }
-            dataExchanges_.add(
-                input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            nextPageToken_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              nextPageToken_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -85,8 +108,7 @@ private ListOrgDataExchangesResponse(
     } 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)) {
         dataExchanges_ = java.util.Collections.unmodifiableList(dataExchanges_);
@@ -95,87 +117,112 @@ private ListOrgDataExchangesResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+        .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_fieldAccessorTable
+    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+        .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.Builder.class);
+            com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.class,
+            com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.Builder
+                .class);
   }
 
   public static final int DATA_EXCHANGES_FIELD_NUMBER = 1;
-  private java.util.List dataExchanges_;
+  private java.util.List
+      dataExchanges_;
   /**
+   *
+   *
    * 
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ @java.lang.Override - public java.util.List getDataExchangesList() { + public java.util.List + getDataExchangesList() { return dataExchanges_; } /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> getDataExchangesOrBuilderList() { return dataExchanges_; } /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ @java.lang.Override public int getDataExchangesCount() { return dataExchanges_.size(); } /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchanges(int index) { return dataExchanges_.get(index); } /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangesOrBuilder( - int index) { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder + getDataExchangesOrBuilder(int index) { return dataExchanges_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,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; } } /** + * + * *
    * A token to request the next page of results.
    * 
* * 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 { @@ -215,6 +262,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,8 +274,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 < dataExchanges_.size(); i++) { output.writeMessage(1, dataExchanges_.get(i)); } @@ -244,8 +291,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < dataExchanges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, dataExchanges_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataExchanges_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -258,17 +304,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.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse)) { + if (!(obj + instanceof com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse other = (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse other = + (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) obj; - if (!getDataExchangesList() - .equals(other.getDataExchangesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getDataExchangesList().equals(other.getDataExchangesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,97 +337,111 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse + 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.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse 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; } /** + * + * *
    * Message for response to listing data exchanges in an organization and
    * location.
@@ -389,39 +449,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse}
    */
-  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.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse)
       com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_fieldAccessorTable
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.class, com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.Builder.class);
+              com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.class,
+              com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.Builder
+                  .class);
     }
 
-    // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.newBuilder()
+    // Construct using
+    // com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.newBuilder()
     private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getDataExchangesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -437,19 +501,22 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_ListOrgDataExchangesResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse getDefaultInstanceForType() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.getDefaultInstance();
+    public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse
+        getDefaultInstanceForType() {
+      return com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse
+          .getDefaultInstance();
     }
 
     @java.lang.Override
     public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse build() {
-      com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse result = buildPartial();
+      com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse result =
+          buildPartial();
       if (!result.isInitialized()) {
         throw newUninitializedMessageException(result);
       }
@@ -457,8 +524,10 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRespon
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse buildPartial() {
-      com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse result = new com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse(this);
+    public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse
+        buildPartial() {
+      com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse result =
+          new com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse(this);
       int from_bitField0_ = bitField0_;
       if (dataExchangesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -478,46 +547,52 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesRespon
     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.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) {
-        return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse)other);
+      if (other
+          instanceof com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) {
+        return mergeFrom(
+            (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse other) {
-      if (other == com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse other) {
+      if (other
+          == com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse
+              .getDefaultInstance()) return this;
       if (dataExchangesBuilder_ == null) {
         if (!other.dataExchanges_.isEmpty()) {
           if (dataExchanges_.isEmpty()) {
@@ -536,9 +611,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgD
             dataExchangesBuilder_ = null;
             dataExchanges_ = other.dataExchanges_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            dataExchangesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getDataExchangesFieldBuilder() : null;
+            dataExchangesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getDataExchangesFieldBuilder()
+                    : null;
           } else {
             dataExchangesBuilder_.addAllMessages(other.dataExchanges_);
           }
@@ -563,11 +639,14 @@ public Builder mergeFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parsedMessage = null;
+      com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse parsedMessage =
+          null;
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -576,28 +655,39 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List dataExchanges_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        dataExchanges_ = java.util.Collections.emptyList();
+
     private void ensureDataExchangesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        dataExchanges_ = new java.util.ArrayList(dataExchanges_);
+        dataExchanges_ =
+            new java.util.ArrayList(
+                dataExchanges_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> dataExchangesBuilder_;
+            com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange,
+            com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder,
+            com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>
+        dataExchangesBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - public java.util.List getDataExchangesList() { + public java.util.List + getDataExchangesList() { if (dataExchangesBuilder_ == null) { return java.util.Collections.unmodifiableList(dataExchanges_); } else { @@ -605,11 +695,14 @@ public java.util.List * The list of data exchanges. *
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public int getDataExchangesCount() { if (dataExchangesBuilder_ == null) { @@ -619,11 +712,14 @@ public int getDataExchangesCount() { } } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchanges(int index) { if (dataExchangesBuilder_ == null) { @@ -633,11 +729,14 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchan } } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public Builder setDataExchanges( int index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { @@ -654,14 +753,18 @@ public Builder setDataExchanges( return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public Builder setDataExchanges( - int index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { + int index, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { if (dataExchangesBuilder_ == null) { ensureDataExchangesIsMutable(); dataExchanges_.set(index, builderForValue.build()); @@ -672,13 +775,17 @@ public Builder setDataExchanges( return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - public Builder addDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { + public Builder addDataExchanges( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { if (dataExchangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,11 +799,14 @@ public Builder addDataExchanges(com.google.cloud.bigquery.dataexchange.v1beta1.D return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public Builder addDataExchanges( int index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { @@ -713,11 +823,14 @@ public Builder addDataExchanges( return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public Builder addDataExchanges( com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { @@ -731,14 +844,18 @@ public Builder addDataExchanges( return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public Builder addDataExchanges( - int index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { + int index, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { if (dataExchangesBuilder_ == null) { ensureDataExchangesIsMutable(); dataExchanges_.add(index, builderForValue.build()); @@ -749,18 +866,21 @@ public Builder addDataExchanges( return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public Builder addAllDataExchanges( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (dataExchangesBuilder_ == null) { ensureDataExchangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataExchanges_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataExchanges_); onChanged(); } else { dataExchangesBuilder_.addAllMessages(values); @@ -768,11 +888,14 @@ public Builder addAllDataExchanges( return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public Builder clearDataExchanges() { if (dataExchangesBuilder_ == null) { @@ -785,11 +908,14 @@ public Builder clearDataExchanges() { return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ public Builder removeDataExchanges(int index) { if (dataExchangesBuilder_ == null) { @@ -802,39 +928,50 @@ public Builder removeDataExchanges(int index) { return this; } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder getDataExchangesBuilder( - int index) { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder + getDataExchangesBuilder(int index) { return getDataExchangesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangesOrBuilder( - int index) { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder + getDataExchangesOrBuilder(int index) { if (dataExchangesBuilder_ == null) { - return dataExchanges_.get(index); } else { + return dataExchanges_.get(index); + } else { return dataExchangesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - public java.util.List - getDataExchangesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> + getDataExchangesOrBuilderList() { if (dataExchangesBuilder_ != null) { return dataExchangesBuilder_.getMessageOrBuilderList(); } else { @@ -842,45 +979,64 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getD } } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder addDataExchangesBuilder() { - return getDataExchangesFieldBuilder().addBuilder( - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()); + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder + addDataExchangesBuilder() { + return getDataExchangesFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()); } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder addDataExchangesBuilder( - int index) { - return getDataExchangesFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()); + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder + addDataExchangesBuilder(int index) { + return getDataExchangesFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance()); } /** + * + * *
      * The list of data exchanges.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - public java.util.List - getDataExchangesBuilderList() { + public java.util.List + getDataExchangesBuilderList() { return getDataExchangesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> getDataExchangesFieldBuilder() { if (dataExchangesBuilder_ == null) { - dataExchangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>( + dataExchangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>( dataExchanges_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -892,18 +1048,20 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder addDa private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to request the next page of results.
      * 
* * 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; @@ -912,20 +1070,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of results.
      * 
* * 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 { @@ -933,61 +1092,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to request the next page of results.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -997,30 +1163,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOrgDataExchangesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListOrgDataExchangesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrgDataExchangesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListOrgDataExchangesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1032,9 +1201,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java index a87da4b..344275d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java @@ -1,73 +1,109 @@ +/* + * 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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface ListOrgDataExchangesResponseOrBuilder extends +public interface ListOrgDataExchangesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - java.util.List + java.util.List getDataExchangesList(); /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchanges(int index); /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ int getDataExchangesCount(); /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ - java.util.List + java.util.List getDataExchangesOrBuilderList(); /** + * + * *
    * The list of data exchanges.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; + * */ com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangesOrBuilder( int index); /** + * + * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to request the next page of results.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.java index 99f7e2c..46f6378 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * A listing is what gets published into a data exchange that a subscriber can
  * subscribe to. It contains a reference to the data source along with
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.Listing}
  */
-public final class Listing extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Listing extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.Listing)
     ListingOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Listing.newBuilder() to construct.
   private Listing(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Listing() {
     name_ = "";
     displayName_ = "";
@@ -36,16 +54,15 @@ private Listing() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Listing();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Listing(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -65,123 +82,150 @@ private Listing(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              displayName_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              description_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            primaryContact_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              primaryContact_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            documentation_ = s;
-            break;
-          }
-          case 50: {
-            com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder subBuilder = null;
-            if (sourceCase_ == 6) {
-              subBuilder = ((com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_).toBuilder();
+              documentation_ = s;
+              break;
             }
-            source_ =
-                input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_);
-              source_ = subBuilder.buildPartial();
+          case 50:
+            {
+              com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder
+                  subBuilder = null;
+              if (sourceCase_ == 6) {
+                subBuilder =
+                    ((com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource)
+                            source_)
+                        .toBuilder();
+              }
+              source_ =
+                  input.readMessage(
+                      com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource)
+                        source_);
+                source_ = subBuilder.buildPartial();
+              }
+              sourceCase_ = 6;
+              break;
             }
-            sourceCase_ = 6;
-            break;
-          }
-          case 56: {
-            int rawValue = input.readEnum();
-
-            state_ = rawValue;
-            break;
-          }
-          case 66: {
+          case 56:
+            {
+              int rawValue = input.readEnum();
 
-            icon_ = input.readBytes();
-            break;
-          }
-          case 74: {
-            com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder subBuilder = null;
-            if (dataProvider_ != null) {
-              subBuilder = dataProvider_.toBuilder();
+              state_ = rawValue;
+              break;
             }
-            dataProvider_ = input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(dataProvider_);
-              dataProvider_ = subBuilder.buildPartial();
+          case 66:
+            {
+              icon_ = input.readBytes();
+              break;
             }
+          case 74:
+            {
+              com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder subBuilder = null;
+              if (dataProvider_ != null) {
+                subBuilder = dataProvider_.toBuilder();
+              }
+              dataProvider_ =
+                  input.readMessage(
+                      com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(dataProvider_);
+                dataProvider_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 80: {
-            int rawValue = input.readEnum();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              categories_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            categories_.add(rawValue);
-            break;
-          }
-          case 82: {
-            int length = input.readRawVarint32();
-            int oldLimit = input.pushLimit(length);
-            while(input.getBytesUntilLimit() > 0) {
+          case 80:
+            {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                 categories_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000001;
               }
               categories_.add(rawValue);
+              break;
             }
-            input.popLimit(oldLimit);
-            break;
-          }
-          case 90: {
-            com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder subBuilder = null;
-            if (publisher_ != null) {
-              subBuilder = publisher_.toBuilder();
-            }
-            publisher_ = input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(publisher_);
-              publisher_ = subBuilder.buildPartial();
+          case 82:
+            {
+              int length = input.readRawVarint32();
+              int oldLimit = input.pushLimit(length);
+              while (input.getBytesUntilLimit() > 0) {
+                int rawValue = input.readEnum();
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  categories_ = new java.util.ArrayList();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                categories_.add(rawValue);
+              }
+              input.popLimit(oldLimit);
+              break;
             }
+          case 90:
+            {
+              com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder subBuilder = null;
+              if (publisher_ != null) {
+                subBuilder = publisher_.toBuilder();
+              }
+              publisher_ =
+                  input.readMessage(
+                      com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(publisher_);
+                publisher_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 98: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 98:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            requestAccess_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              requestAccess_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -189,8 +233,7 @@ private Listing(
     } 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)) {
         categories_ = java.util.Collections.unmodifiableList(categories_);
@@ -199,29 +242,35 @@ private Listing(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+        .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_fieldAccessorTable
+    return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+        .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder.class);
+            com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class,
+            com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * State of the listing.
    * 
* * Protobuf enum {@code google.cloud.bigquery.dataexchange.v1beta1.Listing.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value. This value is unused.
      * 
@@ -230,6 +279,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Subscribable state. Users with dataexchange.listings.subscribe permission
      * can subscribe to this listing.
@@ -242,6 +293,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Default value. This value is unused.
      * 
@@ -250,6 +303,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Subscribable state. Users with dataexchange.listings.subscribe permission
      * can subscribe to this listing.
@@ -259,7 +314,6 @@ public enum State
      */
     public static final int ACTIVE_VALUE = 1;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -284,48 +338,49 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return ACTIVE;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return ACTIVE;
+        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() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.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;
@@ -343,179 +398,99 @@ private State(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Listing categories.
    * 
* * Protobuf enum {@code google.cloud.bigquery.dataexchange.v1beta1.Listing.Category} */ - public enum Category - implements com.google.protobuf.ProtocolMessageEnum { - /** - * CATEGORY_UNSPECIFIED = 0; - */ + public enum Category implements com.google.protobuf.ProtocolMessageEnum { + /** CATEGORY_UNSPECIFIED = 0; */ CATEGORY_UNSPECIFIED(0), - /** - * CATEGORY_OTHERS = 1; - */ + /** CATEGORY_OTHERS = 1; */ CATEGORY_OTHERS(1), - /** - * CATEGORY_ADVERTISING_AND_MARKETING = 2; - */ + /** CATEGORY_ADVERTISING_AND_MARKETING = 2; */ CATEGORY_ADVERTISING_AND_MARKETING(2), - /** - * CATEGORY_COMMERCE = 3; - */ + /** CATEGORY_COMMERCE = 3; */ CATEGORY_COMMERCE(3), - /** - * CATEGORY_CLIMATE_AND_ENVIRONMENT = 4; - */ + /** CATEGORY_CLIMATE_AND_ENVIRONMENT = 4; */ CATEGORY_CLIMATE_AND_ENVIRONMENT(4), - /** - * CATEGORY_DEMOGRAPHICS = 5; - */ + /** CATEGORY_DEMOGRAPHICS = 5; */ CATEGORY_DEMOGRAPHICS(5), - /** - * CATEGORY_ECONOMICS = 6; - */ + /** CATEGORY_ECONOMICS = 6; */ CATEGORY_ECONOMICS(6), - /** - * CATEGORY_EDUCATION = 7; - */ + /** CATEGORY_EDUCATION = 7; */ CATEGORY_EDUCATION(7), - /** - * CATEGORY_ENERGY = 8; - */ + /** CATEGORY_ENERGY = 8; */ CATEGORY_ENERGY(8), - /** - * CATEGORY_FINANCIAL = 9; - */ + /** CATEGORY_FINANCIAL = 9; */ CATEGORY_FINANCIAL(9), - /** - * CATEGORY_GAMING = 10; - */ + /** CATEGORY_GAMING = 10; */ CATEGORY_GAMING(10), - /** - * CATEGORY_GEOSPATIAL = 11; - */ + /** CATEGORY_GEOSPATIAL = 11; */ CATEGORY_GEOSPATIAL(11), - /** - * CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE = 12; - */ + /** CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE = 12; */ CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE(12), - /** - * CATEGORY_MEDIA = 13; - */ + /** CATEGORY_MEDIA = 13; */ CATEGORY_MEDIA(13), - /** - * CATEGORY_PUBLIC_SECTOR = 14; - */ + /** CATEGORY_PUBLIC_SECTOR = 14; */ CATEGORY_PUBLIC_SECTOR(14), - /** - * CATEGORY_RETAIL = 15; - */ + /** CATEGORY_RETAIL = 15; */ CATEGORY_RETAIL(15), - /** - * CATEGORY_SPORTS = 16; - */ + /** CATEGORY_SPORTS = 16; */ CATEGORY_SPORTS(16), - /** - * CATEGORY_SCIENCE_AND_RESEARCH = 17; - */ + /** CATEGORY_SCIENCE_AND_RESEARCH = 17; */ CATEGORY_SCIENCE_AND_RESEARCH(17), - /** - * CATEGORY_TRANSPORTATION_AND_LOGISTICS = 18; - */ + /** CATEGORY_TRANSPORTATION_AND_LOGISTICS = 18; */ CATEGORY_TRANSPORTATION_AND_LOGISTICS(18), - /** - * CATEGORY_TRAVEL_AND_TOURISM = 19; - */ + /** CATEGORY_TRAVEL_AND_TOURISM = 19; */ CATEGORY_TRAVEL_AND_TOURISM(19), UNRECOGNIZED(-1), ; - /** - * CATEGORY_UNSPECIFIED = 0; - */ + /** CATEGORY_UNSPECIFIED = 0; */ public static final int CATEGORY_UNSPECIFIED_VALUE = 0; - /** - * CATEGORY_OTHERS = 1; - */ + /** CATEGORY_OTHERS = 1; */ public static final int CATEGORY_OTHERS_VALUE = 1; - /** - * CATEGORY_ADVERTISING_AND_MARKETING = 2; - */ + /** CATEGORY_ADVERTISING_AND_MARKETING = 2; */ public static final int CATEGORY_ADVERTISING_AND_MARKETING_VALUE = 2; - /** - * CATEGORY_COMMERCE = 3; - */ + /** CATEGORY_COMMERCE = 3; */ public static final int CATEGORY_COMMERCE_VALUE = 3; - /** - * CATEGORY_CLIMATE_AND_ENVIRONMENT = 4; - */ + /** CATEGORY_CLIMATE_AND_ENVIRONMENT = 4; */ public static final int CATEGORY_CLIMATE_AND_ENVIRONMENT_VALUE = 4; - /** - * CATEGORY_DEMOGRAPHICS = 5; - */ + /** CATEGORY_DEMOGRAPHICS = 5; */ public static final int CATEGORY_DEMOGRAPHICS_VALUE = 5; - /** - * CATEGORY_ECONOMICS = 6; - */ + /** CATEGORY_ECONOMICS = 6; */ public static final int CATEGORY_ECONOMICS_VALUE = 6; - /** - * CATEGORY_EDUCATION = 7; - */ + /** CATEGORY_EDUCATION = 7; */ public static final int CATEGORY_EDUCATION_VALUE = 7; - /** - * CATEGORY_ENERGY = 8; - */ + /** CATEGORY_ENERGY = 8; */ public static final int CATEGORY_ENERGY_VALUE = 8; - /** - * CATEGORY_FINANCIAL = 9; - */ + /** CATEGORY_FINANCIAL = 9; */ public static final int CATEGORY_FINANCIAL_VALUE = 9; - /** - * CATEGORY_GAMING = 10; - */ + /** CATEGORY_GAMING = 10; */ public static final int CATEGORY_GAMING_VALUE = 10; - /** - * CATEGORY_GEOSPATIAL = 11; - */ + /** CATEGORY_GEOSPATIAL = 11; */ public static final int CATEGORY_GEOSPATIAL_VALUE = 11; - /** - * CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE = 12; - */ + /** CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE = 12; */ public static final int CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE_VALUE = 12; - /** - * CATEGORY_MEDIA = 13; - */ + /** CATEGORY_MEDIA = 13; */ public static final int CATEGORY_MEDIA_VALUE = 13; - /** - * CATEGORY_PUBLIC_SECTOR = 14; - */ + /** CATEGORY_PUBLIC_SECTOR = 14; */ public static final int CATEGORY_PUBLIC_SECTOR_VALUE = 14; - /** - * CATEGORY_RETAIL = 15; - */ + /** CATEGORY_RETAIL = 15; */ public static final int CATEGORY_RETAIL_VALUE = 15; - /** - * CATEGORY_SPORTS = 16; - */ + /** CATEGORY_SPORTS = 16; */ public static final int CATEGORY_SPORTS_VALUE = 16; - /** - * CATEGORY_SCIENCE_AND_RESEARCH = 17; - */ + /** CATEGORY_SCIENCE_AND_RESEARCH = 17; */ public static final int CATEGORY_SCIENCE_AND_RESEARCH_VALUE = 17; - /** - * CATEGORY_TRANSPORTATION_AND_LOGISTICS = 18; - */ + /** CATEGORY_TRANSPORTATION_AND_LOGISTICS = 18; */ public static final int CATEGORY_TRANSPORTATION_AND_LOGISTICS_VALUE = 18; - /** - * CATEGORY_TRAVEL_AND_TOURISM = 19; - */ + /** CATEGORY_TRAVEL_AND_TOURISM = 19; */ public static final int CATEGORY_TRAVEL_AND_TOURISM_VALUE = 19; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -540,66 +515,85 @@ public static Category valueOf(int value) { */ public static Category forNumber(int value) { switch (value) { - case 0: return CATEGORY_UNSPECIFIED; - case 1: return CATEGORY_OTHERS; - case 2: return CATEGORY_ADVERTISING_AND_MARKETING; - case 3: return CATEGORY_COMMERCE; - case 4: return CATEGORY_CLIMATE_AND_ENVIRONMENT; - case 5: return CATEGORY_DEMOGRAPHICS; - case 6: return CATEGORY_ECONOMICS; - case 7: return CATEGORY_EDUCATION; - case 8: return CATEGORY_ENERGY; - case 9: return CATEGORY_FINANCIAL; - case 10: return CATEGORY_GAMING; - case 11: return CATEGORY_GEOSPATIAL; - case 12: return CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE; - case 13: return CATEGORY_MEDIA; - case 14: return CATEGORY_PUBLIC_SECTOR; - case 15: return CATEGORY_RETAIL; - case 16: return CATEGORY_SPORTS; - case 17: return CATEGORY_SCIENCE_AND_RESEARCH; - case 18: return CATEGORY_TRANSPORTATION_AND_LOGISTICS; - case 19: return CATEGORY_TRAVEL_AND_TOURISM; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return CATEGORY_UNSPECIFIED; + case 1: + return CATEGORY_OTHERS; + case 2: + return CATEGORY_ADVERTISING_AND_MARKETING; + case 3: + return CATEGORY_COMMERCE; + case 4: + return CATEGORY_CLIMATE_AND_ENVIRONMENT; + case 5: + return CATEGORY_DEMOGRAPHICS; + case 6: + return CATEGORY_ECONOMICS; + case 7: + return CATEGORY_EDUCATION; + case 8: + return CATEGORY_ENERGY; + case 9: + return CATEGORY_FINANCIAL; + case 10: + return CATEGORY_GAMING; + case 11: + return CATEGORY_GEOSPATIAL; + case 12: + return CATEGORY_HEALTHCARE_AND_LIFE_SCIENCE; + case 13: + return CATEGORY_MEDIA; + case 14: + return CATEGORY_PUBLIC_SECTOR; + case 15: + return CATEGORY_RETAIL; + case 16: + return CATEGORY_SPORTS; + case 17: + return CATEGORY_SCIENCE_AND_RESEARCH; + case 18: + return CATEGORY_TRANSPORTATION_AND_LOGISTICS; + case 19: + return CATEGORY_TRAVEL_AND_TOURISM; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Category> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Category findValueByNumber(int number) { - return Category.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 Category findValueByNumber(int number) { + return Category.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.bigquery.dataexchange.v1beta1.Listing.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDescriptor() + .getEnumTypes() + .get(1); } private static final Category[] VALUES = values(); - public static Category valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Category 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; @@ -616,33 +610,41 @@ private Category(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.dataexchange.v1beta1.Listing.Category) } - public interface BigQueryDatasetSourceOrBuilder extends + public interface BigQueryDatasetSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Resource name of the dataset source for this listing.
      * e.g. `projects/myproject/datasets/123`
      * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } + * * @return The dataset. */ java.lang.String getDataset(); /** + * + * *
      * Resource name of the dataset source for this listing.
      * e.g. `projects/myproject/datasets/123`
      * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for dataset. */ - com.google.protobuf.ByteString - getDatasetBytes(); + com.google.protobuf.ByteString getDatasetBytes(); } /** + * + * *
    * A reference to a shared dataset. It is an existing BigQuery dataset with a
    * collection of objects such as tables and views that you want to share
@@ -655,31 +657,31 @@ public interface BigQueryDatasetSourceOrBuilder extends
    *
    * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource}
    */
-  public static final class BigQueryDatasetSource extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class BigQueryDatasetSource extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource)
       BigQueryDatasetSourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use BigQueryDatasetSource.newBuilder() to construct.
     private BigQueryDatasetSource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private BigQueryDatasetSource() {
       dataset_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new BigQueryDatasetSource();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private BigQueryDatasetSource(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -698,19 +700,20 @@ private BigQueryDatasetSource(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              dataset_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                dataset_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -718,35 +721,41 @@ private BigQueryDatasetSource(
       } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_fieldAccessorTable
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.class, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder.class);
+              com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.class,
+              com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder
+                  .class);
     }
 
     public static final int DATASET_FIELD_NUMBER = 1;
     private volatile java.lang.Object dataset_;
     /**
+     *
+     *
      * 
      * Resource name of the dataset source for this listing.
      * e.g. `projects/myproject/datasets/123`
      * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } + * * @return The dataset. */ @java.lang.Override @@ -755,30 +764,30 @@ public java.lang.String getDataset() { 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(); dataset_ = s; return s; } } /** + * + * *
      * Resource name of the dataset source for this listing.
      * e.g. `projects/myproject/datasets/123`
      * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; 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); dataset_ = b; return b; } else { @@ -787,6 +796,7 @@ public java.lang.String getDataset() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -798,8 +808,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(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } @@ -823,15 +832,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.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource)) { + if (!(obj + instanceof + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource other = (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource other = + (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) obj; - if (!getDataset() - .equals(other.getDataset())) return false; + if (!getDataset().equals(other.getDataset())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -850,88 +861,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + 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.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource 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 @@ -941,6 +965,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A reference to a shared dataset. It is an existing BigQuery dataset with a
      * collection of objects such as tables and views that you want to share
@@ -951,40 +977,45 @@ protected Builder newBuilderForType(
      * dataset that serves as a _symbolic link_ to a shared dataset.
      * 
* - * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource} + * Protobuf type {@code + * google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource} */ - 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.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.class, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.class, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder + .class); } - // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.newBuilder() + // Construct using + // com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -994,19 +1025,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_BigQueryDatasetSource_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource build() { - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource result = buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1014,8 +1048,10 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSou } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource result = new com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource(this); + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + buildPartial() { + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource result = + new com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource(this); result.dataset_ = dataset_; onBuilt(); return result; @@ -1025,46 +1061,55 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSou 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.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource)other); + if (other + instanceof + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) { + return mergeFrom( + (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + .getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; onChanged(); @@ -1084,11 +1129,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parsedMessage = null; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1100,19 +1148,21 @@ public Builder mergeFrom( private java.lang.Object dataset_ = ""; /** + * + * *
        * Resource name of the dataset source for this listing.
        * e.g. `projects/myproject/datasets/123`
        * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } + * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; 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(); dataset_ = s; return s; @@ -1121,21 +1171,22 @@ public java.lang.String getDataset() { } } /** + * + * *
        * Resource name of the dataset source for this listing.
        * e.g. `projects/myproject/datasets/123`
        * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; 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); dataset_ = b; return b; } else { @@ -1143,61 +1194,69 @@ public java.lang.String getDataset() { } } /** + * + * *
        * Resource name of the dataset source for this listing.
        * e.g. `projects/myproject/datasets/123`
        * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } + * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset( - java.lang.String value) { + public Builder setDataset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** + * + * *
        * Resource name of the dataset source for this listing.
        * e.g. `projects/myproject/datasets/123`
        * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** + * + * *
        * Resource name of the dataset source for this listing.
        * e.g. `projects/myproject/datasets/123`
        * 
* * string dataset = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes( - com.google.protobuf.ByteString value) { + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1210,30 +1269,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.Listing + .BigQueryDatasetSource + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDatasetSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BigQueryDatasetSource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDatasetSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BigQueryDatasetSource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1245,20 +1308,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int sourceCase_ = 0; private java.lang.Object source_; + public enum SourceCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BIGQUERY_DATASET(6), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -1274,29 +1340,36 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 6: return BIGQUERY_DATASET; - case 0: return SOURCE_NOT_SET; - default: return null; + case 6: + return BIGQUERY_DATASET; + case 0: + return SOURCE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } public static final int BIGQUERY_DATASET_FIELD_NUMBER = 6; /** + * + * *
    * Required. Shared dataset i.e. BigQuery dataset source.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the bigqueryDataset field is set. */ @java.lang.Override @@ -1304,44 +1377,60 @@ public boolean hasBigqueryDataset() { return sourceCase_ == 6; } /** + * + * *
    * Required. Shared dataset i.e. BigQuery dataset source.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bigqueryDataset. */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource getBigqueryDataset() { + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + getBigqueryDataset() { if (sourceCase_ == 6) { - return (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_; + return (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_; } - return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance(); + return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + .getDefaultInstance(); } /** + * + * *
    * Required. Shared dataset i.e. BigQuery dataset source.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder getBigqueryDatasetOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder + getBigqueryDatasetOrBuilder() { if (sourceCase_ == 6) { - return (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_; + return (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_; } - return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance(); + return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + .getDefaultInstance(); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1350,30 +1439,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. The resource name of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
    * 
* * 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 { @@ -1384,6 +1473,8 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. Human-readable display name of the listing. The display name must contain
    * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
@@ -1393,6 +1484,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -1401,14 +1493,15 @@ 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; } } /** + * + * *
    * Required. Human-readable display name of the listing. The display name must contain
    * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
@@ -1418,16 +1511,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -1438,6 +1530,8 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Optional. Short description of the listing. The description must not contain
    * Unicode non-characters and C0 and C1 control codes except tabs (HT),
@@ -1447,6 +1541,7 @@ public java.lang.String getDisplayName() {
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -1455,14 +1550,15 @@ public java.lang.String getDescription() { 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(); description_ = s; return s; } } /** + * + * *
    * Optional. Short description of the listing. The description must not contain
    * Unicode non-characters and C0 and C1 control codes except tabs (HT),
@@ -1472,16 +1568,15 @@ public java.lang.String getDescription() {
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -1492,12 +1587,15 @@ public java.lang.String getDescription() { public static final int PRIMARY_CONTACT_FIELD_NUMBER = 4; private volatile java.lang.Object primaryContact_; /** + * + * *
    * Optional. Email or URL of the primary point of contact of the listing.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The primaryContact. */ @java.lang.Override @@ -1506,30 +1604,30 @@ public java.lang.String getPrimaryContact() { 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(); primaryContact_ = s; return s; } } /** + * + * *
    * Optional. Email or URL of the primary point of contact of the listing.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for primaryContact. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrimaryContactBytes() { + public com.google.protobuf.ByteString getPrimaryContactBytes() { java.lang.Object ref = primaryContact_; 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); primaryContact_ = b; return b; } else { @@ -1540,11 +1638,14 @@ public java.lang.String getPrimaryContact() { public static final int DOCUMENTATION_FIELD_NUMBER = 5; private volatile java.lang.Object documentation_; /** + * + * *
    * Optional. Documentation describing the listing.
    * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The documentation. */ @java.lang.Override @@ -1553,29 +1654,29 @@ public java.lang.String getDocumentation() { 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(); documentation_ = s; return s; } } /** + * + * *
    * Optional. Documentation describing the listing.
    * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for documentation. */ @java.lang.Override - public com.google.protobuf.ByteString - getDocumentationBytes() { + public com.google.protobuf.ByteString getDocumentationBytes() { java.lang.Object ref = documentation_; 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); documentation_ = b; return b; } else { @@ -1586,33 +1687,50 @@ public java.lang.String getDocumentation() { public static final int STATE_FIELD_NUMBER = 7; private int state_; /** + * + * *
    * Output only. Current state of the listing.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.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. Current state of the listing.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State getState() { + @java.lang.Override + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State result = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.valueOf(state_); - return result == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.UNRECOGNIZED : result; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State result = + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.valueOf(state_); + return result == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.UNRECOGNIZED + : result; } public static final int ICON_FIELD_NUMBER = 8; private com.google.protobuf.ByteString icon_; /** + * + * *
    * Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB
    * Expected image dimensions are 512x512 pixels, however the API only
@@ -1622,6 +1740,7 @@ public java.lang.String getDocumentation() {
    * 
* * bytes icon = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The icon. */ @java.lang.Override @@ -1632,11 +1751,16 @@ public com.google.protobuf.ByteString getIcon() { public static final int DATA_PROVIDER_FIELD_NUMBER = 9; private com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider dataProvider_; /** + * + * *
    * Optional. Details of the data provider who owns the source data.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the dataProvider field is set. */ @java.lang.Override @@ -1644,60 +1768,90 @@ public boolean hasDataProvider() { return dataProvider_ != null; } /** + * + * *
    * Optional. Details of the data provider who owns the source data.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The dataProvider. */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider getDataProvider() { - return dataProvider_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.getDefaultInstance() : dataProvider_; + return dataProvider_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.getDefaultInstance() + : dataProvider_; } /** + * + * *
    * Optional. Details of the data provider who owns the source data.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder getDataProviderOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder + getDataProviderOrBuilder() { return getDataProvider(); } public static final int CATEGORIES_FIELD_NUMBER = 10; private java.util.List categories_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category> categories_converter_ = + java.lang.Integer, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category> + categories_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category>() { - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category convert(java.lang.Integer from) { + java.lang.Integer, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category>() { + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category convert( + java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category result = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category.valueOf(from); - return result == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category.UNRECOGNIZED : result; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category result = + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category.valueOf(from); + return result == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category.UNRECOGNIZED + : result; } }; /** + * + * *
    * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the categories. */ @java.lang.Override - public java.util.List getCategoriesList() { + public java.util.List + getCategoriesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category>(categories_, categories_converter_); + java.lang.Integer, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category>( + categories_, categories_converter_); } /** + * + * *
    * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of categories. */ @java.lang.Override @@ -1705,11 +1859,16 @@ public int getCategoriesCount() { return categories_.size(); } /** + * + * *
    * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The categories at the given index. */ @@ -1718,24 +1877,33 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category getCatego return categories_converter_.convert(categories_.get(index)); } /** + * + * *
    * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for categories. */ @java.lang.Override - public java.util.List - getCategoriesValueList() { + public java.util.List getCategoriesValueList() { return categories_; } /** + * + * *
    * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of categories at the given index. */ @@ -1743,17 +1911,23 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category getCatego public int getCategoriesValue(int index) { return categories_.get(index); } + private int categoriesMemoizedSerializedSize; public static final int PUBLISHER_FIELD_NUMBER = 11; private com.google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher_; /** + * + * *
    * Optional. Details of the publisher who owns the listing and who can share
    * the source data.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the publisher field is set. */ @java.lang.Override @@ -1761,25 +1935,36 @@ public boolean hasPublisher() { return publisher_ != null; } /** + * + * *
    * Optional. Details of the publisher who owns the listing and who can share
    * the source data.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The publisher. */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher getPublisher() { - return publisher_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.getDefaultInstance() : publisher_; + return publisher_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.getDefaultInstance() + : publisher_; } /** + * + * *
    * Optional. Details of the publisher who owns the listing and who can share
    * the source data.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder getPublisherOrBuilder() { @@ -1789,6 +1974,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder getPubl public static final int REQUEST_ACCESS_FIELD_NUMBER = 12; private volatile java.lang.Object requestAccess_; /** + * + * *
    * Optional. Email or URL of the request access of the listing.
    * Subscribers can use this reference to request access.
@@ -1796,6 +1983,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder getPubl
    * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestAccess. */ @java.lang.Override @@ -1804,14 +1992,15 @@ public java.lang.String getRequestAccess() { 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(); requestAccess_ = s; return s; } } /** + * + * *
    * Optional. Email or URL of the request access of the listing.
    * Subscribers can use this reference to request access.
@@ -1819,16 +2008,15 @@ public java.lang.String getRequestAccess() {
    * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestAccess. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestAccessBytes() { + public com.google.protobuf.ByteString getRequestAccessBytes() { java.lang.Object ref = requestAccess_; 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); requestAccess_ = b; return b; } else { @@ -1837,6 +2025,7 @@ public java.lang.String getRequestAccess() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1848,8 +2037,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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); @@ -1867,9 +2055,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 5, documentation_); } if (sourceCase_ == 6) { - output.writeMessage(6, (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_); + output.writeMessage( + 6, + (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_); } - if (state_ != com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(7, state_); } if (!icon_.isEmpty()) { @@ -1916,36 +2108,37 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, documentation_); } if (sourceCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, + (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) + source_); } - if (state_ != com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, state_); + if (state_ + != com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); } if (!icon_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, icon_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, icon_); } if (dataProvider_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getDataProvider()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDataProvider()); } { int dataSize = 0; for (int i = 0; i < categories_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(categories_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(categories_.get(i)); } size += dataSize; - if (!getCategoriesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }categoriesMemoizedSerializedSize = dataSize; + if (!getCategoriesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + categoriesMemoizedSerializedSize = dataSize; } if (publisher_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getPublisher()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getPublisher()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestAccess_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, requestAccess_); @@ -1958,44 +2151,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.bigquery.dataexchange.v1beta1.Listing)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.Listing other = (com.google.cloud.bigquery.dataexchange.v1beta1.Listing) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getPrimaryContact() - .equals(other.getPrimaryContact())) return false; - if (!getDocumentation() - .equals(other.getDocumentation())) return false; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing other = + (com.google.cloud.bigquery.dataexchange.v1beta1.Listing) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getPrimaryContact().equals(other.getPrimaryContact())) return false; + if (!getDocumentation().equals(other.getDocumentation())) return false; if (state_ != other.state_) return false; - if (!getIcon() - .equals(other.getIcon())) return false; + if (!getIcon().equals(other.getIcon())) return false; if (hasDataProvider() != other.hasDataProvider()) return false; if (hasDataProvider()) { - if (!getDataProvider() - .equals(other.getDataProvider())) return false; + if (!getDataProvider().equals(other.getDataProvider())) return false; } if (!categories_.equals(other.categories_)) return false; if (hasPublisher() != other.hasPublisher()) return false; if (hasPublisher()) { - if (!getPublisher() - .equals(other.getPublisher())) return false; + if (!getPublisher().equals(other.getPublisher())) return false; } - if (!getRequestAccess() - .equals(other.getRequestAccess())) return false; + if (!getRequestAccess().equals(other.getRequestAccess())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 6: - if (!getBigqueryDataset() - .equals(other.getBigqueryDataset())) return false; + if (!getBigqueryDataset().equals(other.getBigqueryDataset())) return false; break; case 0: default: @@ -2053,96 +2237,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing 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 listing is what gets published into a data exchange that a subscriber can
    * subscribe to. It contains a reference to the data source along with
@@ -2152,21 +2344,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.Listing}
    */
-  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.bigquery.dataexchange.v1beta1.Listing)
       com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_fieldAccessorTable
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder.class);
+              com.google.cloud.bigquery.dataexchange.v1beta1.Listing.class,
+              com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.Listing.newBuilder()
@@ -2174,16 +2368,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();
@@ -2223,9 +2416,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto
+          .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Listing_descriptor;
     }
 
     @java.lang.Override
@@ -2244,7 +2437,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.dataexchange.v1beta1.Listing buildPartial() {
-      com.google.cloud.bigquery.dataexchange.v1beta1.Listing result = new com.google.cloud.bigquery.dataexchange.v1beta1.Listing(this);
+      com.google.cloud.bigquery.dataexchange.v1beta1.Listing result =
+          new com.google.cloud.bigquery.dataexchange.v1beta1.Listing(this);
       int from_bitField0_ = bitField0_;
       if (sourceCase_ == 6) {
         if (bigqueryDatasetBuilder_ == null) {
@@ -2285,38 +2479,39 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing 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.bigquery.dataexchange.v1beta1.Listing) {
-        return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.Listing)other);
+        return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.Listing) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2324,7 +2519,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.Listing other) {
-      if (other == com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2372,13 +2568,15 @@ public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.Listing
         onChanged();
       }
       switch (other.getSourceCase()) {
-        case BIGQUERY_DATASET: {
-          mergeBigqueryDataset(other.getBigqueryDataset());
-          break;
-        }
-        case SOURCE_NOT_SET: {
-          break;
-        }
+        case BIGQUERY_DATASET:
+          {
+            mergeBigqueryDataset(other.getBigqueryDataset());
+            break;
+          }
+        case SOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -2399,7 +2597,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.Listing) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.bigquery.dataexchange.v1beta1.Listing) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2408,12 +2607,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int sourceCase_ = 0;
     private java.lang.Object source_;
-    public SourceCase
-        getSourceCase() {
-      return SourceCase.forNumber(
-          sourceCase_);
+
+    public SourceCase getSourceCase() {
+      return SourceCase.forNumber(sourceCase_);
     }
 
     public Builder clearSource() {
@@ -2426,13 +2625,21 @@ public Builder clearSource() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder> bigqueryDatasetBuilder_;
+            com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource,
+            com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder,
+            com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder>
+        bigqueryDatasetBuilder_;
     /**
+     *
+     *
      * 
      * Required. Shared dataset i.e. BigQuery dataset source.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the bigqueryDataset field is set. */ @java.lang.Override @@ -2440,35 +2647,49 @@ public boolean hasBigqueryDataset() { return sourceCase_ == 6; } /** + * + * *
      * Required. Shared dataset i.e. BigQuery dataset source.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bigqueryDataset. */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource getBigqueryDataset() { + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + getBigqueryDataset() { if (bigqueryDatasetBuilder_ == null) { if (sourceCase_ == 6) { - return (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_; + return (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) + source_; } - return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance(); + return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + .getDefaultInstance(); } else { if (sourceCase_ == 6) { return bigqueryDatasetBuilder_.getMessage(); } - return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance(); + return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + .getDefaultInstance(); } } /** + * + * *
      * Required. Shared dataset i.e. BigQuery dataset source.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBigqueryDataset(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource value) { + public Builder setBigqueryDataset( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource value) { if (bigqueryDatasetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2482,14 +2703,19 @@ public Builder setBigqueryDataset(com.google.cloud.bigquery.dataexchange.v1beta1 return this; } /** + * + * *
      * Required. Shared dataset i.e. BigQuery dataset source.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBigqueryDataset( - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder builderForValue) { + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder + builderForValue) { if (bigqueryDatasetBuilder_ == null) { source_ = builderForValue.build(); onChanged(); @@ -2500,18 +2726,30 @@ public Builder setBigqueryDataset( return this; } /** + * + * *
      * Required. Shared dataset i.e. BigQuery dataset source.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeBigqueryDataset(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource value) { + public Builder mergeBigqueryDataset( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource value) { if (bigqueryDatasetBuilder_ == null) { - if (sourceCase_ == 6 && - source_ != com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance()) { - source_ = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.newBuilder((com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_) - .mergeFrom(value).buildPartial(); + if (sourceCase_ == 6 + && source_ + != com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + .getDefaultInstance()) { + source_ = + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + .newBuilder( + (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) + source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -2527,11 +2765,15 @@ public Builder mergeBigqueryDataset(com.google.cloud.bigquery.dataexchange.v1bet return this; } /** + * + * *
      * Required. Shared dataset i.e. BigQuery dataset source.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBigqueryDataset() { if (bigqueryDatasetBuilder_ == null) { @@ -2550,74 +2792,103 @@ public Builder clearBigqueryDataset() { return this; } /** + * + * *
      * Required. Shared dataset i.e. BigQuery dataset source.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder getBigqueryDatasetBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder + getBigqueryDatasetBuilder() { return getBigqueryDatasetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Shared dataset i.e. BigQuery dataset source.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder getBigqueryDatasetOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder + getBigqueryDatasetOrBuilder() { if ((sourceCase_ == 6) && (bigqueryDatasetBuilder_ != null)) { return bigqueryDatasetBuilder_.getMessageOrBuilder(); } else { if (sourceCase_ == 6) { - return (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_; + return (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) + source_; } - return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance(); + return com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + .getDefaultInstance(); } } /** + * + * *
      * Required. Shared dataset i.e. BigQuery dataset source.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder> getBigqueryDatasetFieldBuilder() { if (bigqueryDatasetBuilder_ == null) { if (!(sourceCase_ == 6)) { - source_ = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.getDefaultInstance(); + source_ = + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + .getDefaultInstance(); } - bigqueryDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder>( - (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) source_, + bigqueryDatasetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource + .Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing + .BigQueryDatasetSourceOrBuilder>( + (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource) + source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 6; - onChanged();; + onChanged(); + ; return bigqueryDatasetBuilder_; } private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
      * 
* * 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; @@ -2626,21 +2897,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
      * 
* * 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 { @@ -2648,57 +2920,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
      * 
* * 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. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
      * 
* * 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. The resource name of the listing.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
      * 
* * 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; @@ -2706,6 +2985,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. Human-readable display name of the listing. The display name must contain
      * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
@@ -2715,13 +2996,13 @@ public Builder setNameBytes(
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -2730,6 +3011,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Human-readable display name of the listing. The display name must contain
      * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
@@ -2739,15 +3022,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -2755,6 +3037,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Human-readable display name of the listing. The display name must contain
      * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
@@ -2764,20 +3048,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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; } /** + * + * *
      * Required. Human-readable display name of the listing. The display name must contain
      * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
@@ -2787,15 +3073,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Required. Human-readable display name of the listing. The display name must contain
      * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
@@ -2805,16 +3094,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -2822,6 +3111,8 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Optional. Short description of the listing. The description must not contain
      * Unicode non-characters and C0 and C1 control codes except tabs (HT),
@@ -2831,13 +3122,13 @@ public Builder setDisplayNameBytes(
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; @@ -2846,6 +3137,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. Short description of the listing. The description must not contain
      * Unicode non-characters and C0 and C1 control codes except tabs (HT),
@@ -2855,15 +3148,14 @@ public java.lang.String getDescription() {
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -2871,6 +3163,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. Short description of the listing. The description must not contain
      * Unicode non-characters and C0 and C1 control codes except tabs (HT),
@@ -2880,20 +3174,22 @@ public java.lang.String getDescription() {
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Short description of the listing. The description must not contain
      * Unicode non-characters and C0 and C1 control codes except tabs (HT),
@@ -2903,15 +3199,18 @@ public Builder setDescription(
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. Short description of the listing. The description must not contain
      * Unicode non-characters and C0 and C1 control codes except tabs (HT),
@@ -2921,16 +3220,16 @@ public Builder clearDescription() {
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2938,19 +3237,21 @@ public Builder setDescriptionBytes( private java.lang.Object primaryContact_ = ""; /** + * + * *
      * Optional. Email or URL of the primary point of contact of the listing.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The primaryContact. */ public java.lang.String getPrimaryContact() { java.lang.Object ref = primaryContact_; 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(); primaryContact_ = s; return s; @@ -2959,21 +3260,22 @@ public java.lang.String getPrimaryContact() { } } /** + * + * *
      * Optional. Email or URL of the primary point of contact of the listing.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for primaryContact. */ - public com.google.protobuf.ByteString - getPrimaryContactBytes() { + public com.google.protobuf.ByteString getPrimaryContactBytes() { java.lang.Object ref = primaryContact_; 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); primaryContact_ = b; return b; } else { @@ -2981,57 +3283,64 @@ public java.lang.String getPrimaryContact() { } } /** + * + * *
      * Optional. Email or URL of the primary point of contact of the listing.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The primaryContact to set. * @return This builder for chaining. */ - public Builder setPrimaryContact( - java.lang.String value) { + public Builder setPrimaryContact(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + primaryContact_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Email or URL of the primary point of contact of the listing.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPrimaryContact() { - + primaryContact_ = getDefaultInstance().getPrimaryContact(); onChanged(); return this; } /** + * + * *
      * Optional. Email or URL of the primary point of contact of the listing.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for primaryContact to set. * @return This builder for chaining. */ - public Builder setPrimaryContactBytes( - com.google.protobuf.ByteString value) { + public Builder setPrimaryContactBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryContact_ = value; onChanged(); return this; @@ -3039,18 +3348,20 @@ public Builder setPrimaryContactBytes( private java.lang.Object documentation_ = ""; /** + * + * *
      * Optional. Documentation describing the listing.
      * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The documentation. */ public java.lang.String getDocumentation() { java.lang.Object ref = documentation_; 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(); documentation_ = s; return s; @@ -3059,20 +3370,21 @@ public java.lang.String getDocumentation() { } } /** + * + * *
      * Optional. Documentation describing the listing.
      * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for documentation. */ - public com.google.protobuf.ByteString - getDocumentationBytes() { + public com.google.protobuf.ByteString getDocumentationBytes() { java.lang.Object ref = documentation_; 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); documentation_ = b; return b; } else { @@ -3080,54 +3392,61 @@ public java.lang.String getDocumentation() { } } /** + * + * *
      * Optional. Documentation describing the listing.
      * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The documentation to set. * @return This builder for chaining. */ - public Builder setDocumentation( - java.lang.String value) { + public Builder setDocumentation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + documentation_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Documentation describing the listing.
      * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDocumentation() { - + documentation_ = getDefaultInstance().getDocumentation(); onChanged(); return this; } /** + * + * *
      * Optional. Documentation describing the listing.
      * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for documentation to set. * @return This builder for chaining. */ - public Builder setDocumentationBytes( - com.google.protobuf.ByteString value) { + public Builder setDocumentationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentation_ = value; onChanged(); return this; @@ -3135,51 +3454,75 @@ public Builder setDocumentationBytes( private int state_ = 0; /** + * + * *
      * Output only. Current state of the listing.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.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. Current state of the listing.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.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. Current state of the listing.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State result = com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.valueOf(state_); - return result == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.UNRECOGNIZED : result; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State result = + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.valueOf(state_); + return result == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Current state of the listing.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -3187,21 +3530,26 @@ public Builder setState(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.S if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Current state of the listing.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -3209,6 +3557,8 @@ public Builder clearState() { private com.google.protobuf.ByteString icon_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB
      * Expected image dimensions are 512x512 pixels, however the API only
@@ -3218,6 +3568,7 @@ public Builder clearState() {
      * 
* * bytes icon = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The icon. */ @java.lang.Override @@ -3225,6 +3576,8 @@ public com.google.protobuf.ByteString getIcon() { return icon_; } /** + * + * *
      * Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB
      * Expected image dimensions are 512x512 pixels, however the API only
@@ -3234,19 +3587,22 @@ public com.google.protobuf.ByteString getIcon() {
      * 
* * bytes icon = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The icon to set. * @return This builder for chaining. */ public Builder setIcon(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + icon_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB
      * Expected image dimensions are 512x512 pixels, however the API only
@@ -3256,10 +3612,11 @@ public Builder setIcon(com.google.protobuf.ByteString value) {
      * 
* * bytes icon = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIcon() { - + icon_ = getDefaultInstance().getIcon(); onChanged(); return this; @@ -3267,41 +3624,61 @@ public Builder clearIcon() { private com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider dataProvider_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider, com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder> dataProviderBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider, + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder> + dataProviderBuilder_; /** + * + * *
      * Optional. Details of the data provider who owns the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the dataProvider field is set. */ public boolean hasDataProvider() { return dataProviderBuilder_ != null || dataProvider_ != null; } /** + * + * *
      * Optional. Details of the data provider who owns the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The dataProvider. */ public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider getDataProvider() { if (dataProviderBuilder_ == null) { - return dataProvider_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.getDefaultInstance() : dataProvider_; + return dataProvider_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.getDefaultInstance() + : dataProvider_; } else { return dataProviderBuilder_.getMessage(); } } /** + * + * *
      * Optional. Details of the data provider who owns the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDataProvider(com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider value) { + public Builder setDataProvider( + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider value) { if (dataProviderBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3315,11 +3692,15 @@ public Builder setDataProvider(com.google.cloud.bigquery.dataexchange.v1beta1.Da return this; } /** + * + * *
      * Optional. Details of the data provider who owns the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDataProvider( com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder builderForValue) { @@ -3333,17 +3714,24 @@ public Builder setDataProvider( return this; } /** + * + * *
      * Optional. Details of the data provider who owns the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeDataProvider(com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider value) { + public Builder mergeDataProvider( + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider value) { if (dataProviderBuilder_ == null) { if (dataProvider_ != null) { dataProvider_ = - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.newBuilder(dataProvider_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.newBuilder(dataProvider_) + .mergeFrom(value) + .buildPartial(); } else { dataProvider_ = value; } @@ -3355,11 +3743,15 @@ public Builder mergeDataProvider(com.google.cloud.bigquery.dataexchange.v1beta1. return this; } /** + * + * *
      * Optional. Details of the data provider who owns the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearDataProvider() { if (dataProviderBuilder_ == null) { @@ -3373,55 +3765,73 @@ public Builder clearDataProvider() { return this; } /** + * + * *
      * Optional. Details of the data provider who owns the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder getDataProviderBuilder() { - + public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder + getDataProviderBuilder() { + onChanged(); return getDataProviderFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Details of the data provider who owns the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder getDataProviderOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder + getDataProviderOrBuilder() { if (dataProviderBuilder_ != null) { return dataProviderBuilder_.getMessageOrBuilder(); } else { - return dataProvider_ == null ? - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.getDefaultInstance() : dataProvider_; + return dataProvider_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.getDefaultInstance() + : dataProvider_; } } /** + * + * *
      * Optional. Details of the data provider who owns the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider, com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider, + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder> getDataProviderFieldBuilder() { if (dataProviderBuilder_ == null) { - dataProviderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider, com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder>( - getDataProvider(), - getParentForChildren(), - isClean()); + dataProviderBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider, + com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder>( + getDataProvider(), getParentForChildren(), isClean()); dataProvider_ = null; } return dataProviderBuilder_; } - private java.util.List categories_ = - java.util.Collections.emptyList(); + private java.util.List categories_ = java.util.Collections.emptyList(); + private void ensureCategoriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { categories_ = new java.util.ArrayList(categories_); @@ -3429,46 +3839,69 @@ private void ensureCategoriesIsMutable() { } } /** + * + * *
      * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the categories. */ - public java.util.List getCategoriesList() { + public java.util.List + getCategoriesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category>(categories_, categories_converter_); + java.lang.Integer, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category>( + categories_, categories_converter_); } /** + * + * *
      * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of categories. */ public int getCategoriesCount() { return categories_.size(); } /** + * + * *
      * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The categories at the given index. */ - public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category getCategories(int index) { + public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category getCategories( + int index) { return categories_converter_.convert(categories_.get(index)); } /** + * + * *
      * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The categories to set. * @return This builder for chaining. @@ -3484,15 +3917,21 @@ public Builder setCategories( return this; } /** + * + * *
      * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The categories to add. * @return This builder for chaining. */ - public Builder addCategories(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category value) { + public Builder addCategories( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category value) { if (value == null) { throw new NullPointerException(); } @@ -3502,16 +3941,23 @@ public Builder addCategories(com.google.cloud.bigquery.dataexchange.v1beta1.List return this; } /** + * + * *
      * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The categories to add. * @return This builder for chaining. */ public Builder addAllCategories( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category> + values) { ensureCategoriesIsMutable(); for (com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category value : values) { categories_.add(value.getNumber()); @@ -3520,11 +3966,16 @@ public Builder addAllCategories( return this; } /** + * + * *
      * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearCategories() { @@ -3534,23 +3985,32 @@ public Builder clearCategories() { return this; } /** + * + * *
      * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for categories. */ - public java.util.List - getCategoriesValueList() { + public java.util.List getCategoriesValueList() { return java.util.Collections.unmodifiableList(categories_); } /** + * + * *
      * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of categories at the given index. */ @@ -3558,28 +4018,37 @@ public int getCategoriesValue(int index) { return categories_.get(index); } /** + * + * *
      * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for categories to set. * @return This builder for chaining. */ - public Builder setCategoriesValue( - int index, int value) { + public Builder setCategoriesValue(int index, int value) { ensureCategoriesIsMutable(); categories_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for categories to add. * @return This builder for chaining. */ @@ -3590,16 +4059,20 @@ public Builder addCategoriesValue(int value) { return this; } /** + * + * *
      * Optional. Categories of the listing. Up to two categories are allowed.
      * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The enum numeric values on the wire for categories to add. * @return This builder for chaining. */ - public Builder addAllCategoriesValue( - java.lang.Iterable values) { + public Builder addAllCategoriesValue(java.lang.Iterable values) { ensureCategoriesIsMutable(); for (int value : values) { categories_.add(value); @@ -3610,42 +4083,61 @@ public Builder addAllCategoriesValue( private com.google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher, com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder> publisherBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher, + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder> + publisherBuilder_; /** + * + * *
      * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the publisher field is set. */ public boolean hasPublisher() { return publisherBuilder_ != null || publisher_ != null; } /** + * + * *
      * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The publisher. */ public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher getPublisher() { if (publisherBuilder_ == null) { - return publisher_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.getDefaultInstance() : publisher_; + return publisher_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.getDefaultInstance() + : publisher_; } else { return publisherBuilder_.getMessage(); } } /** + * + * *
      * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPublisher(com.google.cloud.bigquery.dataexchange.v1beta1.Publisher value) { if (publisherBuilder_ == null) { @@ -3661,12 +4153,16 @@ public Builder setPublisher(com.google.cloud.bigquery.dataexchange.v1beta1.Publi return this; } /** + * + * *
      * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPublisher( com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder builderForValue) { @@ -3680,18 +4176,24 @@ public Builder setPublisher( return this; } /** + * + * *
      * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePublisher(com.google.cloud.bigquery.dataexchange.v1beta1.Publisher value) { if (publisherBuilder_ == null) { if (publisher_ != null) { publisher_ = - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.newBuilder(publisher_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.newBuilder(publisher_) + .mergeFrom(value) + .buildPartial(); } else { publisher_ = value; } @@ -3703,12 +4205,16 @@ public Builder mergePublisher(com.google.cloud.bigquery.dataexchange.v1beta1.Pub return this; } /** + * + * *
      * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPublisher() { if (publisherBuilder_ == null) { @@ -3722,51 +4228,68 @@ public Builder clearPublisher() { return this; } /** + * + * *
      * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder getPublisherBuilder() { - + onChanged(); return getPublisherFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder getPublisherOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder + getPublisherOrBuilder() { if (publisherBuilder_ != null) { return publisherBuilder_.getMessageOrBuilder(); } else { - return publisher_ == null ? - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.getDefaultInstance() : publisher_; + return publisher_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.getDefaultInstance() + : publisher_; } } /** + * + * *
      * Optional. Details of the publisher who owns the listing and who can share
      * the source data.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher, com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher, + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder> getPublisherFieldBuilder() { if (publisherBuilder_ == null) { - publisherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher, com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder>( - getPublisher(), - getParentForChildren(), - isClean()); + publisherBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher, + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder>( + getPublisher(), getParentForChildren(), isClean()); publisher_ = null; } return publisherBuilder_; @@ -3774,6 +4297,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder getPubl private java.lang.Object requestAccess_ = ""; /** + * + * *
      * Optional. Email or URL of the request access of the listing.
      * Subscribers can use this reference to request access.
@@ -3781,13 +4306,13 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder getPubl
      * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestAccess. */ public java.lang.String getRequestAccess() { java.lang.Object ref = requestAccess_; 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(); requestAccess_ = s; return s; @@ -3796,6 +4321,8 @@ public java.lang.String getRequestAccess() { } } /** + * + * *
      * Optional. Email or URL of the request access of the listing.
      * Subscribers can use this reference to request access.
@@ -3803,15 +4330,14 @@ public java.lang.String getRequestAccess() {
      * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestAccess. */ - public com.google.protobuf.ByteString - getRequestAccessBytes() { + public com.google.protobuf.ByteString getRequestAccessBytes() { java.lang.Object ref = requestAccess_; 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); requestAccess_ = b; return b; } else { @@ -3819,6 +4345,8 @@ public java.lang.String getRequestAccess() { } } /** + * + * *
      * Optional. Email or URL of the request access of the listing.
      * Subscribers can use this reference to request access.
@@ -3826,20 +4354,22 @@ public java.lang.String getRequestAccess() {
      * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestAccess to set. * @return This builder for chaining. */ - public Builder setRequestAccess( - java.lang.String value) { + public Builder setRequestAccess(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestAccess_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Email or URL of the request access of the listing.
      * Subscribers can use this reference to request access.
@@ -3847,15 +4377,18 @@ public Builder setRequestAccess(
      * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestAccess() { - + requestAccess_ = getDefaultInstance().getRequestAccess(); onChanged(); return this; } /** + * + * *
      * Optional. Email or URL of the request access of the listing.
      * Subscribers can use this reference to request access.
@@ -3863,23 +4396,23 @@ public Builder clearRequestAccess() {
      * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestAccess to set. * @return This builder for chaining. */ - public Builder setRequestAccessBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestAccessBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestAccess_ = 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); } @@ -3889,12 +4422,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.Listing) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.Listing) private static final com.google.cloud.bigquery.dataexchange.v1beta1.Listing DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.Listing(); } @@ -3903,16 +4436,16 @@ public static com.google.cloud.bigquery.dataexchange.v1beta1.Listing getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Listing parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Listing(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Listing parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Listing(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3927,6 +4460,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingName.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingName.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java index ebf3109..6f7a931 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java @@ -1,62 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface ListingOrBuilder extends +public interface ListingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.Listing) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Shared dataset i.e. BigQuery dataset source.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the bigqueryDataset field is set. */ boolean hasBigqueryDataset(); /** + * + * *
    * Required. Shared dataset i.e. BigQuery dataset source.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bigqueryDataset. */ com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource getBigqueryDataset(); /** + * + * *
    * Required. Shared dataset i.e. BigQuery dataset source.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder getBigqueryDatasetOrBuilder(); + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSourceOrBuilder + getBigqueryDatasetOrBuilder(); /** + * + * *
    * Output only. The resource name of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the listing.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Human-readable display name of the listing. The display name must contain
    * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
@@ -66,10 +104,13 @@ public interface ListingOrBuilder extends
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Human-readable display name of the listing. The display name must contain
    * only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
@@ -79,12 +120,14 @@ public interface ListingOrBuilder extends
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. Short description of the listing. The description must not contain
    * Unicode non-characters and C0 and C1 control codes except tabs (HT),
@@ -94,10 +137,13 @@ public interface ListingOrBuilder extends
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. Short description of the listing. The description must not contain
    * Unicode non-characters and C0 and C1 control codes except tabs (HT),
@@ -107,73 +153,95 @@ public interface ListingOrBuilder extends
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Optional. Email or URL of the primary point of contact of the listing.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The primaryContact. */ java.lang.String getPrimaryContact(); /** + * + * *
    * Optional. Email or URL of the primary point of contact of the listing.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for primaryContact. */ - com.google.protobuf.ByteString - getPrimaryContactBytes(); + com.google.protobuf.ByteString getPrimaryContactBytes(); /** + * + * *
    * Optional. Documentation describing the listing.
    * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The documentation. */ java.lang.String getDocumentation(); /** + * + * *
    * Optional. Documentation describing the listing.
    * 
* * string documentation = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for documentation. */ - com.google.protobuf.ByteString - getDocumentationBytes(); + com.google.protobuf.ByteString getDocumentationBytes(); /** + * + * *
    * Output only. Current state of the listing.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. Current state of the listing.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State getState(); /** + * + * *
    * Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB
    * Expected image dimensions are 512x512 pixels, however the API only
@@ -183,117 +251,173 @@ public interface ListingOrBuilder extends
    * 
* * bytes icon = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The icon. */ com.google.protobuf.ByteString getIcon(); /** + * + * *
    * Optional. Details of the data provider who owns the source data.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the dataProvider field is set. */ boolean hasDataProvider(); /** + * + * *
    * Optional. Details of the data provider who owns the source data.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The dataProvider. */ com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider getDataProvider(); /** + * + * *
    * Optional. Details of the data provider who owns the source data.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataProvider data_provider = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.bigquery.dataexchange.v1beta1.DataProviderOrBuilder getDataProviderOrBuilder(); /** + * + * *
    * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the categories. */ - java.util.List getCategoriesList(); + java.util.List + getCategoriesList(); /** + * + * *
    * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of categories. */ int getCategoriesCount(); /** + * + * *
    * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The categories at the given index. */ com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category getCategories(int index); /** + * + * *
    * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for categories. */ - java.util.List - getCategoriesValueList(); + java.util.List getCategoriesValueList(); /** + * + * *
    * Optional. Categories of the listing. Up to two categories are allowed.
    * 
* - * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.dataexchange.v1beta1.Listing.Category categories = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of categories at the given index. */ int getCategoriesValue(int index); /** + * + * *
    * Optional. Details of the publisher who owns the listing and who can share
    * the source data.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the publisher field is set. */ boolean hasPublisher(); /** + * + * *
    * Optional. Details of the publisher who owns the listing and who can share
    * the source data.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The publisher. */ com.google.cloud.bigquery.dataexchange.v1beta1.Publisher getPublisher(); /** + * + * *
    * Optional. Details of the publisher who owns the listing and who can share
    * the source data.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Publisher publisher = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder getPublisherOrBuilder(); /** + * + * *
    * Optional. Email or URL of the request access of the listing.
    * Subscribers can use this reference to request access.
@@ -301,10 +425,13 @@ public interface ListingOrBuilder extends
    * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestAccess. */ java.lang.String getRequestAccess(); /** + * + * *
    * Optional. Email or URL of the request access of the listing.
    * Subscribers can use this reference to request access.
@@ -312,10 +439,10 @@ public interface ListingOrBuilder extends
    * 
* * string request_access = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestAccess. */ - com.google.protobuf.ByteString - getRequestAccessBytes(); + com.google.protobuf.ByteString getRequestAccessBytes(); public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.SourceCase getSourceCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/LocationName.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/LocationName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/LocationName.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/LocationName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.java index 614a887..092c831 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Contains details of the listing publisher.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.Publisher} */ -public final class Publisher extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Publisher extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.Publisher) PublisherOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Publisher.newBuilder() to construct. private Publisher(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Publisher() { name_ = ""; primaryContact_ = ""; @@ -26,16 +44,15 @@ private Publisher() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Publisher(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Publisher( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private Publisher( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - primaryContact_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + primaryContact_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,39 @@ private Publisher( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.class, com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.class, + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Optional. Name of the listing publisher.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ @java.lang.Override @@ -116,29 +140,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Optional. Name of the listing publisher.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -149,12 +173,15 @@ public java.lang.String getName() { public static final int PRIMARY_CONTACT_FIELD_NUMBER = 2; private volatile java.lang.Object primaryContact_; /** + * + * *
    * Optional. Email or URL of the listing publisher.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The primaryContact. */ @java.lang.Override @@ -163,30 +190,30 @@ public java.lang.String getPrimaryContact() { 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(); primaryContact_ = s; return s; } } /** + * + * *
    * Optional. Email or URL of the listing publisher.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for primaryContact. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrimaryContactBytes() { + public com.google.protobuf.ByteString getPrimaryContactBytes() { java.lang.Object ref = primaryContact_; 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); primaryContact_ = b; return b; } else { @@ -195,6 +222,7 @@ public java.lang.String getPrimaryContact() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +234,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_); } @@ -237,17 +264,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.bigquery.dataexchange.v1beta1.Publisher)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher other = (com.google.cloud.bigquery.dataexchange.v1beta1.Publisher) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher other = + (com.google.cloud.bigquery.dataexchange.v1beta1.Publisher) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getPrimaryContact() - .equals(other.getPrimaryContact())) return false; + if (!getName().equals(other.getName())) return false; + if (!getPrimaryContact().equals(other.getPrimaryContact())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -269,117 +295,127 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.Publisher parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.Publisher parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher 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; } /** + * + * *
    * Contains details of the listing publisher.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.Publisher} */ - 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.bigquery.dataexchange.v1beta1.Publisher) com.google.cloud.bigquery.dataexchange.v1beta1.PublisherOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.class, com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.class, + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder.class); } // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.newBuilder() @@ -387,16 +423,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(); @@ -408,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_Publisher_descriptor; } @java.lang.Override @@ -429,7 +464,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher build() { @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.Publisher result = new com.google.cloud.bigquery.dataexchange.v1beta1.Publisher(this); + com.google.cloud.bigquery.dataexchange.v1beta1.Publisher result = + new com.google.cloud.bigquery.dataexchange.v1beta1.Publisher(this); result.name_ = name_; result.primaryContact_ = primaryContact_; onBuilt(); @@ -440,38 +476,39 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher 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.bigquery.dataexchange.v1beta1.Publisher) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.Publisher)other); + return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.Publisher) other); } else { super.mergeFrom(other); return this; @@ -479,7 +516,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.Publisher other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -507,7 +545,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.Publisher) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.Publisher) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -519,18 +558,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Optional. Name of the listing publisher.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -539,20 +580,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Optional. Name of the listing publisher.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -560,54 +602,61 @@ public java.lang.String getName() { } } /** + * + * *
      * Optional. Name of the listing publisher.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. Name of the listing publisher.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Optional. Name of the listing publisher.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -615,19 +664,21 @@ public Builder setNameBytes( private java.lang.Object primaryContact_ = ""; /** + * + * *
      * Optional. Email or URL of the listing publisher.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The primaryContact. */ public java.lang.String getPrimaryContact() { java.lang.Object ref = primaryContact_; 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(); primaryContact_ = s; return s; @@ -636,21 +687,22 @@ public java.lang.String getPrimaryContact() { } } /** + * + * *
      * Optional. Email or URL of the listing publisher.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for primaryContact. */ - public com.google.protobuf.ByteString - getPrimaryContactBytes() { + public com.google.protobuf.ByteString getPrimaryContactBytes() { java.lang.Object ref = primaryContact_; 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); primaryContact_ = b; return b; } else { @@ -658,64 +710,71 @@ public java.lang.String getPrimaryContact() { } } /** + * + * *
      * Optional. Email or URL of the listing publisher.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The primaryContact to set. * @return This builder for chaining. */ - public Builder setPrimaryContact( - java.lang.String value) { + public Builder setPrimaryContact(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + primaryContact_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Email or URL of the listing publisher.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPrimaryContact() { - + primaryContact_ = getDefaultInstance().getPrimaryContact(); onChanged(); return this; } /** + * + * *
      * Optional. Email or URL of the listing publisher.
      * Max Length: 1000 bytes.
      * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for primaryContact to set. * @return This builder for chaining. */ - public Builder setPrimaryContactBytes( - com.google.protobuf.ByteString value) { + public Builder setPrimaryContactBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + primaryContact_ = 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); } @@ -725,12 +784,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.Publisher) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.Publisher) private static final com.google.cloud.bigquery.dataexchange.v1beta1.Publisher DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.Publisher(); } @@ -739,16 +798,16 @@ public static com.google.cloud.bigquery.dataexchange.v1beta1.Publisher getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Publisher parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Publisher(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Publisher parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Publisher(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -763,6 +822,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java index 811770b..98e04b7 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java @@ -1,51 +1,77 @@ +/* + * 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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface PublisherOrBuilder extends +public interface PublisherOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.Publisher) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Name of the listing publisher.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Optional. Name of the listing publisher.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. Email or URL of the listing publisher.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The primaryContact. */ java.lang.String getPrimaryContact(); /** + * + * *
    * Optional. Email or URL of the listing publisher.
    * Max Length: 1000 bytes.
    * 
* * string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for primaryContact. */ - com.google.protobuf.ByteString - getPrimaryContactBytes(); + com.google.protobuf.ByteString getPrimaryContactBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.java index 32e0dd1..8bf7120 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Message for subscribing to a listing.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest} */ -public final class SubscribeListingRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SubscribeListingRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) SubscribeListingRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SubscribeListingRequest.newBuilder() to construct. private SubscribeListingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SubscribeListingRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SubscribeListingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SubscribeListingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,33 +70,43 @@ private SubscribeListingRequest( 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 26: { - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder subBuilder = null; - if (destinationCase_ == 3) { - subBuilder = ((com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_).toBuilder(); + name_ = s; + break; } - destination_ = - input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_); - destination_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder subBuilder = + null; + if (destinationCase_ == 3) { + subBuilder = + ((com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) + destination_) + .toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) + destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 3; + break; } - destinationCase_ = 3; - 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) { @@ -87,34 +114,39 @@ private SubscribeListingRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; + public enum DestinationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DESTINATION_DATASET(3), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -130,29 +162,35 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 3: return DESTINATION_DATASET; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 3: + return DESTINATION_DATASET; + case 0: + return DESTINATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public static final int DESTINATION_DATASET_FIELD_NUMBER = 3; /** + * + * *
    * BigQuery destination dataset to create for the subscriber.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * + * * @return Whether the destinationDataset field is set. */ @java.lang.Override @@ -160,31 +198,39 @@ public boolean hasDestinationDataset() { return destinationCase_ == 3; } /** + * + * *
    * BigQuery destination dataset to create for the subscriber.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * + * * @return The destinationDataset. */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset getDestinationDataset() { if (destinationCase_ == 3) { - return (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_; + return (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_; } return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance(); } /** + * + * *
    * BigQuery destination dataset to create for the subscriber.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder getDestinationDatasetOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder + getDestinationDatasetOrBuilder() { if (destinationCase_ == 3) { - return (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_; + return (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_; } return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance(); } @@ -192,12 +238,17 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilde public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Resource name of the listing that you want to subscribe to.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
    * 
* - * 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 @@ -206,30 +257,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 listing that you want to subscribe to.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
    * 
* - * 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 { @@ -238,6 +291,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,13 +303,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 (destinationCase_ == 3) { - output.writeMessage(3, (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_); + output.writeMessage( + 3, (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_); } unknownFields.writeTo(output); } @@ -270,8 +324,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (destinationCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -281,20 +336,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.bigquery.dataexchange.v1beta1.SubscribeListingRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest other = + (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 3: - if (!getDestinationDataset() - .equals(other.getDestinationDataset())) return false; + if (!getDestinationDataset().equals(other.getDestinationDataset())) return false; break; case 0: default: @@ -326,134 +380,145 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest 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; } /** + * + * *
    * Message for subscribing to a listing.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest} */ - 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest) com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.newBuilder() + // Construct using + // com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -465,19 +530,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest build() { - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest result = buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -486,7 +554,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest bu @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest result = + new com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest(this); if (destinationCase_ == 3) { if (destinationDatasetBuilder_ == null) { result.destination_ = destination_; @@ -504,58 +573,65 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest bu 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.bigquery.dataexchange.v1beta1.SubscribeListingRequest) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } switch (other.getDestinationCase()) { - case DESTINATION_DATASET: { - mergeDestinationDataset(other.getDestinationDataset()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case DESTINATION_DATASET: + { + mergeDestinationDataset(other.getDestinationDataset()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -576,7 +652,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -585,12 +663,12 @@ public Builder mergeFrom( } return this; } + private int destinationCase_ = 0; private java.lang.Object destination_; - public DestinationCase - getDestinationCase() { - return DestinationCase.forNumber( - destinationCase_); + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); } public Builder clearDestination() { @@ -600,15 +678,21 @@ public Builder clearDestination() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder> destinationDatasetBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset, + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder> + destinationDatasetBuilder_; /** + * + * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * + * * @return Whether the destinationDataset field is set. */ @java.lang.Override @@ -616,35 +700,46 @@ public boolean hasDestinationDataset() { return destinationCase_ == 3; } /** + * + * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * + * * @return The destinationDataset. */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset getDestinationDataset() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset + getDestinationDataset() { if (destinationDatasetBuilder_ == null) { if (destinationCase_ == 3) { return (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_; } - return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance(); + return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset + .getDefaultInstance(); } else { if (destinationCase_ == 3) { return destinationDatasetBuilder_.getMessage(); } - return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance(); + return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset + .getDefaultInstance(); } } /** + * + * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * */ - public Builder setDestinationDataset(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset value) { + public Builder setDestinationDataset( + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset value) { if (destinationDatasetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -658,11 +753,14 @@ public Builder setDestinationDataset(com.google.cloud.bigquery.dataexchange.v1be return this; } /** + * + * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * */ public Builder setDestinationDataset( com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder builderForValue) { @@ -676,18 +774,28 @@ public Builder setDestinationDataset( return this; } /** + * + * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * */ - public Builder mergeDestinationDataset(com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset value) { + public Builder mergeDestinationDataset( + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset value) { if (destinationDatasetBuilder_ == null) { - if (destinationCase_ == 3 && - destination_ != com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance()) { - destination_ = com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.newBuilder((com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 3 + && destination_ + != com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset + .getDefaultInstance()) { + destination_ = + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.newBuilder( + (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) + destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -703,11 +811,14 @@ public Builder mergeDestinationDataset(com.google.cloud.bigquery.dataexchange.v1 return this; } /** + * + * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * */ public Builder clearDestinationDataset() { if (destinationDatasetBuilder_ == null) { @@ -726,74 +837,98 @@ public Builder clearDestinationDataset() { return this; } /** + * + * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder getDestinationDatasetBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder + getDestinationDatasetBuilder() { return getDestinationDatasetFieldBuilder().getBuilder(); } /** + * + * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder getDestinationDatasetOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder + getDestinationDatasetOrBuilder() { if ((destinationCase_ == 3) && (destinationDatasetBuilder_ != null)) { return destinationDatasetBuilder_.getMessageOrBuilder(); } else { if (destinationCase_ == 3) { return (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_; } - return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance(); + return com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset + .getDefaultInstance(); } } /** + * + * *
      * BigQuery destination dataset to create for the subscriber.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset, + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder> getDestinationDatasetFieldBuilder() { if (destinationDatasetBuilder_ == null) { if (!(destinationCase_ == 3)) { - destination_ = com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.getDefaultInstance(); + destination_ = + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset + .getDefaultInstance(); } - destinationDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder>( + destinationDatasetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset, + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder>( (com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 3; - onChanged();; + onChanged(); + ; return destinationDatasetBuilder_; } private java.lang.Object name_ = ""; /** + * + * *
      * Required. Resource name of the listing that you want to subscribe to.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * 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; @@ -802,21 +937,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the listing that you want to subscribe to.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * 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 { @@ -824,64 +962,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Resource name of the listing that you want to subscribe to.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * 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 listing that you want to subscribe to.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * 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 listing that you want to subscribe to.
      * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
      * 
* - * 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); } @@ -891,30 +1042,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubscribeListingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubscribeListingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubscribeListingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubscribeListingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -926,9 +1079,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java index 25b2a4d..a690e50 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java @@ -1,60 +1,98 @@ +/* + * 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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface SubscribeListingRequestOrBuilder extends +public interface SubscribeListingRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * BigQuery destination dataset to create for the subscriber.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * + * * @return Whether the destinationDataset field is set. */ boolean hasDestinationDataset(); /** + * + * *
    * BigQuery destination dataset to create for the subscriber.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * + * * @return The destinationDataset. */ com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset getDestinationDataset(); /** + * + * *
    * BigQuery destination dataset to create for the subscriber.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; + * */ - com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder getDestinationDatasetOrBuilder(); + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetOrBuilder + getDestinationDatasetOrBuilder(); /** + * + * *
    * Required. Resource name of the listing that you want to subscribe to.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
    * 
* - * 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 listing that you want to subscribe to.
    * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`.
    * 
* - * 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(); - public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.DestinationCase getDestinationCase(); + public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest.DestinationCase + getDestinationCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java index ee58b80..586551c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Message for response when you subscribe to a listing.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse} */ -public final class SubscribeListingResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SubscribeListingResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) SubscribeListingResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SubscribeListingResponse.newBuilder() to construct. private SubscribeListingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SubscribeListingResponse() { - } + + private SubscribeListingResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SubscribeListingResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SubscribeListingResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private SubscribeListingResponse( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private SubscribeListingResponse( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.class, com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.class, + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,8 +117,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -117,12 +135,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse other = (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse other = + (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,134 +160,146 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse 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; } /** + * + * *
    * Message for response when you subscribe to a listing.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse} */ - 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse) com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.class, com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.class, + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.Builder + .class); } - // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.newBuilder() + // Construct using + // com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,19 +307,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse build() { - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse result = buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -297,7 +331,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse b @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse result = new com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse(this); + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse result = + new com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse(this); onBuilt(); return result; } @@ -306,46 +341,52 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse b 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.bigquery.dataexchange.v1beta1.SubscribeListingResponse) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse)other); + if (other + instanceof com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) { + return mergeFrom( + (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse + .getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -365,7 +406,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +417,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -386,30 +429,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubscribeListingResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubscribeListingResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubscribeListingResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubscribeListingResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -421,9 +467,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponseOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponseOrBuilder.java new file mode 100644 index 0000000..f4b3119 --- /dev/null +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto + +package com.google.cloud.bigquery.dataexchange.v1beta1; + +public interface SubscribeListingResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.java index c5ad138..4d27bd4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Message for updating a data exchange.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest} */ -public final class UpdateDataExchangeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateDataExchangeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) UpdateDataExchangeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateDataExchangeRequest.newBuilder() to construct. private UpdateDataExchangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateDataExchangeRequest() { - } + + private UpdateDataExchangeRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateDataExchangeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateDataExchangeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,45 @@ private UpdateDataExchangeRequest( 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.bigquery.dataexchange.v1beta1.DataExchange.Builder subBuilder = null; - if (dataExchange_ != null) { - subBuilder = dataExchange_.toBuilder(); - } - dataExchange_ = input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataExchange_); - dataExchange_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder subBuilder = null; + if (dataExchange_ != null) { + subBuilder = dataExchange_.toBuilder(); + } + dataExchange_ = + input.readMessage( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataExchange_); + dataExchange_ = 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,36 +114,42 @@ private UpdateDataExchangeRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Field mask specifies the fields to update in the data exchange
    * resource. The fields specified in the
    * `updateMask` are relative to the resource and are not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -129,13 +157,17 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Field mask specifies the fields to update in the data exchange
    * resource. The fields specified in the
    * `updateMask` are relative to the resource and are not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -143,13 +175,16 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Field mask specifies the fields to update in the data exchange
    * resource. The fields specified in the
    * `updateMask` are relative to the resource and are not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -159,11 +194,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int DATA_EXCHANGE_FIELD_NUMBER = 2; private com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange dataExchange_; /** + * + * *
    * Required. The data exchange to update.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataExchange field is set. */ @java.lang.Override @@ -171,30 +211,43 @@ public boolean hasDataExchange() { return dataExchange_ != null; } /** + * + * *
    * Required. The data exchange to update.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataExchange. */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange() { - return dataExchange_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() : dataExchange_; + return dataExchange_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() + : dataExchange_; } /** + * + * *
    * Required. The data exchange to update.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangeOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder + getDataExchangeOrBuilder() { return getDataExchange(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +259,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -224,12 +276,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 (dataExchange_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDataExchange()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataExchange()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -239,22 +289,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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest)) { + if (!(obj + instanceof com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest other = + (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasDataExchange() != other.hasDataExchange()) return false; if (hasDataExchange()) { - if (!getDataExchange() - .equals(other.getDataExchange())) return false; + if (!getDataExchange().equals(other.getDataExchange())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -281,134 +331,146 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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; } /** + * + * *
    * Message for updating a data exchange.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest} */ - 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.Builder + .class); } - // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.newBuilder() + // Construct using + // com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -428,19 +490,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateDataExchangeRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest build() { - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest result = buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -449,7 +514,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest result = + new com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -468,46 +534,52 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest 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.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest)other); + if (other + instanceof com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) { + return mergeFrom( + (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest + .getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -533,7 +605,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -545,45 +619,61 @@ 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_; /** + * + * *
      * Required. Field mask specifies the fields to update in the data exchange
      * resource. The fields specified in the
      * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Field mask specifies the fields to update in the data exchange
      * resource. The fields specified in the
      * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @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(); } } /** + * + * *
      * Required. Field mask specifies the fields to update in the data exchange
      * resource. The fields specified in the
      * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -599,16 +689,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Field mask specifies the fields to update in the data exchange
      * resource. The fields specified in the
      * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - 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(); @@ -619,19 +711,22 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Field mask specifies the fields to update in the data exchange
      * resource. The fields specified in the
      * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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; } @@ -643,13 +738,16 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Field mask specifies the fields to update in the data exchange
      * resource. The fields specified in the
      * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -663,54 +761,67 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Field mask specifies the fields to update in the data exchange
      * resource. The fields specified in the
      * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Field mask specifies the fields to update in the data exchange
      * resource. The fields specified in the
      * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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_; } } /** + * + * *
      * Required. Field mask specifies the fields to update in the data exchange
      * resource. The fields specified in the
      * `updateMask` are relative to the resource and are not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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_; @@ -718,41 +829,61 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange dataExchange_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> dataExchangeBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> + dataExchangeBuilder_; /** + * + * *
      * Required. The data exchange to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataExchange field is set. */ public boolean hasDataExchange() { return dataExchangeBuilder_ != null || dataExchange_ != null; } /** + * + * *
      * Required. The data exchange to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataExchange. */ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange() { if (dataExchangeBuilder_ == null) { - return dataExchange_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() : dataExchange_; + return dataExchange_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() + : dataExchange_; } else { return dataExchangeBuilder_.getMessage(); } } /** + * + * *
      * Required. The data exchange to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { + public Builder setDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { if (dataExchangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -766,11 +897,15 @@ public Builder setDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.Da return this; } /** + * + * *
      * Required. The data exchange to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDataExchange( com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder builderForValue) { @@ -784,17 +919,24 @@ public Builder setDataExchange( return this; } /** + * + * *
      * Required. The data exchange to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { + public Builder mergeDataExchange( + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange value) { if (dataExchangeBuilder_ == null) { if (dataExchange_ != null) { dataExchange_ = - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.newBuilder(dataExchange_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.newBuilder(dataExchange_) + .mergeFrom(value) + .buildPartial(); } else { dataExchange_ = value; } @@ -806,11 +948,15 @@ public Builder mergeDataExchange(com.google.cloud.bigquery.dataexchange.v1beta1. return this; } /** + * + * *
      * Required. The data exchange to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDataExchange() { if (dataExchangeBuilder_ == null) { @@ -824,55 +970,73 @@ public Builder clearDataExchange() { return this; } /** + * + * *
      * Required. The data exchange to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder getDataExchangeBuilder() { - + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder + getDataExchangeBuilder() { + onChanged(); return getDataExchangeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The data exchange to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangeOrBuilder() { + public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder + getDataExchangeOrBuilder() { if (dataExchangeBuilder_ != null) { return dataExchangeBuilder_.getMessageOrBuilder(); } else { - return dataExchange_ == null ? - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() : dataExchange_; + return dataExchange_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.getDefaultInstance() + : dataExchange_; } } /** + * + * *
      * Required. The data exchange to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder> getDataExchangeFieldBuilder() { if (dataExchangeBuilder_ == null) { - dataExchangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>( - getDataExchange(), - getParentForChildren(), - isClean()); + dataExchangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder>( + getDataExchange(), getParentForChildren(), isClean()); dataExchange_ = null; } return dataExchangeBuilder_; } + @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); } @@ -882,30 +1046,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDataExchangeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateDataExchangeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDataExchangeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateDataExchangeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -917,9 +1084,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java index a4af639..c0bd3d0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java @@ -1,69 +1,110 @@ +/* + * 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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface UpdateDataExchangeRequestOrBuilder extends +public interface UpdateDataExchangeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Field mask specifies the fields to update in the data exchange
    * resource. The fields specified in the
    * `updateMask` are relative to the resource and are not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Field mask specifies the fields to update in the data exchange
    * resource. The fields specified in the
    * `updateMask` are relative to the resource and are not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Field mask specifies the fields to update in the data exchange
    * resource. The fields specified in the
    * `updateMask` are relative to the resource and are not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The data exchange to update.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataExchange field is set. */ boolean hasDataExchange(); /** + * + * *
    * Required. The data exchange to update.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataExchange. */ com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange(); /** + * + * *
    * Required. The data exchange to update.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchange = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeOrBuilder getDataExchangeOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.java index c62f277..7cd90fa 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; /** + * + * *
  * Message for updating a Listing.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest} */ -public final class UpdateListingRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateListingRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) UpdateListingRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateListingRequest.newBuilder() to construct. private UpdateListingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateListingRequest() { - } + + private UpdateListingRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateListingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateListingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,45 @@ private UpdateListingRequest( 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.bigquery.dataexchange.v1beta1.Listing.Builder subBuilder = null; - if (listing_ != null) { - subBuilder = listing_.toBuilder(); - } - listing_ = input.readMessage(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(listing_); - listing_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder subBuilder = null; + if (listing_ != null) { + subBuilder = listing_.toBuilder(); + } + listing_ = + input.readMessage( + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(listing_); + listing_ = 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,36 +114,42 @@ private UpdateListingRequest( } 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.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Field mask specifies the fields to update in the listing resource. The
    * fields specified in the `updateMask` are relative to the resource and are
    * not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -129,13 +157,17 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Field mask specifies the fields to update in the listing resource. The
    * fields specified in the `updateMask` are relative to the resource and are
    * not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -143,13 +175,16 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Field mask specifies the fields to update in the listing resource. The
    * fields specified in the `updateMask` are relative to the resource and are
    * not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -159,11 +194,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int LISTING_FIELD_NUMBER = 2; private com.google.cloud.bigquery.dataexchange.v1beta1.Listing listing_; /** + * + * *
    * Required. The listing to update.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the listing field is set. */ @java.lang.Override @@ -171,23 +211,34 @@ public boolean hasListing() { return listing_ != null; } /** + * + * *
    * Required. The listing to update.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The listing. */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing() { - return listing_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() : listing_; + return listing_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() + : listing_; } /** + * + * *
    * Required. The listing to update.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingOrBuilder() { @@ -195,6 +246,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListin } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +258,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -224,12 +275,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 (listing_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getListing()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getListing()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -239,22 +288,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.bigquery.dataexchange.v1beta1.UpdateListingRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest other = (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) obj; + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest other = + (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasListing() != other.hasListing()) return false; if (hasListing()) { - if (!getListing() - .equals(other.getListing())) return false; + if (!getListing().equals(other.getListing())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -281,134 +329,145 @@ public int hashCode() { } public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest 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.bigquery.dataexchange.v1beta1.UpdateListingRequest 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.bigquery.dataexchange.v1beta1.UpdateListingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest 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.bigquery.dataexchange.v1beta1.UpdateListingRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest 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.bigquery.dataexchange.v1beta1.UpdateListingRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest 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.bigquery.dataexchange.v1beta1.UpdateListingRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest 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.bigquery.dataexchange.v1beta1.UpdateListingRequest 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.bigquery.dataexchange.v1beta1.UpdateListingRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest 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; } /** + * + * *
    * Message for updating a Listing.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest} */ - 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.bigquery.dataexchange.v1beta1.UpdateListingRequest) com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_fieldAccessorTable + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.class, com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.Builder.class); + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.class, + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.newBuilder() + // Construct using + // com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -428,14 +487,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto.internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.DataExchangeProto + .internal_static_google_cloud_bigquery_dataexchange_v1beta1_UpdateListingRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.getDefaultInstance(); + public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest + .getDefaultInstance(); } @java.lang.Override @@ -449,7 +510,8 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest build @java.lang.Override public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest buildPartial() { - com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest result = new com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest(this); + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest result = + new com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -468,46 +530,51 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest build 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.bigquery.dataexchange.v1beta1.UpdateListingRequest) { - return mergeFrom((com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest other) { - if (other == com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest other) { + if (other + == com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest + .getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -533,7 +600,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -545,45 +614,61 @@ 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_; /** + * + * *
      * Required. Field mask specifies the fields to update in the listing resource. The
      * fields specified in the `updateMask` are relative to the resource and are
      * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Field mask specifies the fields to update in the listing resource. The
      * fields specified in the `updateMask` are relative to the resource and are
      * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @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(); } } /** + * + * *
      * Required. Field mask specifies the fields to update in the listing resource. The
      * fields specified in the `updateMask` are relative to the resource and are
      * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -599,16 +684,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Field mask specifies the fields to update in the listing resource. The
      * fields specified in the `updateMask` are relative to the resource and are
      * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - 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(); @@ -619,19 +706,22 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Field mask specifies the fields to update in the listing resource. The
      * fields specified in the `updateMask` are relative to the resource and are
      * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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; } @@ -643,13 +733,16 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Field mask specifies the fields to update in the listing resource. The
      * fields specified in the `updateMask` are relative to the resource and are
      * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -663,54 +756,67 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Field mask specifies the fields to update in the listing resource. The
      * fields specified in the `updateMask` are relative to the resource and are
      * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Field mask specifies the fields to update in the listing resource. The
      * fields specified in the `updateMask` are relative to the resource and are
      * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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_; } } /** + * + * *
      * Required. Field mask specifies the fields to update in the listing resource. The
      * fields specified in the `updateMask` are relative to the resource and are
      * not a full request.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ 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_; @@ -718,39 +824,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.bigquery.dataexchange.v1beta1.Listing listing_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> listingBuilder_; + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> + listingBuilder_; /** + * + * *
      * Required. The listing to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the listing field is set. */ public boolean hasListing() { return listingBuilder_ != null || listing_ != null; } /** + * + * *
      * Required. The listing to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The listing. */ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing() { if (listingBuilder_ == null) { - return listing_ == null ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() : listing_; + return listing_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() + : listing_; } else { return listingBuilder_.getMessage(); } } /** + * + * *
      * Required. The listing to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setListing(com.google.cloud.bigquery.dataexchange.v1beta1.Listing value) { if (listingBuilder_ == null) { @@ -766,11 +891,15 @@ public Builder setListing(com.google.cloud.bigquery.dataexchange.v1beta1.Listing return this; } /** + * + * *
      * Required. The listing to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setListing( com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder builderForValue) { @@ -784,17 +913,23 @@ public Builder setListing( return this; } /** + * + * *
      * Required. The listing to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeListing(com.google.cloud.bigquery.dataexchange.v1beta1.Listing value) { if (listingBuilder_ == null) { if (listing_ != null) { listing_ = - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.newBuilder(listing_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.newBuilder(listing_) + .mergeFrom(value) + .buildPartial(); } else { listing_ = value; } @@ -806,11 +941,15 @@ public Builder mergeListing(com.google.cloud.bigquery.dataexchange.v1beta1.Listi return this; } /** + * + * *
      * Required. The listing to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearListing() { if (listingBuilder_ == null) { @@ -824,55 +963,71 @@ public Builder clearListing() { return this; } /** + * + * *
      * Required. The listing to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder getListingBuilder() { - + onChanged(); return getListingFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The listing to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingOrBuilder() { if (listingBuilder_ != null) { return listingBuilder_.getMessageOrBuilder(); } else { - return listing_ == null ? - com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() : listing_; + return listing_ == null + ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.getDefaultInstance() + : listing_; } } /** + * + * *
      * Required. The listing to update.
      * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder> getListingFieldBuilder() { if (listingBuilder_ == null) { - listingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.dataexchange.v1beta1.Listing, com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder>( - getListing(), - getParentForChildren(), - isClean()); + listingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.dataexchange.v1beta1.Listing, + com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Builder, + com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder>( + getListing(), getParentForChildren(), isClean()); listing_ = null; } return listingBuilder_; } + @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); } @@ -882,30 +1037,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) - private static final com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest(); } - public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest getDefaultInstance() { + public static com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateListingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateListingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateListingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateListingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -917,9 +1074,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java index 13117c0..7bb5aa1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java +++ b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java @@ -1,69 +1,110 @@ +/* + * 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/bigquery/dataexchange/v1beta1/dataexchange.proto package com.google.cloud.bigquery.dataexchange.v1beta1; -public interface UpdateListingRequestOrBuilder extends +public interface UpdateListingRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.dataexchange.v1beta1.UpdateListingRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Field mask specifies the fields to update in the listing resource. The
    * fields specified in the `updateMask` are relative to the resource and are
    * not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Field mask specifies the fields to update in the listing resource. The
    * fields specified in the `updateMask` are relative to the resource and are
    * not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Field mask specifies the fields to update in the listing resource. The
    * fields specified in the `updateMask` are relative to the resource and are
    * not a full request.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The listing to update.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the listing field is set. */ boolean hasListing(); /** + * + * *
    * Required. The listing to update.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The listing. */ com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing(); /** + * + * *
    * Required. The listing to update.
    * 
* - * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing listing = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.dataexchange.v1beta1.ListingOrBuilder getListingOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/proto/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto b/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/proto/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/proto/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto rename to proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/proto/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto From 528cb440ef1ba6d4085c6b96b9db7e3994b9886b Mon Sep 17 00:00:00 2001 From: Blake Li Date: Fri, 2 Sep 2022 12:58:38 -0400 Subject: [PATCH 3/3] Update pom.xml --- google-cloud-bigquery-data-exchange/pom.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/google-cloud-bigquery-data-exchange/pom.xml b/google-cloud-bigquery-data-exchange/pom.xml index badadd7..93127b5 100644 --- a/google-cloud-bigquery-data-exchange/pom.xml +++ b/google-cloud-bigquery-data-exchange/pom.xml @@ -45,7 +45,10 @@ com.google.api.grpc proto-google-iam-v1 - + + com.google.api.grpc + grpc-google-common-protos + com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1