Skip to content

Commit 21d4779

Browse files
Google APIscopybara-github
authored andcommitted
chore: add/correct proto namespace options
PiperOrigin-RevId: 438627610
1 parent 52df4b4 commit 21d4779

2 files changed

Lines changed: 52 additions & 55 deletions

File tree

google/cloud/bigquery/dataexchange/common/common.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ syntax = "proto3";
1616

1717
package google.cloud.bigquery.dataexchange.common;
1818

19+
option csharp_namespace = "Google.Cloud.BigQuery.DataExchange.Common";
1920
option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/dataexchange/common;common";
2021
option java_multiple_files = true;
2122
option java_outer_classname = "CommonProto";
2223
option java_package = "com.google.cloud.bigquery.dataexchange.common";
24+
option php_namespace = "Google\\Cloud\\BigQuery\\DataExchange\\Common";
25+
option ruby_package = "Google::Cloud::Bigquery::DataExchange::Common";
2326

2427
// Listing categories.
2528
enum Category {

google/cloud/bigquery/dataexchange/v1beta1/dataexchange.proto

Lines changed: 49 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/dataex
3232
option java_multiple_files = true;
3333
option java_outer_classname = "DataExchangeProto";
3434
option java_package = "com.google.cloud.bigquery.dataexchange.v1beta1";
35+
option php_namespace = "Google\\Cloud\\BigQuery\\DataExchange\\V1beta1";
36+
option ruby_package = "Google::Cloud::Bigquery::DataExchange::V1beta1";
3537
option (google.api.resource_definition) = {
3638
type: "bigquery.googleapis.com/Dataset"
3739
pattern: "projects/{project}/datasets/{dataset}"
@@ -49,17 +51,15 @@ service AnalyticsHubService {
4951
"https://www.googleapis.com/auth/cloud-platform";
5052

5153
// Lists DataExchanges in a given project and location.
52-
rpc ListDataExchanges(ListDataExchangesRequest)
53-
returns (ListDataExchangesResponse) {
54+
rpc ListDataExchanges(ListDataExchangesRequest) returns (ListDataExchangesResponse) {
5455
option (google.api.http) = {
5556
get: "/v1beta1/{parent=projects/*/locations/*}/dataExchanges"
5657
};
5758
option (google.api.method_signature) = "parent";
5859
}
5960

6061
// Lists DataExchanges from projects in a given organization and location.
61-
rpc ListOrgDataExchanges(ListOrgDataExchangesRequest)
62-
returns (ListOrgDataExchangesResponse) {
62+
rpc ListOrgDataExchanges(ListOrgDataExchangesRequest) returns (ListOrgDataExchangesResponse) {
6363
option (google.api.http) = {
6464
get: "/v1beta1/{organization=organizations/*/locations/*}/dataExchanges"
6565
};
@@ -93,8 +93,7 @@ service AnalyticsHubService {
9393
}
9494

9595
// Deletes a single DataExchange.
96-
rpc DeleteDataExchange(DeleteDataExchangeRequest)
97-
returns (google.protobuf.Empty) {
96+
rpc DeleteDataExchange(DeleteDataExchangeRequest) returns (google.protobuf.Empty) {
9897
option (google.api.http) = {
9998
delete: "/v1beta1/{name=projects/*/locations/*/dataExchanges/*}"
10099
};
@@ -149,8 +148,7 @@ service AnalyticsHubService {
149148
// Data Exchange currently supports one type of Listing: a BigQuery dataset.
150149
// Upon subscription to a Listing for a BigQuery dataset, Data Exchange
151150
// creates a linked dataset in the subscriber's project.
152-
rpc SubscribeListing(SubscribeListingRequest)
153-
returns (SubscribeListingResponse) {
151+
rpc SubscribeListing(SubscribeListingRequest) returns (SubscribeListingResponse) {
154152
option (google.api.http) = {
155153
post: "/v1beta1/{name=projects/*/locations/*/dataExchanges/*/listings/*}:subscribe"
156154
body: "*"
@@ -159,8 +157,7 @@ service AnalyticsHubService {
159157
}
160158

161159
// Gets the IAM policy for a dataExchange or a listing.
162-
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest)
163-
returns (google.iam.v1.Policy) {
160+
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) {
164161
option (google.api.http) = {
165162
post: "/v1beta1/{resource=projects/*/locations/*/dataExchanges/*}:getIamPolicy"
166163
body: "*"
@@ -172,8 +169,7 @@ service AnalyticsHubService {
172169
}
173170

174171
// Sets the IAM policy for a dataExchange or a listing.
175-
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest)
176-
returns (google.iam.v1.Policy) {
172+
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) {
177173
option (google.api.http) = {
178174
post: "/v1beta1/{resource=projects/*/locations/*/dataExchanges/*}:setIamPolicy"
179175
body: "*"
@@ -186,8 +182,7 @@ service AnalyticsHubService {
186182

187183
// Returns the permissions that a caller has on a specified dataExchange or
188184
// listing.
189-
rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest)
190-
returns (google.iam.v1.TestIamPermissionsResponse) {
185+
rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) {
191186
option (google.api.http) = {
192187
post: "/v1beta1/{resource=projects/*/locations/*/dataExchanges/*}:testIamPermissions"
193188
body: "*"
@@ -212,21 +207,24 @@ message DataExchange {
212207
// e.g. `projects/myproject/locations/US/dataExchanges/123`.
213208
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
214209

215-
// Required. Human-readable display name of the data exchange. The display
216-
// name must contain only Unicode letters, numbers (0-9), underscores (_),
217-
// dashes (-), spaces ( ), and can't start or end with spaces. Default value
218-
// is an empty string. Max length: 63 bytes.
210+
// Required. Human-readable display name of the data exchange. The display name must
211+
// contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
212+
// spaces ( ), and can't start or end with spaces.
213+
// Default value is an empty string.
214+
// Max length: 63 bytes.
219215
string display_name = 2 [(google.api.field_behavior) = REQUIRED];
220216

221-
// Optional. Short description of the data exchange that can consist of
222-
// sentences or paragraphs. The description must not contain Unicode
223-
// non-characters as well as C0 and C1 control codes except tabs (HT), new
224-
// lines (LF), carriage returns (CR), and page breaks (FF). Default value is
225-
// an empty string. Max length: 2000 bytes.
217+
// Optional. Short description of the data exchange that can consist of sentences
218+
// or paragraphs. The description must not contain Unicode non-characters as
219+
// well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage
220+
// returns (CR), and page breaks (FF).
221+
// Default value is an empty string.
222+
// Max length: 2000 bytes.
226223
string description = 3 [(google.api.field_behavior) = OPTIONAL];
227224

228-
// Optional. Email, URL or other reference of the primary point of contact of
229-
// the data exchange Max Length: 1000 bytes.
225+
// Optional. Email, URL or other reference of the primary point of contact of the data
226+
// exchange
227+
// Max Length: 1000 bytes.
230228
string primary_contact = 4 [(google.api.field_behavior) = OPTIONAL];
231229

232230
// Optional. Documentation describing the data exchange.
@@ -235,11 +233,11 @@ message DataExchange {
235233
// Output only. Number of listings contained in the data exchange.
236234
int32 listing_count = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
237235

238-
// Optional. Base64 encoded image representing the data exchange. Max
239-
// Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API
240-
// only performs validation on size of the encoded data. Note: For byte
241-
// fields, the contents of the field are base64-encoded (which increases the
242-
// size of the data by 33-36%) when using JSON on the wire.
236+
// Optional. Base64 encoded image representing the data exchange. Max Size: 3.0MiB
237+
// Expected image dimensions are 512x512 pixels, however the API only
238+
// performs validation on size of the encoded data.
239+
// Note: For byte fields, the contents of the field are base64-encoded (which
240+
// increases the size of the data by 33-36%) when using JSON on the wire.
243241
bytes icon = 7 [(google.api.field_behavior) = OPTIONAL];
244242
}
245243

@@ -277,16 +275,13 @@ message DestinationDatasetReference {
277275
// Defines the Destination BigQuery Dataset.
278276
message DestinationDataset {
279277
// Required. A reference that identifies the destination dataset.
280-
DestinationDatasetReference dataset_reference = 1
281-
[(google.api.field_behavior) = REQUIRED];
278+
DestinationDatasetReference dataset_reference = 1 [(google.api.field_behavior) = REQUIRED];
282279

283280
// Optional. A descriptive name for the dataset.
284-
google.protobuf.StringValue friendly_name = 2
285-
[(google.api.field_behavior) = OPTIONAL];
281+
google.protobuf.StringValue friendly_name = 2 [(google.api.field_behavior) = OPTIONAL];
286282

287283
// Optional. A user-friendly description of the dataset.
288-
google.protobuf.StringValue description = 3
289-
[(google.api.field_behavior) = OPTIONAL];
284+
google.protobuf.StringValue description = 3 [(google.api.field_behavior) = OPTIONAL];
290285

291286
// Optional. The labels associated with this dataset. You can use these
292287
// to organize and group your datasets.
@@ -321,8 +316,8 @@ message Listing {
321316
// Resource name of the dataset source for this listing.
322317
// e.g. `projects/myproject/datasets/123`
323318
string dataset = 1 [(google.api.resource_reference) = {
324-
type: "bigquery.googleapis.com/Dataset"
325-
}];
319+
type: "bigquery.googleapis.com/Dataset"
320+
}];
326321
}
327322

328323
// State of the Listing
@@ -339,10 +334,11 @@ message Listing {
339334
// e.g. `projects/myproject/locations/US/dataExchanges/123/listings/456`
340335
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
341336

342-
// Required. Human-readable display name of the listing. The display name must
343-
// contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
344-
// spaces ( ), and can't start or end with spaces. Default value is an empty
345-
// string. Max length: 63 bytes.
337+
// Required. Human-readable display name of the listing. The display name must contain
338+
// only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces
339+
// ( ), and can't start or end with spaces.
340+
// Default value is an empty string.
341+
// Max length: 63 bytes.
346342
string display_name = 2 [(google.api.field_behavior) = REQUIRED];
347343

348344
// Optional. Short description of the listing that can consist of sentences or
@@ -363,8 +359,7 @@ message Listing {
363359
// Listing source.
364360
oneof source {
365361
// Required. Shared dataset i.e. BigQuery dataset source.
366-
BigQueryDatasetSource bigquery_dataset = 6
367-
[(google.api.field_behavior) = REQUIRED];
362+
BigQueryDatasetSource bigquery_dataset = 6 [(google.api.field_behavior) = REQUIRED];
368363
}
369364

370365
// Output only. Current state of the Listing.
@@ -381,11 +376,10 @@ message Listing {
381376
DataProvider data_provider = 9 [(google.api.field_behavior) = OPTIONAL];
382377

383378
// Optional. Categories of the Listing. Up to two categories are allowed.
384-
repeated google.cloud.bigquery.dataexchange.common.Category categories = 10
385-
[(google.api.field_behavior) = OPTIONAL];
379+
repeated google.cloud.bigquery.dataexchange.common.Category categories = 10 [(google.api.field_behavior) = OPTIONAL];
386380

387-
// Optional. The details of the Publisher who owns the listing and has rights
388-
// to share the source data.
381+
// Optional. The details of the Publisher who owns the listing and has rights to share
382+
// the source data.
389383
Publisher publisher = 11 [(google.api.field_behavior) = OPTIONAL];
390384

391385
// Optional. Email or URL of the request access of the listing.
@@ -426,8 +420,8 @@ message ListDataExchangesResponse {
426420
// Message for requesting list of DataExchanges from projects in an organization
427421
// and location.
428422
message ListOrgDataExchangesRequest {
429-
// Required. The organization resource path of the projects containing
430-
// DataExchanges. e.g. `organizations/myorg/locations/US`.
423+
// Required. The organization resource path of the projects containing DataExchanges.
424+
// e.g. `organizations/myorg/locations/US`.
431425
string organization = 1 [(google.api.field_behavior) = REQUIRED];
432426

433427
// The maximum number of results to return in a single response page. Leverage
@@ -489,8 +483,7 @@ message UpdateDataExchangeRequest {
489483
// DataExchange resource by the update.
490484
// The fields specified in the update_mask are relative to the resource, not
491485
// the full request.
492-
google.protobuf.FieldMask update_mask = 1
493-
[(google.api.field_behavior) = REQUIRED];
486+
google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
494487

495488
// Required. The DataExchange to update.
496489
DataExchange data_exchange = 2 [(google.api.field_behavior) = REQUIRED];
@@ -577,8 +570,7 @@ message UpdateListingRequest {
577570
// Listing resource by the update.
578571
// The fields specified in the update_mask are relative to the resource, not
579572
// the full request.
580-
google.protobuf.FieldMask update_mask = 1
581-
[(google.api.field_behavior) = REQUIRED];
573+
google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED];
582574

583575
// Required. The listing to update.
584576
Listing listing = 2 [(google.api.field_behavior) = REQUIRED];
@@ -616,4 +608,6 @@ message SubscribeListingRequest {
616608

617609
// Message for response to subscribing a Listing.
618610
// Empty for now.
619-
message SubscribeListingResponse {}
611+
message SubscribeListingResponse {
612+
613+
}

0 commit comments

Comments
 (0)