Struct gapi_grpc::google::bytestream::WriteRequest [−][src]
Request object for ByteStream.Write.
Fields
resource_name: String
The name of the resource to write. This must be set on the first
WriteRequest
of each Write()
action. If it is set on subsequent calls,
it must match the value of the first request.
write_offset: i64
The offset from the beginning of the resource at which the data should be
written. It is required on all WriteRequest
s.
In the first WriteRequest
of a Write()
action, it indicates
the initial offset for the Write()
call. The value must be equal to
the committed_size
that a call to QueryWriteStatus()
would return.
On subsequent calls, this value must be set and must be equal to
the sum of the first write_offset
and the sizes of all data
bundles
sent previously on this stream.
An incorrect value will cause an error.
finish_write: bool
If true
, this indicates that the write is complete. Sending any
WriteRequest
s subsequent to one in which finish_write
is true
will
cause an error.
data: Vec<u8>
A portion of the data for the resource. The client may leave data
empty for any given WriteRequest
. This enables the client to inform the
service that the request is still live while it is running an operation to
generate more data.
Trait Implementations
impl Clone for WriteRequest
[src][+]
impl Debug for WriteRequest
[src][+]
impl Default for WriteRequest
[src][+]
impl Message for WriteRequest
[src][+]
impl PartialEq<WriteRequest> for WriteRequest
[src][+]
impl StructuralPartialEq for WriteRequest
[src]
Auto Trait Implementations
impl RefUnwindSafe for WriteRequest
impl Send for WriteRequest
impl Sync for WriteRequest
impl Unpin for WriteRequest
impl UnwindSafe for WriteRequest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> IntoRequest<T> for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,