Struct google_api_proto::google::storage::v1::InsertObjectRequest
source · pub struct InsertObjectRequest {
pub write_offset: i64,
pub object_checksums: Option<ObjectChecksums>,
pub finish_write: bool,
pub common_object_request_params: Option<CommonObjectRequestParams>,
pub common_request_params: Option<CommonRequestParams>,
pub first_message: Option<FirstMessage>,
pub data: Option<Data>,
}
Expand description
Message for writing an object.
Fields§
§write_offset: i64
Required. The offset from the beginning of the object at which the data should be written.
In the first InsertObjectRequest
of a InsertObject()
action, it
indicates the initial offset for the Insert()
call. The value must be
equal to the committed_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 specifified 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
InsertObjectRequest
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.
common_request_params: Option<CommonRequestParams>
A set of parameters common to all Storage API requests.
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 InsertObjectRequest
impl Clone for InsertObjectRequest
source§fn clone(&self) -> InsertObjectRequest
fn clone(&self) -> InsertObjectRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InsertObjectRequest
impl Debug for InsertObjectRequest
source§impl Default for InsertObjectRequest
impl Default for InsertObjectRequest
source§impl Message for InsertObjectRequest
impl Message for InsertObjectRequest
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 InsertObjectRequest
impl PartialEq for InsertObjectRequest
source§fn eq(&self, other: &InsertObjectRequest) -> bool
fn eq(&self, other: &InsertObjectRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InsertObjectRequest
Auto Trait Implementations§
impl !Freeze for InsertObjectRequest
impl RefUnwindSafe for InsertObjectRequest
impl Send for InsertObjectRequest
impl Sync for InsertObjectRequest
impl Unpin for InsertObjectRequest
impl UnwindSafe for InsertObjectRequest
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