Package com.google.bytestream
Class ByteStreamGrpc
java.lang.Object
com.google.bytestream.ByteStreamGrpc
#### Introduction The Byte Stream API enables a client to read and write a stream of bytes to and from a resource. Resources have names, and these names are supplied in the API calls below to identify the resource that is being read from or written to. All implementations of the Byte Stream API export the interface defined here: * `Read()`: Reads the contents of a resource. * `Write()`: Writes the contents of a resource. The client can call `Write()` multiple times with the same resource and can check the status of the write by calling `QueryWriteStatus()`. #### Service parameters and metadata The ByteStream API provides no direct way to access/modify any metadata associated with the resource. #### Errors The errors returned by the service are in the Google canonical error space.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
#### Introduction The Byte Stream API enables a client to read and write a stream of bytes to and from a resource.static final class
A stub to allow clients to do synchronous rpc calls to service ByteStream.static final class
A stub to allow clients to do ListenableFuture-style rpc calls to service ByteStream.static class
Base class for the server implementation of the service ByteStream.static final class
A stub to allow clients to do asynchronous rpc calls to service ByteStream. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final io.grpc.ServerServiceDefinition
bindService
(ByteStreamGrpc.AsyncService service) static io.grpc.MethodDescriptor<ByteStreamProto.QueryWriteStatusRequest,
ByteStreamProto.QueryWriteStatusResponse> static io.grpc.MethodDescriptor<ByteStreamProto.ReadRequest,
ByteStreamProto.ReadResponse> static io.grpc.ServiceDescriptor
static io.grpc.MethodDescriptor<ByteStreamProto.WriteRequest,
ByteStreamProto.WriteResponse> newBlockingStub
(io.grpc.Channel channel) Creates a new blocking-style stub that supports unary and streaming output calls on the servicenewFutureStub
(io.grpc.Channel channel) Creates a new ListenableFuture-style stub that supports unary calls on the servicenewStub
(io.grpc.Channel channel) Creates a new async stub that supports all call types for the service
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
getReadMethod
public static io.grpc.MethodDescriptor<ByteStreamProto.ReadRequest,ByteStreamProto.ReadResponse> getReadMethod() -
getWriteMethod
public static io.grpc.MethodDescriptor<ByteStreamProto.WriteRequest,ByteStreamProto.WriteResponse> getWriteMethod() -
getQueryWriteStatusMethod
public static io.grpc.MethodDescriptor<ByteStreamProto.QueryWriteStatusRequest,ByteStreamProto.QueryWriteStatusResponse> getQueryWriteStatusMethod() -
newStub
Creates a new async stub that supports all call types for the service -
newBlockingStub
Creates a new blocking-style stub that supports unary and streaming output calls on the service -
newFutureStub
Creates a new ListenableFuture-style stub that supports unary calls on the service -
bindService
public static final io.grpc.ServerServiceDefinition bindService(ByteStreamGrpc.AsyncService service) -
getServiceDescriptor
public static io.grpc.ServiceDescriptor getServiceDescriptor()
-