From 3301e6d0580d281242123225b798e3533c1a0e9e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 2 Sep 2022 04:58:32 +0000 Subject: [PATCH] feat!: [analyticshub] update BigQuery Analytics Hub API v1beta1 client (#8263) - [ ] Regenerate this pull request now. 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: eyJwIjoiamF2YS1iaWdxdWVyeS1kYXRhLWV4Y2hhbmdlLy5Pd2xCb3QueWFtbCIsImgiOiIyZDhjMzhiOTBhNWExOThkNzFlYjFhOGViNDNlMGNlNTYxMjdhYzBkIn0= --- .../v1beta1/AnalyticsHubServiceClient.java | 409 ++++-- .../v1beta1/AnalyticsHubServiceSettings.java | 28 + .../dataexchange/v1beta1/gapic_metadata.json | 6 + .../dataexchange/v1beta1/package-info.java | 9 +- .../v1beta1/stub/AnalyticsHubServiceStub.java | 18 + .../stub/AnalyticsHubServiceStubSettings.java | 113 +- .../stub/GrpcAnalyticsHubServiceStub.java | 73 ++ .../stub/HttpJsonAnalyticsHubServiceStub.java | 113 ++ ...AnalyticsHubServiceClientHttpJsonTest.java | 138 +- .../AnalyticsHubServiceClientTest.java | 124 +- .../dataexchange/v1beta1/MockLocations.java | 59 + .../v1beta1/MockLocationsImpl.java | 105 ++ .../v1beta1/AnalyticsHubServiceGrpc.java | 207 +-- .../v1beta1/CreateDataExchangeRequest.java | 56 +- .../CreateDataExchangeRequestOrBuilder.java | 14 +- .../v1beta1/CreateListingRequest.java | 18 +- .../CreateListingRequestOrBuilder.java | 4 +- .../dataexchange/v1beta1/DataExchange.java | 104 +- .../v1beta1/DataExchangeOrBuilder.java | 26 +- .../v1beta1/DataExchangeProto.java | 421 +++--- .../dataexchange/v1beta1/DataProvider.java | 32 +- .../v1beta1/DataProviderOrBuilder.java | 8 +- .../v1beta1/DeleteDataExchangeRequest.java | 32 +- .../DeleteDataExchangeRequestOrBuilder.java | 8 +- .../v1beta1/DeleteListingRequest.java | 4 +- .../v1beta1/DestinationDataset.java | 4 +- .../v1beta1/DestinationDatasetReference.java | 4 +- .../v1beta1/GetDataExchangeRequest.java | 18 +- .../GetDataExchangeRequestOrBuilder.java | 4 +- .../v1beta1/GetListingRequest.java | 4 +- .../v1beta1/ListDataExchangesRequest.java | 18 +- .../ListDataExchangesRequestOrBuilder.java | 4 +- .../v1beta1/ListDataExchangesResponse.java | 50 +- .../ListDataExchangesResponseOrBuilder.java | 10 +- .../v1beta1/ListListingsRequest.java | 4 +- .../v1beta1/ListListingsResponse.java | 4 +- .../v1beta1/ListOrgDataExchangesRequest.java | 8 +- .../v1beta1/ListOrgDataExchangesResponse.java | 50 +- ...ListOrgDataExchangesResponseOrBuilder.java | 10 +- .../dataexchange/v1beta1/Listing.java | 1144 ++++++++++------- .../v1beta1/ListingOrBuilder.java | 143 +-- .../dataexchange/v1beta1/Publisher.java | 32 +- .../v1beta1/PublisherOrBuilder.java | 8 +- .../v1beta1/SubscribeListingRequest.java | 350 ++--- .../SubscribeListingRequestOrBuilder.java | 48 +- .../v1beta1/SubscribeListingResponse.java | 6 +- .../v1beta1/UpdateDataExchangeRequest.java | 112 +- .../UpdateDataExchangeRequestOrBuilder.java | 27 +- .../v1beta1/UpdateListingRequest.java | 84 +- .../UpdateListingRequestOrBuilder.java | 21 +- .../dataexchange/v1beta1/dataexchange.proto | 256 ++-- 51 files changed, 2865 insertions(+), 1687 deletions(-) create mode 100644 java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocations.java create mode 100644 java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocationsImpl.java diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java index 1a33a7a4f79c..823b0b0703f4 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClient.java +++ b/java-bigquery-data-exchange/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: @@ -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(); @@ -1970,4 +2113,80 @@ 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/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java index 083506b076ef..b9a16b325295 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceSettings.java +++ b/java-bigquery-data-exchange/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; @@ -33,6 +34,10 @@ 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; @@ -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(); @@ -370,6 +386,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/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/gapic_metadata.json b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/gapic_metadata.json index a7285e6ddea9..e19c8f0a78ed 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/gapic_metadata.json +++ b/java-bigquery-data-exchange/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/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/package-info.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/package-info.java index 2ae458d92fac..0d28f9aed388 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/package-info.java +++ b/java-bigquery-data-exchange/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/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStub.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStub.java index be9ce9ba9a56..3a474a7a0ece 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStub.java +++ b/java-bigquery-data-exchange/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/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java index 866c6cc737f7..7c84b7585284 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/AnalyticsHubServiceStubSettings.java +++ b/java-bigquery-data-exchange/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; @@ -150,6 +155,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,6 +276,42 @@ 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 = @@ -328,6 +373,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> @@ -412,6 +474,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 +606,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. */ @@ -568,6 +643,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 +703,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 +722,9 @@ protected Builder(ClientContext clientContext) { subscribeListingSettings, getIamPolicySettings, setIamPolicySettings, - testIamPermissionsSettings); + testIamPermissionsSettings, + listLocationsSettings, + getLocationSettings); initDefaults(this); } @@ -663,6 +746,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 +765,9 @@ protected Builder(AnalyticsHubServiceStubSettings settings) { subscribeListingSettings, getIamPolicySettings, setIamPolicySettings, - testIamPermissionsSettings); + testIamPermissionsSettings, + listLocationsSettings, + getLocationSettings); } private static Builder createDefault() { @@ -785,6 +872,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; } @@ -892,6 +989,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/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java index 7ca21d7a3105..f8193ee4f0a9 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/GrpcAnalyticsHubServiceStub.java +++ b/java-bigquery-data-exchange/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; @@ -229,6 +234,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 +278,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 +482,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 +573,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 +687,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/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceStub.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceStub.java index b11de5eb97cf..98fcc1acf79c 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/HttpJsonAnalyticsHubServiceStub.java +++ b/java-bigquery-data-exchange/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/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientHttpJsonTest.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientHttpJsonTest.java index bf1c735e5b7b..0d85ee0af6d0 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientHttpJsonTest.java +++ b/java-bigquery-data-exchange/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/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientTest.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientTest.java index 32ecb806c6dd..1c6928c4ff2a 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceClientTest.java +++ b/java-bigquery-data-exchange/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/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocations.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocations.java new file mode 100644 index 000000000000..4195aacecfaa --- /dev/null +++ b/java-bigquery-data-exchange/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/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocationsImpl.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/test/java/com/google/cloud/bigquery/dataexchange/v1beta1/MockLocationsImpl.java new file mode 100644 index 000000000000..42b0f70bcaa9 --- /dev/null +++ b/java-bigquery-data-exchange/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/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java b/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java index 22d6a5644b68..b4bad196530e 100644 --- a/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java +++ b/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/AnalyticsHubServiceGrpc.java @@ -21,11 +21,12 @@ * * *
- * 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.
  * 
*/ @javax.annotation.Generated( @@ -784,11 +785,12 @@ public AnalyticsHubServiceFutureStub newStub( * * *
-   * 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.
    * 
*/ public abstract static class AnalyticsHubServiceImplBase implements io.grpc.BindableService { @@ -797,7 +799,7 @@ public abstract static class AnalyticsHubServiceImplBase implements io.grpc.Bind * * *
-     * Lists DataExchanges in a given project and location.
+     * Lists all data exchanges in a given project and location.
      * 
*/ public void listDataExchanges( @@ -813,7 +815,8 @@ public void listDataExchanges( * * *
-     * Lists DataExchanges from projects in a given organization and location.
+     * Lists all data exchanges from projects in a given organization and
+     * location.
      * 
*/ public void listOrgDataExchanges( @@ -829,7 +832,7 @@ public void listOrgDataExchanges( * * *
-     * Gets details of a single DataExchange.
+     * Gets the details of a data exchange.
      * 
*/ public void getDataExchange( @@ -844,7 +847,7 @@ public void getDataExchange( * * *
-     * Creates a new DataExchange in a given project and location.
+     * Creates a new data exchange.
      * 
*/ public void createDataExchange( @@ -859,7 +862,7 @@ public void createDataExchange( * * *
-     * Updates the parameters of a single DataExchange.
+     * Updates an existing data exchange.
      * 
*/ public void updateDataExchange( @@ -874,7 +877,7 @@ public void updateDataExchange( * * *
-     * Deletes a single DataExchange.
+     * Deletes an existing data exchange.
      * 
*/ public void deleteDataExchange( @@ -888,7 +891,7 @@ public void deleteDataExchange( * * *
-     * Lists Listings in a given project and location.
+     * Lists all listings in a given project and location.
      * 
*/ public void listListings( @@ -904,7 +907,7 @@ public void listListings( * * *
-     * Gets details of a single Listing.
+     * Gets the details of a listing.
      * 
*/ public void getListing( @@ -918,7 +921,7 @@ public void getListing( * * *
-     * Creates a new Listing in a given project and location.
+     * Creates a new listing.
      * 
*/ public void createListing( @@ -933,7 +936,7 @@ public void createListing( * * *
-     * Updates the parameters of a single Listing.
+     * Updates an existing listing.
      * 
*/ public void updateListing( @@ -948,8 +951,7 @@ public void updateListing( * * *
-     * Deletes a single Listing, as long as there are no subscriptions
-     * associated with the source of this Listing.
+     * Deletes a listing.
      * 
*/ public void deleteListing( @@ -963,9 +965,10 @@ public void deleteListing( * * *
-     * 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
+     * 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.
      * 
*/ @@ -982,7 +985,7 @@ public void subscribeListing( * * *
-     * Gets the IAM policy for a dataExchange or a listing.
+     * Gets the IAM policy.
      * 
*/ public void getIamPolicy( @@ -996,7 +999,7 @@ public void getIamPolicy( * * *
-     * Sets the IAM policy for a dataExchange or a listing.
+     * Sets the IAM policy.
      * 
*/ public void setIamPolicy( @@ -1010,8 +1013,7 @@ public void setIamPolicy( * * *
-     * Returns the permissions that a caller has on a specified dataExchange or
-     * listing.
+     * Returns the permissions that a caller has.
      * 
*/ public void testIamPermissions( @@ -1134,11 +1136,12 @@ public final io.grpc.ServerServiceDefinition bindService() { * * *
-   * 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.
    * 
*/ public static final class AnalyticsHubServiceStub @@ -1157,7 +1160,7 @@ protected AnalyticsHubServiceStub build( * * *
-     * Lists DataExchanges in a given project and location.
+     * Lists all data exchanges in a given project and location.
      * 
*/ public void listDataExchanges( @@ -1175,7 +1178,8 @@ public void listDataExchanges( * * *
-     * Lists DataExchanges from projects in a given organization and location.
+     * Lists all data exchanges from projects in a given organization and
+     * location.
      * 
*/ public void listOrgDataExchanges( @@ -1193,7 +1197,7 @@ public void listOrgDataExchanges( * * *
-     * Gets details of a single DataExchange.
+     * Gets the details of a data exchange.
      * 
*/ public void getDataExchange( @@ -1210,7 +1214,7 @@ public void getDataExchange( * * *
-     * Creates a new DataExchange in a given project and location.
+     * Creates a new data exchange.
      * 
*/ public void createDataExchange( @@ -1227,7 +1231,7 @@ public void createDataExchange( * * *
-     * Updates the parameters of a single DataExchange.
+     * Updates an existing data exchange.
      * 
*/ public void updateDataExchange( @@ -1244,7 +1248,7 @@ public void updateDataExchange( * * *
-     * Deletes a single DataExchange.
+     * Deletes an existing data exchange.
      * 
*/ public void deleteDataExchange( @@ -1260,7 +1264,7 @@ public void deleteDataExchange( * * *
-     * Lists Listings in a given project and location.
+     * Lists all listings in a given project and location.
      * 
*/ public void listListings( @@ -1278,7 +1282,7 @@ public void listListings( * * *
-     * Gets details of a single Listing.
+     * Gets the details of a listing.
      * 
*/ public void getListing( @@ -1293,7 +1297,7 @@ public void getListing( * * *
-     * Creates a new Listing in a given project and location.
+     * Creates a new listing.
      * 
*/ public void createListing( @@ -1310,7 +1314,7 @@ public void createListing( * * *
-     * Updates the parameters of a single Listing.
+     * Updates an existing listing.
      * 
*/ public void updateListing( @@ -1327,8 +1331,7 @@ public void updateListing( * * *
-     * Deletes a single Listing, as long as there are no subscriptions
-     * associated with the source of this Listing.
+     * Deletes a listing.
      * 
*/ public void deleteListing( @@ -1344,9 +1347,10 @@ public void deleteListing( * * *
-     * 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
+     * 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.
      * 
*/ @@ -1365,7 +1369,7 @@ public void subscribeListing( * * *
-     * Gets the IAM policy for a dataExchange or a listing.
+     * Gets the IAM policy.
      * 
*/ public void getIamPolicy( @@ -1381,7 +1385,7 @@ public void getIamPolicy( * * *
-     * Sets the IAM policy for a dataExchange or a listing.
+     * Sets the IAM policy.
      * 
*/ public void setIamPolicy( @@ -1397,8 +1401,7 @@ public void setIamPolicy( * * *
-     * Returns the permissions that a caller has on a specified dataExchange or
-     * listing.
+     * Returns the permissions that a caller has.
      * 
*/ public void testIamPermissions( @@ -1416,11 +1419,12 @@ public void testIamPermissions( * * *
-   * 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.
    * 
*/ public static final class AnalyticsHubServiceBlockingStub @@ -1440,7 +1444,7 @@ protected AnalyticsHubServiceBlockingStub build( * * *
-     * Lists DataExchanges in a given project and location.
+     * Lists all data exchanges in a given project and location.
      * 
*/ public com.google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse @@ -1454,7 +1458,8 @@ protected AnalyticsHubServiceBlockingStub build( * * *
-     * Lists DataExchanges from projects in a given organization and location.
+     * Lists all data exchanges from projects in a given organization and
+     * location.
      * 
*/ public com.google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse @@ -1468,7 +1473,7 @@ protected AnalyticsHubServiceBlockingStub build( * * *
-     * Gets details of a single DataExchange.
+     * Gets the details of a data exchange.
      * 
*/ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchange( @@ -1481,7 +1486,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchan * * *
-     * Creates a new DataExchange in a given project and location.
+     * Creates a new data exchange.
      * 
*/ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange createDataExchange( @@ -1494,7 +1499,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange createDataExc * * *
-     * Updates the parameters of a single DataExchange.
+     * Updates an existing data exchange.
      * 
*/ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange updateDataExchange( @@ -1507,7 +1512,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange updateDataExc * * *
-     * Deletes a single DataExchange.
+     * Deletes an existing data exchange.
      * 
*/ public com.google.protobuf.Empty deleteDataExchange( @@ -1520,7 +1525,7 @@ public com.google.protobuf.Empty deleteDataExchange( * * *
-     * Lists Listings in a given project and location.
+     * Lists all listings in a given project and location.
      * 
*/ public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse listListings( @@ -1533,7 +1538,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse listL * * *
-     * Gets details of a single Listing.
+     * Gets the details of a listing.
      * 
*/ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing( @@ -1546,7 +1551,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing getListing( * * *
-     * Creates a new Listing in a given project and location.
+     * Creates a new listing.
      * 
*/ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing createListing( @@ -1559,7 +1564,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing createListing( * * *
-     * Updates the parameters of a single Listing.
+     * Updates an existing listing.
      * 
*/ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing updateListing( @@ -1572,8 +1577,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing updateListing( * * *
-     * Deletes a single Listing, as long as there are no subscriptions
-     * associated with the source of this Listing.
+     * Deletes a listing.
      * 
*/ public com.google.protobuf.Empty deleteListing( @@ -1586,9 +1590,10 @@ public com.google.protobuf.Empty deleteListing( * * *
-     * 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
+     * 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.
      * 
*/ @@ -1602,7 +1607,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse s * * *
-     * Gets the IAM policy for a dataExchange or a listing.
+     * Gets the IAM policy.
      * 
*/ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { @@ -1614,7 +1619,7 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * * *
-     * Sets the IAM policy for a dataExchange or a listing.
+     * Sets the IAM policy.
      * 
*/ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { @@ -1626,8 +1631,7 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * * *
-     * Returns the permissions that a caller has on a specified dataExchange or
-     * listing.
+     * Returns the permissions that a caller has.
      * 
*/ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( @@ -1641,11 +1645,12 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( * * *
-   * 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.
    * 
*/ public static final class AnalyticsHubServiceFutureStub @@ -1665,7 +1670,7 @@ protected AnalyticsHubServiceFutureStub build( * * *
-     * Lists DataExchanges in a given project and location.
+     * Lists all data exchanges in a given project and location.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1680,7 +1685,8 @@ protected AnalyticsHubServiceFutureStub build( * * *
-     * Lists DataExchanges from projects in a given organization and location.
+     * Lists all data exchanges from projects in a given organization and
+     * location.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1695,7 +1701,7 @@ protected AnalyticsHubServiceFutureStub build( * * *
-     * Gets details of a single DataExchange.
+     * Gets the details of a data exchange.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1710,7 +1716,7 @@ protected AnalyticsHubServiceFutureStub build( * * *
-     * Creates a new DataExchange in a given project and location.
+     * Creates a new data exchange.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1725,7 +1731,7 @@ protected AnalyticsHubServiceFutureStub build( * * *
-     * Updates the parameters of a single DataExchange.
+     * Updates an existing data exchange.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1740,7 +1746,7 @@ protected AnalyticsHubServiceFutureStub build( * * *
-     * Deletes a single DataExchange.
+     * Deletes an existing data exchange.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1754,7 +1760,7 @@ protected AnalyticsHubServiceFutureStub build( * * *
-     * Lists Listings in a given project and location.
+     * Lists all listings in a given project and location.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1768,7 +1774,7 @@ protected AnalyticsHubServiceFutureStub build( * * *
-     * Gets details of a single Listing.
+     * Gets the details of a listing.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1782,7 +1788,7 @@ protected AnalyticsHubServiceFutureStub build( * * *
-     * Creates a new Listing in a given project and location.
+     * Creates a new listing.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1796,7 +1802,7 @@ protected AnalyticsHubServiceFutureStub build( * * *
-     * Updates the parameters of a single Listing.
+     * Updates an existing listing.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1810,8 +1816,7 @@ protected AnalyticsHubServiceFutureStub build( * * *
-     * Deletes a single Listing, as long as there are no subscriptions
-     * associated with the source of this Listing.
+     * Deletes a listing.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1824,9 +1829,10 @@ protected AnalyticsHubServiceFutureStub build( * * *
-     * 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
+     * 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.
      * 
*/ @@ -1842,7 +1848,7 @@ protected AnalyticsHubServiceFutureStub build( * * *
-     * Gets the IAM policy for a dataExchange or a listing.
+     * Gets the IAM policy.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1855,7 +1861,7 @@ protected AnalyticsHubServiceFutureStub build( * * *
-     * Sets the IAM policy for a dataExchange or a listing.
+     * Sets the IAM policy.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1868,8 +1874,7 @@ protected AnalyticsHubServiceFutureStub build( * * *
-     * Returns the permissions that a caller has on a specified dataExchange or
-     * listing.
+     * Returns the permissions that a caller has.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.java index cdcfec2aece1..3b220bb5dbf3 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequest.java @@ -22,7 +22,7 @@ * * *
- * Message for creating a DataExchange.
+ * Message for creating a data exchange.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest} @@ -144,7 +144,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The parent resource path of the DataExchange.
+   * Required. The parent resource path of the data exchange.
    * e.g. `projects/myproject/locations/US`.
    * 
* @@ -170,7 +170,7 @@ 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`.
    * 
* @@ -199,7 +199,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * 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.
@@ -226,7 +226,7 @@ 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.
@@ -256,7 +256,7 @@ public com.google.protobuf.ByteString getDataExchangeIdBytes() {
    *
    *
    * 
-   * Required. The DataExchange to create.
+   * Required. The data exchange to create.
    * 
* * @@ -273,7 +273,7 @@ public boolean hasDataExchange() { * * *
-   * Required. The DataExchange to create.
+   * Required. The data exchange to create.
    * 
* * @@ -292,7 +292,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchan * * *
-   * Required. The DataExchange to create.
+   * Required. The data exchange to create.
    * 
* * @@ -494,7 +494,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Message for creating a DataExchange.
+   * Message for creating a data exchange.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.CreateDataExchangeRequest} @@ -685,7 +685,7 @@ public Builder mergeFrom( * * *
-     * Required. The parent resource path of the DataExchange.
+     * Required. The parent resource path of the data exchange.
      * e.g. `projects/myproject/locations/US`.
      * 
* @@ -710,7 +710,7 @@ 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`.
      * 
* @@ -735,7 +735,7 @@ 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`.
      * 
* @@ -759,7 +759,7 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The parent resource path of the DataExchange.
+     * Required. The parent resource path of the data exchange.
      * e.g. `projects/myproject/locations/US`.
      * 
* @@ -779,7 +779,7 @@ public Builder clearParent() { * * *
-     * Required. The parent resource path of the DataExchange.
+     * Required. The parent resource path of the data exchange.
      * e.g. `projects/myproject/locations/US`.
      * 
* @@ -806,7 +806,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * 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.
@@ -832,7 +832,7 @@ 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.
@@ -858,7 +858,7 @@ 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.
@@ -883,7 +883,7 @@ public Builder setDataExchangeId(java.lang.String value) {
      *
      *
      * 
-     * 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.
@@ -904,7 +904,7 @@ public Builder clearDataExchangeId() {
      *
      *
      * 
-     * 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.
@@ -937,7 +937,7 @@ public Builder setDataExchangeIdBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* * @@ -953,7 +953,7 @@ public boolean hasDataExchange() { * * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* * @@ -975,7 +975,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchan * * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* * @@ -1000,7 +1000,7 @@ public Builder setDataExchange( * * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* * @@ -1022,7 +1022,7 @@ public Builder setDataExchange( * * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* * @@ -1051,7 +1051,7 @@ public Builder mergeDataExchange( * * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* * @@ -1073,7 +1073,7 @@ public Builder clearDataExchange() { * * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* * @@ -1090,7 +1090,7 @@ public Builder clearDataExchange() { * * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* * @@ -1111,7 +1111,7 @@ public Builder clearDataExchange() { * * *
-     * Required. The DataExchange to create.
+     * Required. The data exchange to create.
      * 
* * diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java index e30ef884f14b..a1eb97bdd905 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateDataExchangeRequestOrBuilder.java @@ -27,7 +27,7 @@ public interface CreateDataExchangeRequestOrBuilder * * *
-   * Required. The parent resource path of the DataExchange.
+   * Required. The parent resource path of the data exchange.
    * e.g. `projects/myproject/locations/US`.
    * 
* @@ -42,7 +42,7 @@ public interface CreateDataExchangeRequestOrBuilder * * *
-   * Required. The parent resource path of the DataExchange.
+   * Required. The parent resource path of the data exchange.
    * e.g. `projects/myproject/locations/US`.
    * 
* @@ -58,7 +58,7 @@ public interface CreateDataExchangeRequestOrBuilder * * *
-   * 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.
@@ -74,7 +74,7 @@ public interface CreateDataExchangeRequestOrBuilder
    *
    *
    * 
-   * 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.
@@ -91,7 +91,7 @@ public interface CreateDataExchangeRequestOrBuilder
    *
    *
    * 
-   * Required. The DataExchange to create.
+   * Required. The data exchange to create.
    * 
* * @@ -105,7 +105,7 @@ public interface CreateDataExchangeRequestOrBuilder * * *
-   * Required. The DataExchange to create.
+   * Required. The data exchange to create.
    * 
* * @@ -119,7 +119,7 @@ public interface CreateDataExchangeRequestOrBuilder * * *
-   * Required. The DataExchange to create.
+   * Required. The data exchange to create.
    * 
* * diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.java index e029bac4137a..6b78071225a3 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequest.java @@ -22,7 +22,7 @@ * * *
- * Message for creating a Listing.
+ * Message for creating a listing.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest} @@ -199,7 +199,7 @@ public 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.
@@ -226,7 +226,7 @@ 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.
@@ -492,7 +492,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    *
    * 
-   * Message for creating a Listing.
+   * Message for creating a listing.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.CreateListingRequest} @@ -801,7 +801,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * 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.
@@ -827,7 +827,7 @@ 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.
@@ -853,7 +853,7 @@ 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.
@@ -878,7 +878,7 @@ public Builder setListingId(java.lang.String value) {
      *
      *
      * 
-     * 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.
@@ -899,7 +899,7 @@ public Builder clearListingId() {
      *
      *
      * 
-     * 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.
diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java
index e64f438cd82b..1fe9fd093c2d 100644
--- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java
+++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/CreateListingRequestOrBuilder.java
@@ -58,7 +58,7 @@ public interface CreateListingRequestOrBuilder
    *
    *
    * 
-   * 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.
@@ -74,7 +74,7 @@ public interface CreateListingRequestOrBuilder
    *
    *
    * 
-   * 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.
diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java
index a06b01d40b3b..80b1f5be8fe0 100644
--- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java
+++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchange.java
@@ -22,9 +22,9 @@
  *
  *
  * 
- * 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} @@ -217,7 +217,7 @@ public 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.
    * 
@@ -244,7 +244,7 @@ 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.
    * 
@@ -272,10 +272,9 @@ public 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.
    * 
@@ -300,10 +299,9 @@ 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.
    * 
@@ -331,8 +329,7 @@ public 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.
    * 
* @@ -356,8 +353,7 @@ 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.
    * 
* @@ -454,7 +450,7 @@ public 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. *
* @@ -685,9 +681,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * 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} @@ -1000,7 +996,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
      * 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.
      * 
@@ -1026,7 +1022,7 @@ 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.
      * 
@@ -1052,7 +1048,7 @@ 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.
      * 
@@ -1077,7 +1073,7 @@ public Builder setDisplayName(java.lang.String value) { *
      * 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.
      * 
@@ -1098,7 +1094,7 @@ public Builder clearDisplayName() { *
      * 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.
      * 
@@ -1124,10 +1120,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * 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.
      * 
@@ -1151,10 +1146,9 @@ 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.
      * 
@@ -1178,10 +1172,9 @@ 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.
      * 
@@ -1204,10 +1197,9 @@ public Builder setDescription(java.lang.String value) { * * *
-     * 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.
      * 
@@ -1226,10 +1218,9 @@ public Builder clearDescription() { * * *
-     * 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.
      * 
@@ -1255,8 +1246,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * 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.
      * 
* @@ -1279,8 +1269,7 @@ 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.
      * 
* @@ -1303,8 +1292,7 @@ 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.
      * 
* @@ -1326,8 +1314,7 @@ public Builder setPrimaryContact(java.lang.String value) { * * *
-     * 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.
      * 
* @@ -1345,8 +1332,7 @@ public Builder clearPrimaryContact() { * * *
-     * 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.
      * 
* @@ -1532,7 +1518,7 @@ public Builder clearListingCount() { * 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. *
* @@ -1551,7 +1537,7 @@ public com.google.protobuf.ByteString getIcon() { * 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. *
* @@ -1576,7 +1562,7 @@ public Builder setIcon(com.google.protobuf.ByteString value) { * 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. *
* diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java index abbb90e62b32..fc1735bc0a1b 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeOrBuilder.java @@ -56,7 +56,7 @@ public interface DataExchangeOrBuilder *
    * 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.
    * 
@@ -72,7 +72,7 @@ public interface DataExchangeOrBuilder *
    * 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.
    * 
@@ -87,10 +87,9 @@ public interface DataExchangeOrBuilder * * *
-   * 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.
    * 
@@ -104,10 +103,9 @@ public interface DataExchangeOrBuilder * * *
-   * 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.
    * 
@@ -122,8 +120,7 @@ public interface DataExchangeOrBuilder * * *
-   * 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.
    * 
* @@ -136,8 +133,7 @@ public interface DataExchangeOrBuilder * * *
-   * 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.
    * 
* @@ -192,7 +188,7 @@ public interface DataExchangeOrBuilder * 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. *
* diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java index 39c0363bc827..187c0d07a531 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataExchangeProto.java @@ -137,212 +137,225 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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" + + "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\"_\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" + + "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" - + "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" + + "\"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\"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" + + "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" - + "/*}: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" + + "/*}: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( @@ -352,7 +365,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor 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(), @@ -421,12 +433,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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", - "BigqueryDataset", "State", "Icon", "DataProvider", @@ -563,7 +575,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingRequest_descriptor, new java.lang.String[] { - "Name", "DestinationDataset", "Destination", + "DestinationDataset", "Name", "Destination", }); internal_static_google_cloud_bigquery_dataexchange_v1beta1_SubscribeListingResponse_descriptor = getDescriptor().getMessageTypes().get(21); @@ -587,7 +599,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor 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(); diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.java index feaf870a3b5d..2892529497ad 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProvider.java @@ -22,7 +22,7 @@ * * *
- * Contains details of the Data Provider.
+ * Contains details of the data provider.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DataProvider} @@ -127,7 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Optional. Name of the Data Provider.
+   * Optional. Name of the data provider.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -150,7 +150,7 @@ 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]; @@ -176,7 +176,7 @@ public 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.
    * 
* @@ -200,7 +200,7 @@ 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.
    * 
* @@ -394,7 +394,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Contains details of the Data Provider.
+   * Contains details of the data provider.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DataProvider} @@ -561,7 +561,7 @@ public Builder mergeFrom( * * *
-     * Optional. Name of the Data Provider.
+     * Optional. Name of the data provider.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -583,7 +583,7 @@ 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]; @@ -605,7 +605,7 @@ 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]; @@ -626,7 +626,7 @@ public Builder setName(java.lang.String value) { * * *
-     * Optional. Name of the Data Provider.
+     * Optional. Name of the data provider.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -643,7 +643,7 @@ public Builder clearName() { * * *
-     * Optional. Name of the Data Provider.
+     * Optional. Name of the data provider.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -667,7 +667,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Email or URL of the Data Provider.
+     * Optional. Email or URL of the data provider.
      * Max Length: 1000 bytes.
      * 
* @@ -690,7 +690,7 @@ 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.
      * 
* @@ -713,7 +713,7 @@ 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.
      * 
* @@ -735,7 +735,7 @@ public Builder setPrimaryContact(java.lang.String value) { * * *
-     * Optional. Email or URL of the Data Provider.
+     * Optional. Email or URL of the data provider.
      * Max Length: 1000 bytes.
      * 
* @@ -753,7 +753,7 @@ public Builder clearPrimaryContact() { * * *
-     * Optional. Email or URL of the Data Provider.
+     * Optional. Email or URL of the data provider.
      * Max Length: 1000 bytes.
      * 
* diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java index 9bf485b80943..d6c1e9dc7123 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DataProviderOrBuilder.java @@ -27,7 +27,7 @@ public interface DataProviderOrBuilder * * *
-   * Optional. Name of the Data Provider.
+   * Optional. Name of the data provider.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -39,7 +39,7 @@ public interface DataProviderOrBuilder * * *
-   * Optional. Name of the Data Provider.
+   * Optional. Name of the data provider.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -52,7 +52,7 @@ public interface DataProviderOrBuilder * * *
-   * Optional. Email or URL of the Data Provider.
+   * Optional. Email or URL of the data provider.
    * Max Length: 1000 bytes.
    * 
* @@ -65,7 +65,7 @@ public interface DataProviderOrBuilder * * *
-   * Optional. Email or URL of the Data Provider.
+   * Optional. Email or URL of the data provider.
    * Max Length: 1000 bytes.
    * 
* diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.java index a10a411d21ef..8e38bb5c4a62 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequest.java @@ -22,7 +22,7 @@ * * *
- * Message for deleting a DataExchange.
+ * Message for deleting a data exchange.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest} @@ -119,8 +119,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * 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`.
    * 
* * @@ -145,8 +145,8 @@ 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`.
    * 
* * @@ -334,7 +334,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Message for deleting a DataExchange.
+   * Message for deleting a data exchange.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DeleteDataExchangeRequest} @@ -504,8 +504,8 @@ public Builder mergeFrom( * * *
-     * 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`.
      * 
* * @@ -529,8 +529,8 @@ 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`.
      * 
* * @@ -554,8 +554,8 @@ 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`.
      * 
* * @@ -578,8 +578,8 @@ public Builder setName(java.lang.String value) { * * *
-     * 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`.
      * 
* * @@ -598,8 +598,8 @@ public Builder clearName() { * * *
-     * 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`.
      * 
* * diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java index 6471d1f08d4d..33b8bbee8c92 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteDataExchangeRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface DeleteDataExchangeRequestOrBuilder * * *
-   * 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`.
    * 
* * @@ -42,8 +42,8 @@ public interface DeleteDataExchangeRequestOrBuilder * * *
-   * 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`.
    * 
* * diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.java index f7e03b2ac2d0..bb16cacec3b7 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DeleteListingRequest.java @@ -22,7 +22,7 @@ * * *
- * Message for deleting a Listing.
+ * Message for deleting a listing.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest} @@ -333,7 +333,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Message for deleting a Listing.
+   * Message for deleting a listing.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DeleteListingRequest} diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.java index 4846e903de36..293f6b8582e7 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDataset.java @@ -22,7 +22,7 @@ * * *
- * Defines the Destination BigQuery Dataset.
+ * Defines the destination bigquery dataset.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset} @@ -738,7 +738,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Defines the Destination BigQuery Dataset.
+   * Defines the destination bigquery dataset.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset} diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.java index e236bb401e45..d8c8466d2127 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/DestinationDatasetReference.java @@ -22,7 +22,7 @@ * * *
- * Defines the Destination BigQuery Dataset Reference.
+ * Contains the reference that identifies a destination bigquery dataset.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference} @@ -404,7 +404,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Defines the Destination BigQuery Dataset Reference.
+   * Contains the reference that identifies a destination bigquery dataset.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.DestinationDatasetReference} diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.java index 4cbf701d8e13..d1222620e1bd 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequest.java @@ -22,7 +22,7 @@ * * *
- * Message for getting a DataExchange.
+ * Message for getting a data exchange.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest} @@ -119,7 +119,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The resource name of the DataExchange.
+   * Required. The resource name of the data exchange.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* @@ -145,7 +145,7 @@ 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`.
    * 
* @@ -333,7 +333,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Message for getting a DataExchange.
+   * Message for getting a data exchange.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.GetDataExchangeRequest} @@ -500,7 +500,7 @@ public Builder mergeFrom( * * *
-     * Required. The resource name of the DataExchange.
+     * Required. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* @@ -525,7 +525,7 @@ 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`.
      * 
* @@ -550,7 +550,7 @@ 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`.
      * 
* @@ -574,7 +574,7 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The resource name of the DataExchange.
+     * Required. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* @@ -594,7 +594,7 @@ public Builder clearName() { * * *
-     * Required. The resource name of the DataExchange.
+     * Required. The resource name of the data exchange.
      * e.g. `projects/myproject/locations/US/dataExchanges/123`.
      * 
* diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java index d3d13156ae74..9ed7e09e1e20 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetDataExchangeRequestOrBuilder.java @@ -27,7 +27,7 @@ public interface GetDataExchangeRequestOrBuilder * * *
-   * Required. The resource name of the DataExchange.
+   * Required. The resource name of the data exchange.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* @@ -42,7 +42,7 @@ public interface GetDataExchangeRequestOrBuilder * * *
-   * Required. The resource name of the DataExchange.
+   * Required. The resource name of the data exchange.
    * e.g. `projects/myproject/locations/US/dataExchanges/123`.
    * 
* diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.java index d06423d62350..10310fbf2ca6 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/GetListingRequest.java @@ -22,7 +22,7 @@ * * *
- * Message for getting a Listing.
+ * Message for getting a listing.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest} @@ -332,7 +332,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Message for getting a Listing.
+   * Message for getting a listing.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.GetListingRequest} diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.java index 54ef3717116f..7b05b6b153b4 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequest.java @@ -22,7 +22,7 @@ * * *
- * Message for requesting list of DataExchanges.
+ * Message for requesting the list of data exchanges.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest} @@ -132,7 +132,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The parent resource path of the DataExchanges.
+   * Required. The parent resource path of the data exchanges.
    * e.g. `projects/myproject/locations/US`.
    * 
* @@ -158,7 +158,7 @@ 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`.
    * 
* @@ -434,7 +434,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Message for requesting list of DataExchanges.
+   * Message for requesting the list of data exchanges.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesRequest} @@ -617,7 +617,7 @@ public Builder mergeFrom( * * *
-     * Required. The parent resource path of the DataExchanges.
+     * Required. The parent resource path of the data exchanges.
      * e.g. `projects/myproject/locations/US`.
      * 
* @@ -642,7 +642,7 @@ 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`.
      * 
* @@ -667,7 +667,7 @@ 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`.
      * 
* @@ -691,7 +691,7 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The parent resource path of the DataExchanges.
+     * Required. The parent resource path of the data exchanges.
      * e.g. `projects/myproject/locations/US`.
      * 
* @@ -711,7 +711,7 @@ public Builder clearParent() { * * *
-     * Required. The parent resource path of the DataExchanges.
+     * Required. The parent resource path of the data exchanges.
      * e.g. `projects/myproject/locations/US`.
      * 
* diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java index 46c89fda8736..df01f39fd374 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesRequestOrBuilder.java @@ -27,7 +27,7 @@ public interface ListDataExchangesRequestOrBuilder * * *
-   * Required. The parent resource path of the DataExchanges.
+   * Required. The parent resource path of the data exchanges.
    * e.g. `projects/myproject/locations/US`.
    * 
* @@ -42,7 +42,7 @@ public interface ListDataExchangesRequestOrBuilder * * *
-   * Required. The parent resource path of the DataExchanges.
+   * Required. The parent resource path of the data exchanges.
    * e.g. `projects/myproject/locations/US`.
    * 
* diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.java index 14e15f259b3f..faf66fccafd3 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponse.java @@ -22,7 +22,7 @@ * * *
- * Message for response to listing DataExchanges.
+ * Message for response to the list of data exchanges.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse} @@ -139,7 +139,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -154,7 +154,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -170,7 +170,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -184,7 +184,7 @@ public int getDataExchangesCount() { * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -198,7 +198,7 @@ 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; @@ -436,7 +436,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Message for response to listing DataExchanges.
+   * Message for response to the list of data exchanges.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse} @@ -670,7 +670,7 @@ private void ensureDataExchangesIsMutable() { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -688,7 +688,7 @@ private void ensureDataExchangesIsMutable() { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -705,7 +705,7 @@ public int getDataExchangesCount() { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -722,7 +722,7 @@ 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; @@ -746,7 +746,7 @@ public Builder setDataExchanges( * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -768,7 +768,7 @@ public Builder setDataExchanges( * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -792,7 +792,7 @@ public Builder addDataExchanges( * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -816,7 +816,7 @@ public Builder addDataExchanges( * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -837,7 +837,7 @@ public Builder addDataExchanges( * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -859,7 +859,7 @@ public Builder addDataExchanges( * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -881,7 +881,7 @@ public Builder addAllDataExchanges( * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -901,7 +901,7 @@ public Builder clearDataExchanges() { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -921,7 +921,7 @@ public Builder removeDataExchanges(int index) { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -935,7 +935,7 @@ public Builder removeDataExchanges(int index) { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -953,7 +953,7 @@ public Builder removeDataExchanges(int index) { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -972,7 +972,7 @@ public Builder removeDataExchanges(int index) { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -988,7 +988,7 @@ public Builder removeDataExchanges(int index) { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -1005,7 +1005,7 @@ public Builder removeDataExchanges(int index) { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java index ba05585813f1..67d9101c6e3b 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListDataExchangesResponseOrBuilder.java @@ -27,7 +27,7 @@ public interface ListDataExchangesResponseOrBuilder * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -39,7 +39,7 @@ public interface ListDataExchangesResponseOrBuilder * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -50,7 +50,7 @@ public interface ListDataExchangesResponseOrBuilder * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -61,7 +61,7 @@ public interface ListDataExchangesResponseOrBuilder * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -73,7 +73,7 @@ public interface ListDataExchangesResponseOrBuilder * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.java index 4fda1d623127..f76de0e2b113 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsRequest.java @@ -22,7 +22,7 @@ * * *
- * Message for requesting list of Listings.
+ * Message for requesting the list of listings.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest} @@ -434,7 +434,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Message for requesting list of Listings.
+   * Message for requesting the list of listings.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListListingsRequest} diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.java index 700fc5597c79..f95b3e01697c 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListListingsResponse.java @@ -22,7 +22,7 @@ * * *
- * Message for response to listing Listings.
+ * Message for response to the list of Listings.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse} @@ -427,7 +427,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Message for response to listing Listings.
+   * Message for response to the list of Listings.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse} diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java index 0a87a4008533..f0c5408cf6a1 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesRequest.java @@ -22,8 +22,8 @@ * * *
- * 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} @@ -438,8 +438,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * 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} diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java index df9dd5009a81..4d7c3c934be5 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponse.java @@ -22,7 +22,7 @@ * * *
- * Message for response to listing DataExchanges in an organization and
+ * Message for response to listing data exchanges in an organization and
  * location.
  * 
* @@ -141,7 +141,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -156,7 +156,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -172,7 +172,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -186,7 +186,7 @@ public int getDataExchangesCount() { * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -200,7 +200,7 @@ 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; @@ -443,7 +443,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Message for response to listing DataExchanges in an organization and
+   * Message for response to listing data exchanges in an organization and
    * location.
    * 
* @@ -680,7 +680,7 @@ private void ensureDataExchangesIsMutable() { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -698,7 +698,7 @@ private void ensureDataExchangesIsMutable() { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -715,7 +715,7 @@ public int getDataExchangesCount() { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -732,7 +732,7 @@ 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; @@ -756,7 +756,7 @@ public Builder setDataExchanges( * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -778,7 +778,7 @@ public Builder setDataExchanges( * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -802,7 +802,7 @@ public Builder addDataExchanges( * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -826,7 +826,7 @@ public Builder addDataExchanges( * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -847,7 +847,7 @@ public Builder addDataExchanges( * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -869,7 +869,7 @@ public Builder addDataExchanges( * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -891,7 +891,7 @@ public Builder addAllDataExchanges( * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -911,7 +911,7 @@ public Builder clearDataExchanges() { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -931,7 +931,7 @@ public Builder removeDataExchanges(int index) { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -945,7 +945,7 @@ public Builder removeDataExchanges(int index) { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -963,7 +963,7 @@ public Builder removeDataExchanges(int index) { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -982,7 +982,7 @@ public Builder removeDataExchanges(int index) { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -998,7 +998,7 @@ public Builder removeDataExchanges(int index) { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -1015,7 +1015,7 @@ public Builder removeDataExchanges(int index) { * * *
-     * The list of DataExchange.
+     * The list of data exchanges.
      * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java index fc39a969cab3..344275d397e2 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListOrgDataExchangesResponseOrBuilder.java @@ -27,7 +27,7 @@ public interface ListOrgDataExchangesResponseOrBuilder * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -39,7 +39,7 @@ public interface ListOrgDataExchangesResponseOrBuilder * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -50,7 +50,7 @@ public interface ListOrgDataExchangesResponseOrBuilder * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -61,7 +61,7 @@ public interface ListOrgDataExchangesResponseOrBuilder * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; @@ -73,7 +73,7 @@ public interface ListOrgDataExchangesResponseOrBuilder * * *
-   * The list of DataExchange.
+   * The list of data exchanges.
    * 
* * repeated .google.cloud.bigquery.dataexchange.v1beta1.DataExchange data_exchanges = 1; diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.java index d76bfbf97d21..46f6378ffe4f 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Listing.java @@ -262,7 +262,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * State of the Listing
+   * State of the listing.
    * 
* * Protobuf enum {@code google.cloud.bigquery.dataexchange.v1beta1.Listing.State} @@ -283,7 +283,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
      * Subscribable state. Users with dataexchange.listings.subscribe permission
-     * can subscribe to this Listing.
+     * can subscribe to this listing.
      * 
* * ACTIVE = 1; @@ -307,7 +307,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
      * Subscribable state. Users with dataexchange.listings.subscribe permission
-     * can subscribe to this Listing.
+     * can subscribe to this listing.
      * 
* * ACTIVE = 1; @@ -397,6 +397,219 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.dataexchange.v1beta1.Listing.State) } + /** + * + * + *
+   * 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 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) @@ -433,12 +646,13 @@ public interface BigQueryDatasetSourceOrBuilder * * *
-   * 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} @@ -754,12 +968,13 @@ protected Builder newBuilderForType( * * *
-     * 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 @@ -1143,6 +1358,67 @@ 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]; + * + * + * @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_; /** @@ -1202,7 +1478,7 @@ public 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.
    * 
@@ -1229,7 +1505,7 @@ 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.
    * 
@@ -1257,10 +1533,9 @@ public 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.
    * 
@@ -1285,10 +1560,9 @@ 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.
    * 
@@ -1410,74 +1684,13 @@ 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.
    * 
* * @@ -1494,7 +1707,7 @@ public int getStateValue() { * * *
-   * Output only. Current state of the Listing.
+   * Output only. Current state of the listing.
    * 
* * @@ -1541,7 +1754,7 @@ public 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.
    * 
* * @@ -1558,7 +1771,7 @@ public 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.
    * 
* * @@ -1577,7 +1790,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider getDataProvid * * *
-   * Optional. The details of the Data Provider who owns the source data.
+   * Optional. Details of the data provider who owns the source data.
    * 
* * @@ -1593,17 +1806,18 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider getDataProvid 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> + 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, + 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); + 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.common.Category.UNRECOGNIZED + ? com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category.UNRECOGNIZED : result; } }; @@ -1611,31 +1825,31 @@ public com.google.cloud.bigquery.dataexchange.common.Category convert( * * *
-   * 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 + public java.util.List getCategoriesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.bigquery.dataexchange.common.Category>( + 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. @@ -1648,29 +1862,29 @@ public 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. */ @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. @@ -1683,11 +1897,11 @@ public 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. @@ -1706,7 +1920,7 @@ public 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.
    * 
* @@ -1724,7 +1938,7 @@ public 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.
    * 
* @@ -1744,7 +1958,7 @@ public 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.
    * 
* @@ -2226,11 +2440,6 @@ 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); 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 +2447,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) { @@ -2410,48 +2624,296 @@ 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_; /** * * *
-     * Output only. The resource name of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
+     * Required. Shared dataset i.e. BigQuery dataset source.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * * - * @return The name. + * @return Whether the bigqueryDataset field is set. */ - 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; - } + @java.lang.Override + public boolean hasBigqueryDataset() { + return sourceCase_ == 6; } /** * * *
-     * Output only. The resource name of the listing.
-     * e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
+     * Required. Shared dataset i.e. BigQuery dataset source.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.dataexchange.v1beta1.Listing.BigQueryDatasetSource bigquery_dataset = 6 [(.google.api.field_behavior) = REQUIRED]; + * * - * @return The bytes for name. + * @return The bigqueryDataset. */ - 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; + @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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() { + 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; @@ -2528,7 +2990,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
      * 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.
      * 
@@ -2554,7 +3016,7 @@ 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.
      * 
@@ -2580,7 +3042,7 @@ 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.
      * 
@@ -2605,7 +3067,7 @@ public Builder setDisplayName(java.lang.String value) { *
      * 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.
      * 
@@ -2626,7 +3088,7 @@ public Builder clearDisplayName() { *
      * 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.
      * 
@@ -2652,10 +3114,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * 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.
      * 
@@ -2679,10 +3140,9 @@ 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.
      * 
@@ -2706,10 +3166,9 @@ 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.
      * 
@@ -2732,10 +3191,9 @@ public Builder setDescription(java.lang.String value) { * * *
-     * 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.
      * 
@@ -2754,10 +3212,9 @@ public Builder clearDescription() { * * *
-     * 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.
      * 
@@ -2995,260 +3452,12 @@ public Builder setDocumentationBytes(com.google.protobuf.ByteString value) { 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; - } - /** - * - * - *
-     * 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 int state_ = 0; /** * * *
-     * Output only. Current state of the Listing.
+     * Output only. Current state of the listing.
      * 
* * @@ -3265,7 +3474,7 @@ public int getStateValue() { * * *
-     * Output only. Current state of the Listing.
+     * Output only. Current state of the listing.
      * 
* * @@ -3285,7 +3494,7 @@ public Builder setStateValue(int value) { * * *
-     * Output only. Current state of the Listing.
+     * Output only. Current state of the listing.
      * 
* * @@ -3307,7 +3516,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Listing.State getState() { * * *
-     * Output only. Current state of the Listing.
+     * Output only. Current state of the listing.
      * 
* * @@ -3330,7 +3539,7 @@ public Builder setState(com.google.cloud.bigquery.dataexchange.v1beta1.Listing.S * * *
-     * Output only. Current state of the Listing.
+     * Output only. Current state of the listing.
      * 
* * @@ -3423,7 +3632,7 @@ public Builder clearIcon() { * * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* * @@ -3439,7 +3648,7 @@ public 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.
      * 
* * @@ -3461,7 +3670,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataProvider getDataProvid * * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* * @@ -3486,7 +3695,7 @@ public Builder setDataProvider( * * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* * @@ -3508,7 +3717,7 @@ public Builder setDataProvider( * * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* * @@ -3537,7 +3746,7 @@ public Builder mergeDataProvider( * * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* * @@ -3559,7 +3768,7 @@ public Builder clearDataProvider() { * * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* * @@ -3576,7 +3785,7 @@ public Builder clearDataProvider() { * * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* * @@ -3597,7 +3806,7 @@ public Builder clearDataProvider() { * * *
-     * Optional. The details of the Data Provider who owns the source data.
+     * Optional. Details of the data provider who owns the source data.
      * 
* * @@ -3633,30 +3842,30 @@ 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 + public java.util.List getCategoriesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.bigquery.dataexchange.common.Category>( + 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. @@ -3668,28 +3877,29 @@ public 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. */ - 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. @@ -3697,7 +3907,7 @@ public com.google.cloud.bigquery.dataexchange.common.Category getCategories(int * @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(); } @@ -3710,17 +3920,18 @@ public Builder setCategories( * * *
-     * 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(); } @@ -3733,21 +3944,22 @@ public Builder addCategories(com.google.cloud.bigquery.dataexchange.common.Categ * * *
-     * 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 + java.lang.Iterable< + ? extends com.google.cloud.bigquery.dataexchange.v1beta1.Listing.Category> 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(); @@ -3757,11 +3969,11 @@ public Builder addAllCategories( * * *
-     * 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. @@ -3776,11 +3988,11 @@ public Builder clearCategories() { * * *
-     * 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. @@ -3792,11 +4004,11 @@ public 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. @@ -3809,11 +4021,11 @@ public int getCategoriesValue(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]; * * * @param index The index to set the value at. @@ -3830,11 +4042,11 @@ public Builder setCategoriesValue(int index, int value) { * * *
-     * 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. @@ -3850,11 +4062,11 @@ public Builder addCategoriesValue(int value) { * * *
-     * 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. @@ -3879,7 +4091,7 @@ public Builder addAllCategoriesValue(java.lang.Iterable value * * *
-     * 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.
      * 
* @@ -3896,7 +4108,7 @@ public 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.
      * 
* @@ -3919,7 +4131,7 @@ public 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.
      * 
* @@ -3944,7 +4156,7 @@ public Builder setPublisher(com.google.cloud.bigquery.dataexchange.v1beta1.Publi * * *
-     * 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.
      * 
* @@ -3967,7 +4179,7 @@ public Builder setPublisher( * * *
-     * 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.
      * 
* @@ -3996,7 +4208,7 @@ public Builder mergePublisher(com.google.cloud.bigquery.dataexchange.v1beta1.Pub * * *
-     * 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.
      * 
* @@ -4019,7 +4231,7 @@ public Builder clearPublisher() { * * *
-     * 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.
      * 
* @@ -4036,7 +4248,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder getPubli * * *
-     * 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.
      * 
* @@ -4058,7 +4270,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.Publisher.Builder getPubli * * *
-     * 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.
      * 
* diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java index 95a5e62cec57..6f7a93103caa 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/ListingOrBuilder.java @@ -23,6 +23,48 @@ public interface ListingOrBuilder // @@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(); + /** * * @@ -56,7 +98,7 @@ public interface ListingOrBuilder *
    * 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.
    * 
@@ -72,7 +114,7 @@ public interface ListingOrBuilder *
    * 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.
    * 
@@ -87,10 +129,9 @@ public interface ListingOrBuilder * * *
-   * 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.
    * 
@@ -104,10 +145,9 @@ public interface ListingOrBuilder * * *
-   * 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.
    * 
@@ -174,49 +214,7 @@ public interface ListingOrBuilder * * *
-   * 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. Current state of the Listing.
+   * Output only. Current state of the listing.
    * 
* * @@ -230,7 +228,7 @@ public interface ListingOrBuilder * * *
-   * Output only. Current state of the Listing.
+   * Output only. Current state of the listing.
    * 
* * @@ -262,7 +260,7 @@ public interface ListingOrBuilder * * *
-   * Optional. The details of the Data Provider who owns the source data.
+   * Optional. Details of the data provider who owns the source data.
    * 
* * @@ -276,7 +274,7 @@ public interface ListingOrBuilder * * *
-   * Optional. The details of the Data Provider who owns the source data.
+   * Optional. Details of the data provider who owns the source data.
    * 
* * @@ -290,7 +288,7 @@ public interface ListingOrBuilder * * *
-   * Optional. The details of the Data Provider who owns the source data.
+   * Optional. Details of the data provider who owns the source data.
    * 
* * @@ -303,25 +301,26 @@ public interface ListingOrBuilder * * *
-   * 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. @@ -331,26 +330,26 @@ public interface ListingOrBuilder * * *
-   * 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. @@ -360,11 +359,11 @@ public interface ListingOrBuilder * * *
-   * 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. @@ -376,7 +375,7 @@ public interface ListingOrBuilder * * *
-   * 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.
    * 
* @@ -391,7 +390,7 @@ public interface ListingOrBuilder * * *
-   * 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.
    * 
* @@ -406,7 +405,7 @@ public interface ListingOrBuilder * * *
-   * 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.
    * 
* diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.java index dffd5ec4fdb0..092c8314b3dd 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/Publisher.java @@ -22,7 +22,7 @@ * * *
- * Contains details of the Publisher.
+ * Contains details of the listing publisher.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.Publisher} @@ -127,7 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Optional. Name of the listing Publisher.
+   * Optional. Name of the listing publisher.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -150,7 +150,7 @@ 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]; @@ -176,7 +176,7 @@ public 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.
    * 
* @@ -200,7 +200,7 @@ 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.
    * 
* @@ -394,7 +394,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Contains details of the Publisher.
+   * Contains details of the listing publisher.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.Publisher} @@ -561,7 +561,7 @@ public Builder mergeFrom( * * *
-     * Optional. Name of the listing Publisher.
+     * Optional. Name of the listing publisher.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -583,7 +583,7 @@ 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]; @@ -605,7 +605,7 @@ 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]; @@ -626,7 +626,7 @@ public Builder setName(java.lang.String value) { * * *
-     * Optional. Name of the listing Publisher.
+     * Optional. Name of the listing publisher.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -643,7 +643,7 @@ public Builder clearName() { * * *
-     * Optional. Name of the listing Publisher.
+     * Optional. Name of the listing publisher.
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -667,7 +667,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Email or URL of the listing Publisher.
+     * Optional. Email or URL of the listing publisher.
      * Max Length: 1000 bytes.
      * 
* @@ -690,7 +690,7 @@ 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.
      * 
* @@ -713,7 +713,7 @@ 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.
      * 
* @@ -735,7 +735,7 @@ public Builder setPrimaryContact(java.lang.String value) { * * *
-     * Optional. Email or URL of the listing Publisher.
+     * Optional. Email or URL of the listing publisher.
      * Max Length: 1000 bytes.
      * 
* @@ -753,7 +753,7 @@ public Builder clearPrimaryContact() { * * *
-     * Optional. Email or URL of the listing Publisher.
+     * Optional. Email or URL of the listing publisher.
      * Max Length: 1000 bytes.
      * 
* diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java index 3e3de7aa2bee..98e04b7944cc 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/PublisherOrBuilder.java @@ -27,7 +27,7 @@ public interface PublisherOrBuilder * * *
-   * Optional. Name of the listing Publisher.
+   * Optional. Name of the listing publisher.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -39,7 +39,7 @@ public interface PublisherOrBuilder * * *
-   * Optional. Name of the listing Publisher.
+   * Optional. Name of the listing publisher.
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -52,7 +52,7 @@ public interface PublisherOrBuilder * * *
-   * Optional. Email or URL of the listing Publisher.
+   * Optional. Email or URL of the listing publisher.
    * Max Length: 1000 bytes.
    * 
* @@ -65,7 +65,7 @@ public interface PublisherOrBuilder * * *
-   * Optional. Email or URL of the listing Publisher.
+   * Optional. Email or URL of the listing publisher.
    * Max Length: 1000 bytes.
    * 
* diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.java index 9b6b426ead2f..8bf7120eea98 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequest.java @@ -22,7 +22,7 @@ * * *
- * Message for subscribing a Listing.
+ * Message for subscribing to a listing.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest} @@ -180,62 +180,42 @@ 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) = { ... } + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; * * - * @return The name. + * @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) = { ... } + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; * * - * @return The bytes for name. + * @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; /** * * @@ -245,49 +225,69 @@ public com.google.protobuf.ByteString getNameBytes() { * * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; * - * - * @return Whether the destinationDataset field is set. */ @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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * - * @return The destinationDataset. + * @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; @@ -480,7 +480,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Message for subscribing a Listing.
+   * Message for subscribing to a listing.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest} @@ -556,7 +556,6 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest bu 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_; if (destinationCase_ == 3) { if (destinationDatasetBuilder_ == null) { result.destination_ = destination_; @@ -564,6 +563,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingRequest bu result.destination_ = destinationDatasetBuilder_.build(); } } + result.name_ = name_; result.destinationCase_ = destinationCase_; onBuilt(); return result; @@ -678,127 +678,6 @@ 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, @@ -1031,6 +910,127 @@ public Builder clearDestinationDataset() { 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) { return super.setUnknownFields(unknownFields); diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java index acf1af61378f..a690e50d448d 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingRequestOrBuilder.java @@ -27,33 +27,28 @@ public interface SubscribeListingRequestOrBuilder * * *
-   * 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) = { ... } + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; * * - * @return The name. + * @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) = { ... } + * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; * * - * @return The bytes for name. + * @return The destinationDataset. */ - com.google.protobuf.ByteString getNameBytes(); - + com.google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset getDestinationDataset(); /** * * @@ -63,35 +58,40 @@ public interface SubscribeListingRequestOrBuilder * * .google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset destination_dataset = 3; * - * - * @return Whether the destinationDataset field is set. */ - 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; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * - * @return The destinationDataset. + * @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(); diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java index 786185116d5b..586551c6fb8d 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/SubscribeListingResponse.java @@ -22,8 +22,7 @@ * * *
- * 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} @@ -261,8 +260,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * 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} diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.java index 62a25b3be115..4d27bd4af4c2 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequest.java @@ -22,7 +22,7 @@ * * *
- * Message for updating a DataExchange.
+ * Message for updating a data exchange.
  * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest} @@ -142,10 +142,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * 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]; @@ -161,10 +160,9 @@ public 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.
+   * 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]; @@ -180,10 +178,9 @@ public 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.
+   * 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]; @@ -200,7 +197,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-   * Required. The DataExchange to update.
+   * Required. The data exchange to update.
    * 
* * @@ -217,7 +214,7 @@ public boolean hasDataExchange() { * * *
-   * Required. The DataExchange to update.
+   * Required. The data exchange to update.
    * 
* * @@ -236,7 +233,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchan * * *
-   * Required. The DataExchange to update.
+   * Required. The data exchange to update.
    * 
* * @@ -434,7 +431,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Message for updating a DataExchange.
+   * Message for updating a data exchange.
    * 
* * Protobuf type {@code google.cloud.bigquery.dataexchange.v1beta1.UpdateDataExchangeRequest} @@ -630,10 +627,9 @@ public Builder mergeFrom( * * *
-     * 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]; @@ -648,10 +644,9 @@ public 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.
+     * 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]; @@ -672,10 +667,9 @@ public 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.
+     * 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]; @@ -698,10 +692,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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]; @@ -721,10 +714,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * 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]; @@ -749,10 +741,9 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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]; @@ -773,10 +764,9 @@ public Builder clearUpdateMask() { * * *
-     * 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]; @@ -791,10 +781,9 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * 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]; @@ -813,10 +802,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * 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]; @@ -849,7 +837,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* * @@ -865,7 +853,7 @@ public boolean hasDataExchange() { * * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* * @@ -887,7 +875,7 @@ public com.google.cloud.bigquery.dataexchange.v1beta1.DataExchange getDataExchan * * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* * @@ -912,7 +900,7 @@ public Builder setDataExchange( * * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* * @@ -934,7 +922,7 @@ public Builder setDataExchange( * * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* * @@ -963,7 +951,7 @@ public Builder mergeDataExchange( * * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* * @@ -985,7 +973,7 @@ public Builder clearDataExchange() { * * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* * @@ -1002,7 +990,7 @@ public Builder clearDataExchange() { * * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* * @@ -1023,7 +1011,7 @@ public Builder clearDataExchange() { * * *
-     * Required. The DataExchange to update.
+     * Required. The data exchange to update.
      * 
* * diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java index 10325593fed4..c0bd3d0dda68 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateDataExchangeRequestOrBuilder.java @@ -27,10 +27,9 @@ public interface UpdateDataExchangeRequestOrBuilder * * *
-   * 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]; @@ -43,10 +42,9 @@ public interface UpdateDataExchangeRequestOrBuilder * * *
-   * 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]; @@ -59,10 +57,9 @@ public interface UpdateDataExchangeRequestOrBuilder * * *
-   * 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]; @@ -74,7 +71,7 @@ public interface UpdateDataExchangeRequestOrBuilder * * *
-   * Required. The DataExchange to update.
+   * Required. The data exchange to update.
    * 
* * @@ -88,7 +85,7 @@ public interface UpdateDataExchangeRequestOrBuilder * * *
-   * Required. The DataExchange to update.
+   * Required. The data exchange to update.
    * 
* * @@ -102,7 +99,7 @@ public interface UpdateDataExchangeRequestOrBuilder * * *
-   * Required. The DataExchange to update.
+   * Required. The data exchange to update.
    * 
* * diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.java index 47ae35e1df20..7cd90faf837f 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequest.java @@ -142,10 +142,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * 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]; @@ -161,10 +160,9 @@ public 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.
+   * 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]; @@ -180,10 +178,9 @@ public 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.
+   * 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]; @@ -625,10 +622,9 @@ public Builder mergeFrom( * * *
-     * 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]; @@ -643,10 +639,9 @@ public 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.
+     * 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]; @@ -667,10 +662,9 @@ public 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.
+     * 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]; @@ -693,10 +687,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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]; @@ -716,10 +709,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * 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]; @@ -744,10 +736,9 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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]; @@ -768,10 +759,9 @@ public Builder clearUpdateMask() { * * *
-     * 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]; @@ -786,10 +776,9 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * 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]; @@ -808,10 +797,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * 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]; diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java index 31b96e9dc59c..7bb5aa14a750 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/UpdateListingRequestOrBuilder.java @@ -27,10 +27,9 @@ public interface UpdateListingRequestOrBuilder * * *
-   * 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]; @@ -43,10 +42,9 @@ public interface UpdateListingRequestOrBuilder * * *
-   * 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]; @@ -59,10 +57,9 @@ public interface UpdateListingRequestOrBuilder * * *
-   * 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]; diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/proto/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/proto/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto index 76a2c5e709ff..f18a0e49e09f 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/src/main/proto/google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto +++ b/java-bigquery-data-exchange/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 { }