Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add comments to GCS gRPC API proto spec to describe how naming work #1139

Merged
merged 2 commits into from Nov 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -29,7 +29,21 @@

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Service Description: Manages Google Cloud Storage resources.
* Service Description: ## API Overview and Naming Syntax
*
* <p>The GCS gRPC API allows applications to read and write data through the abstractions of
* buckets and objects. For a description of these abstractions please see
* https://cloud.google.com/storage/docs.
*
* <p>Resources are named as follows: - Projects are referred to as they are defined by the Resource
* Manager API, using strings like `projects/123456` or `projects/my-string-id`. - Buckets are named
* using string names of the form: `projects/{project}/buckets/{bucket}` For globally unique
* buckets, `_` may be substituted for the project. - Objects are uniquely identified by their name
* along with the name of the bucket they belong to, as separate strings in this API. For example:
*
* <p>ReadObjectRequest { bucket: 'projects/_/buckets/my-bucket' object: 'my-object' } Note that
* object names can contain `/` characters, which are treated as any other character (no special
* directory semantics).
*
* <p>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:
Expand Down
Expand Up @@ -19,7 +19,21 @@
*
* <p>======================= StorageClient =======================
*
* <p>Service Description: Manages Google Cloud Storage resources.
* <p>Service Description: ## API Overview and Naming Syntax
*
* <p>The GCS gRPC API allows applications to read and write data through the abstractions of
* buckets and objects. For a description of these abstractions please see
* https://cloud.google.com/storage/docs.
*
* <p>Resources are named as follows: - Projects are referred to as they are defined by the Resource
* Manager API, using strings like `projects/123456` or `projects/my-string-id`. - Buckets are named
* using string names of the form: `projects/{project}/buckets/{bucket}` For globally unique
* buckets, `_` may be substituted for the project. - Objects are uniquely identified by their name
* along with the name of the bucket they belong to, as separate strings in this API. For example:
*
* <p>ReadObjectRequest { bucket: 'projects/_/buckets/my-bucket' object: 'my-object' } Note that
* object names can contain `/` characters, which are treated as any other character (no special
* directory semantics).
*
* <p>Sample for StorageClient:
*
Expand Down
Expand Up @@ -21,12 +21,30 @@
*
*
* <pre>
* Manages Google Cloud Storage resources.
* ## API Overview and Naming Syntax
* The GCS gRPC API allows applications to read and write data through the
* abstractions of buckets and objects. For a description of these abstractions
* please see https://cloud.google.com/storage/docs.
* Resources are named as follows:
* - Projects are referred to as they are defined by the Resource Manager API,
* using strings like `projects/123456` or `projects/my-string-id`.
* - Buckets are named using string names of the form:
* `projects/{project}/buckets/{bucket}`
* For globally unique buckets, `_` may be substituted for the project.
* - Objects are uniquely identified by their name along with the name of the
* bucket they belong to, as separate strings in this API. For example:
* ReadObjectRequest {
* bucket: 'projects/_/buckets/my-bucket'
* object: 'my-object'
* }
* Note that object names can contain `/` characters, which are treated as
* any other character (no special directory semantics).
* </pre>
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/storage/v2/storage.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class StorageGrpc {

private StorageGrpc() {}
Expand Down Expand Up @@ -252,7 +270,24 @@ public StorageFutureStub newStub(
*
*
* <pre>
* Manages Google Cloud Storage resources.
* ## API Overview and Naming Syntax
* The GCS gRPC API allows applications to read and write data through the
* abstractions of buckets and objects. For a description of these abstractions
* please see https://cloud.google.com/storage/docs.
* Resources are named as follows:
* - Projects are referred to as they are defined by the Resource Manager API,
* using strings like `projects/123456` or `projects/my-string-id`.
* - Buckets are named using string names of the form:
* `projects/{project}/buckets/{bucket}`
* For globally unique buckets, `_` may be substituted for the project.
* - Objects are uniquely identified by their name along with the name of the
* bucket they belong to, as separate strings in this API. For example:
* ReadObjectRequest {
* bucket: 'projects/_/buckets/my-bucket'
* object: 'my-object'
* }
* Note that object names can contain `/` characters, which are treated as
* any other character (no special directory semantics).
* </pre>
*/
public abstract static class StorageImplBase implements io.grpc.BindableService {
Expand Down Expand Up @@ -382,7 +417,24 @@ public final io.grpc.ServerServiceDefinition bindService() {
*
*
* <pre>
* Manages Google Cloud Storage resources.
* ## API Overview and Naming Syntax
* The GCS gRPC API allows applications to read and write data through the
* abstractions of buckets and objects. For a description of these abstractions
* please see https://cloud.google.com/storage/docs.
* Resources are named as follows:
* - Projects are referred to as they are defined by the Resource Manager API,
* using strings like `projects/123456` or `projects/my-string-id`.
* - Buckets are named using string names of the form:
* `projects/{project}/buckets/{bucket}`
* For globally unique buckets, `_` may be substituted for the project.
* - Objects are uniquely identified by their name along with the name of the
* bucket they belong to, as separate strings in this API. For example:
* ReadObjectRequest {
* bucket: 'projects/_/buckets/my-bucket'
* object: 'my-object'
* }
* Note that object names can contain `/` characters, which are treated as
* any other character (no special directory semantics).
* </pre>
*/
public static final class StorageStub extends io.grpc.stub.AbstractAsyncStub<StorageStub> {
Expand Down Expand Up @@ -493,7 +545,24 @@ public void queryWriteStatus(
*
*
* <pre>
* Manages Google Cloud Storage resources.
* ## API Overview and Naming Syntax
* The GCS gRPC API allows applications to read and write data through the
* abstractions of buckets and objects. For a description of these abstractions
* please see https://cloud.google.com/storage/docs.
* Resources are named as follows:
* - Projects are referred to as they are defined by the Resource Manager API,
* using strings like `projects/123456` or `projects/my-string-id`.
* - Buckets are named using string names of the form:
* `projects/{project}/buckets/{bucket}`
* For globally unique buckets, `_` may be substituted for the project.
* - Objects are uniquely identified by their name along with the name of the
* bucket they belong to, as separate strings in this API. For example:
* ReadObjectRequest {
* bucket: 'projects/_/buckets/my-bucket'
* object: 'my-object'
* }
* Note that object names can contain `/` characters, which are treated as
* any other character (no special directory semantics).
* </pre>
*/
public static final class StorageBlockingStub
Expand Down Expand Up @@ -563,7 +632,24 @@ public com.google.storage.v2.QueryWriteStatusResponse queryWriteStatus(
*
*
* <pre>
* Manages Google Cloud Storage resources.
* ## API Overview and Naming Syntax
* The GCS gRPC API allows applications to read and write data through the
* abstractions of buckets and objects. For a description of these abstractions
* please see https://cloud.google.com/storage/docs.
* Resources are named as follows:
* - Projects are referred to as they are defined by the Resource Manager API,
* using strings like `projects/123456` or `projects/my-string-id`.
* - Buckets are named using string names of the form:
* `projects/{project}/buckets/{bucket}`
* For globally unique buckets, `_` may be substituted for the project.
* - Objects are uniquely identified by their name along with the name of the
* bucket they belong to, as separate strings in this API. For example:
* ReadObjectRequest {
* bucket: 'projects/_/buckets/my-bucket'
* object: 'my-object'
* }
* Note that object names can contain `/` characters, which are treated as
* any other character (no special directory semantics).
* </pre>
*/
public static final class StorageFutureStub
Expand Down
Expand Up @@ -14384,11 +14384,6 @@ public com.google.storage.v2.Bucket.Website getDefaultInstanceForType() {
*
* <pre>
* Immutable. The name of the bucket.
* Global buckets will be of the format `projects/{project}/buckets/{bucket}`.
* Other sorts of buckets in the future are not guaranteed to follow this
* pattern.
* For globally unique bucket names, a `_` may be substituted for the project
* ID.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
Expand All @@ -14412,11 +14407,6 @@ public java.lang.String getName() {
*
* <pre>
* Immutable. The name of the bucket.
* Global buckets will be of the format `projects/{project}/buckets/{bucket}`.
* Other sorts of buckets in the future are not guaranteed to follow this
* pattern.
* For globally unique bucket names, a `_` may be substituted for the project
* ID.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
Expand Down Expand Up @@ -14496,8 +14486,6 @@ public com.google.protobuf.ByteString getBucketIdBytes() {
*
* <pre>
* Immutable. The project which owns this bucket.
* Format: projects/{project_number}
* Example: `projects/123456`.
* </pre>
*
* <code>
Expand All @@ -14523,8 +14511,6 @@ public java.lang.String getProject() {
*
* <pre>
* Immutable. The project which owns this bucket.
* Format: projects/{project_number}
* Example: `projects/123456`.
* </pre>
*
* <code>
Expand Down Expand Up @@ -16767,11 +16753,6 @@ public Builder mergeFrom(
*
* <pre>
* Immutable. The name of the bucket.
* Global buckets will be of the format `projects/{project}/buckets/{bucket}`.
* Other sorts of buckets in the future are not guaranteed to follow this
* pattern.
* For globally unique bucket names, a `_` may be substituted for the project
* ID.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
Expand All @@ -16794,11 +16775,6 @@ public java.lang.String getName() {
*
* <pre>
* Immutable. The name of the bucket.
* Global buckets will be of the format `projects/{project}/buckets/{bucket}`.
* Other sorts of buckets in the future are not guaranteed to follow this
* pattern.
* For globally unique bucket names, a `_` may be substituted for the project
* ID.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
Expand All @@ -16821,11 +16797,6 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* <pre>
* Immutable. The name of the bucket.
* Global buckets will be of the format `projects/{project}/buckets/{bucket}`.
* Other sorts of buckets in the future are not guaranteed to follow this
* pattern.
* For globally unique bucket names, a `_` may be substituted for the project
* ID.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
Expand All @@ -16847,11 +16818,6 @@ public Builder setName(java.lang.String value) {
*
* <pre>
* Immutable. The name of the bucket.
* Global buckets will be of the format `projects/{project}/buckets/{bucket}`.
* Other sorts of buckets in the future are not guaranteed to follow this
* pattern.
* For globally unique bucket names, a `_` may be substituted for the project
* ID.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
Expand All @@ -16869,11 +16835,6 @@ public Builder clearName() {
*
* <pre>
* Immutable. The name of the bucket.
* Global buckets will be of the format `projects/{project}/buckets/{bucket}`.
* Other sorts of buckets in the future are not guaranteed to follow this
* pattern.
* For globally unique bucket names, a `_` may be substituted for the project
* ID.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
Expand Down Expand Up @@ -17014,8 +16975,6 @@ public Builder setBucketIdBytes(com.google.protobuf.ByteString value) {
*
* <pre>
* Immutable. The project which owns this bucket.
* Format: projects/{project_number}
* Example: `projects/123456`.
* </pre>
*
* <code>
Expand All @@ -17040,8 +16999,6 @@ public java.lang.String getProject() {
*
* <pre>
* Immutable. The project which owns this bucket.
* Format: projects/{project_number}
* Example: `projects/123456`.
* </pre>
*
* <code>
Expand All @@ -17066,8 +17023,6 @@ public com.google.protobuf.ByteString getProjectBytes() {
*
* <pre>
* Immutable. The project which owns this bucket.
* Format: projects/{project_number}
* Example: `projects/123456`.
* </pre>
*
* <code>
Expand All @@ -17091,8 +17046,6 @@ public Builder setProject(java.lang.String value) {
*
* <pre>
* Immutable. The project which owns this bucket.
* Format: projects/{project_number}
* Example: `projects/123456`.
* </pre>
*
* <code>
Expand All @@ -17112,8 +17065,6 @@ public Builder clearProject() {
*
* <pre>
* Immutable. The project which owns this bucket.
* Format: projects/{project_number}
* Example: `projects/123456`.
* </pre>
*
* <code>
Expand Down
Expand Up @@ -28,11 +28,6 @@ public interface BucketOrBuilder
*
* <pre>
* Immutable. The name of the bucket.
* Global buckets will be of the format `projects/{project}/buckets/{bucket}`.
* Other sorts of buckets in the future are not guaranteed to follow this
* pattern.
* For globally unique bucket names, a `_` may be substituted for the project
* ID.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
Expand All @@ -45,11 +40,6 @@ public interface BucketOrBuilder
*
* <pre>
* Immutable. The name of the bucket.
* Global buckets will be of the format `projects/{project}/buckets/{bucket}`.
* Other sorts of buckets in the future are not guaranteed to follow this
* pattern.
* For globally unique bucket names, a `_` may be substituted for the project
* ID.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
Expand Down Expand Up @@ -92,8 +82,6 @@ public interface BucketOrBuilder
*
* <pre>
* Immutable. The project which owns this bucket.
* Format: projects/{project_number}
* Example: `projects/123456`.
* </pre>
*
* <code>
Expand All @@ -108,8 +96,6 @@ public interface BucketOrBuilder
*
* <pre>
* Immutable. The project which owns this bucket.
* Format: projects/{project_number}
* Example: `projects/123456`.
* </pre>
*
* <code>
Expand Down