Struct google_api_proto::google::storage::v2::WriteObjectRequest
source · pub struct WriteObjectRequest {
pub write_offset: i64,
pub object_checksums: Option<ObjectChecksums>,
pub finish_write: bool,
pub common_object_request_params: Option<CommonObjectRequestParams>,
pub first_message: Option<FirstMessage>,
pub data: Option<Data>,
}
Expand description
Request message for WriteObject.
Fields§
§write_offset: i64
Required. The offset from the beginning of the object at which the data should be written.
In the first WriteObjectRequest
of a WriteObject()
action, it
indicates the initial offset for the Write()
call. The value must be
equal to the persisted_size
that a call to QueryWriteStatus()
would
return (0 if this is the first write to the object).
On subsequent calls, this value must be no larger than the sum of the
first write_offset
and the sizes of all data
chunks sent previously on
this stream.
An incorrect value will cause an error.
object_checksums: Option<ObjectChecksums>
Checksums for the complete object. If the checksums computed by the service don’t match the specified checksums the call will fail. May only be provided in the first or last request (either with first_message, or finish_write set).
finish_write: bool
If true
, this indicates that the write is complete. Sending any
WriteObjectRequest
s subsequent to one in which finish_write
is true
will cause an error.
For a non-resumable write (where the upload_id was not set in the first
message), it is an error not to set this field in the final message of the
stream.
common_object_request_params: Option<CommonObjectRequestParams>
A set of parameters common to Storage API requests concerning an object.
first_message: Option<FirstMessage>
The first message of each stream should set one of the following.
data: Option<Data>
A portion of the data for the object.
Trait Implementations§
source§impl Clone for WriteObjectRequest
impl Clone for WriteObjectRequest
source§fn clone(&self) -> WriteObjectRequest
fn clone(&self) -> WriteObjectRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WriteObjectRequest
impl Debug for WriteObjectRequest
source§impl Default for WriteObjectRequest
impl Default for WriteObjectRequest
source§impl Message for WriteObjectRequest
impl Message for WriteObjectRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for WriteObjectRequest
impl PartialEq for WriteObjectRequest
source§fn eq(&self, other: &WriteObjectRequest) -> bool
fn eq(&self, other: &WriteObjectRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WriteObjectRequest
Auto Trait Implementations§
impl !Freeze for WriteObjectRequest
impl RefUnwindSafe for WriteObjectRequest
impl Send for WriteObjectRequest
impl Sync for WriteObjectRequest
impl Unpin for WriteObjectRequest
impl UnwindSafe for WriteObjectRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request