Send feedback
Class StorageGrpc (2.28.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.28.0 keyboard_arrow_down
public final class StorageGrpc
API Overview and Naming Syntax
The Cloud Storage 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).
Static Fields
SERVICE_NAME
public static final String SERVICE_NAME
Field Value
Type
Description
String
Static Methods
bindService(StorageGrpc.AsyncService service)
public static final ServerServiceDefinition bindService ( StorageGrpc . AsyncService service )
Returns
Type
Description
io.grpc.ServerServiceDefinition
getCancelResumableWriteMethod()
public static MethodDescriptor<CancelResumableWriteRequest , CancelResumableWriteResponse > getCancelResumableWriteMethod ()
getComposeObjectMethod()
public static MethodDescriptor<ComposeObjectRequest , Object > getComposeObjectMethod ()
getCreateBucketMethod()
public static MethodDescriptor<CreateBucketRequest , Bucket > getCreateBucketMethod ()
getCreateHmacKeyMethod()
public static MethodDescriptor<CreateHmacKeyRequest , CreateHmacKeyResponse > getCreateHmacKeyMethod ()
getCreateNotificationConfigMethod()
public static MethodDescriptor<CreateNotificationConfigRequest , NotificationConfig > getCreateNotificationConfigMethod ()
getDeleteBucketMethod()
public static MethodDescriptor<DeleteBucketRequest , Empty > getDeleteBucketMethod ()
getDeleteHmacKeyMethod()
public static MethodDescriptor<DeleteHmacKeyRequest , Empty > getDeleteHmacKeyMethod ()
getDeleteNotificationConfigMethod()
public static MethodDescriptor<DeleteNotificationConfigRequest , Empty > getDeleteNotificationConfigMethod ()
getDeleteObjectMethod()
public static MethodDescriptor<DeleteObjectRequest , Empty > getDeleteObjectMethod ()
getGetBucketMethod()
public static MethodDescriptor<GetBucketRequest , Bucket > getGetBucketMethod ()
getGetHmacKeyMethod()
public static MethodDescriptor<GetHmacKeyRequest , HmacKeyMetadata > getGetHmacKeyMethod ()
getGetIamPolicyMethod()
public static MethodDescriptor<GetIamPolicyRequest , Policy > getGetIamPolicyMethod ()
Returns
Type
Description
io.grpc.MethodDescriptor <com.google.iam.v1.GetIamPolicyRequest ,com.google.iam.v1.Policy >
getGetNotificationConfigMethod()
public static MethodDescriptor<GetNotificationConfigRequest , NotificationConfig > getGetNotificationConfigMethod ()
getGetObjectMethod()
public static MethodDescriptor<GetObjectRequest , Object > getGetObjectMethod ()
getGetServiceAccountMethod()
public static MethodDescriptor<GetServiceAccountRequest , ServiceAccount > getGetServiceAccountMethod ()
getListBucketsMethod()
public static MethodDescriptor<ListBucketsRequest , ListBucketsResponse > getListBucketsMethod ()
getListHmacKeysMethod()
public static MethodDescriptor<ListHmacKeysRequest , ListHmacKeysResponse > getListHmacKeysMethod ()
getListNotificationConfigsMethod()
public static MethodDescriptor<ListNotificationConfigsRequest , ListNotificationConfigsResponse > getListNotificationConfigsMethod ()
getListObjectsMethod()
public static MethodDescriptor<ListObjectsRequest , ListObjectsResponse > getListObjectsMethod ()
getLockBucketRetentionPolicyMethod()
public static MethodDescriptor<LockBucketRetentionPolicyRequest , Bucket > getLockBucketRetentionPolicyMethod ()
getQueryWriteStatusMethod()
public static MethodDescriptor<QueryWriteStatusRequest , QueryWriteStatusResponse > getQueryWriteStatusMethod ()
getReadObjectMethod()
public static MethodDescriptor<ReadObjectRequest , ReadObjectResponse > getReadObjectMethod ()
getRewriteObjectMethod()
public static MethodDescriptor<RewriteObjectRequest , RewriteResponse > getRewriteObjectMethod ()
getServiceDescriptor()
public static ServiceDescriptor getServiceDescriptor ()
Returns
Type
Description
io.grpc.ServiceDescriptor
getSetIamPolicyMethod()
public static MethodDescriptor<SetIamPolicyRequest , Policy > getSetIamPolicyMethod ()
Returns
Type
Description
io.grpc.MethodDescriptor <com.google.iam.v1.SetIamPolicyRequest ,com.google.iam.v1.Policy >
getStartResumableWriteMethod()
public static MethodDescriptor<StartResumableWriteRequest , StartResumableWriteResponse > getStartResumableWriteMethod ()
getTestIamPermissionsMethod()
public static MethodDescriptor<TestIamPermissionsRequest , TestIamPermissionsResponse > getTestIamPermissionsMethod ()
Returns
Type
Description
io.grpc.MethodDescriptor <com.google.iam.v1.TestIamPermissionsRequest ,com.google.iam.v1.TestIamPermissionsResponse >
getUpdateBucketMethod()
public static MethodDescriptor<UpdateBucketRequest , Bucket > getUpdateBucketMethod ()
getUpdateHmacKeyMethod()
public static MethodDescriptor<UpdateHmacKeyRequest , HmacKeyMetadata > getUpdateHmacKeyMethod ()
getUpdateObjectMethod()
public static MethodDescriptor<UpdateObjectRequest , Object > getUpdateObjectMethod ()
getWriteObjectMethod()
public static MethodDescriptor<WriteObjectRequest , WriteObjectResponse > getWriteObjectMethod ()
newBlockingStub(Channel channel)
public static StorageGrpc . StorageBlockingStub newBlockingStub ( Channel channel )
Creates a new blocking-style stub that supports unary and streaming output calls on the service
Parameter
Name
Description
channel
io.grpc.Channel
newFutureStub(Channel channel)
public static StorageGrpc . StorageFutureStub newFutureStub ( Channel channel )
Creates a new ListenableFuture-style stub that supports unary calls on the service
Parameter
Name
Description
channel
io.grpc.Channel
newStub(Channel channel)
public static StorageGrpc . StorageStub newStub ( Channel channel )
Creates a new async stub that supports all call types for the service
Parameter
Name
Description
channel
io.grpc.Channel
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-16 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-16 UTC."],[],[]]