Struct google_api_proto::google::devtools::resultstore::v2::GetFileRequest
source · pub struct GetFileRequest {
pub uri: String,
pub read_offset: i64,
pub read_limit: i64,
pub archive_entry: String,
}
Expand description
Request object for GetFile
Fields§
§uri: String
This corresponds to the uri field in the File message: for an obfuscated File.uri like CglidWlsZC5sb2cSJDI3YmI5ZWQxLTVjYzEtNGFlNi1iMWRkLTVlODY0YWEzYmE2ZQ, the value here should be files/CglidWlsZC5sb2cSJDI3YmI5ZWQxLTVjYzEtNGFlNi1iMWRkLTVlODY0YWEzYmE2ZQ
read_offset: i64
The offset for the first byte to return in the read, relative to the start of the resource.
A read_offset
that is negative or greater than the size of the resource
will cause an OUT_OF_RANGE
error.
read_limit: i64
The maximum number of data
bytes the server is allowed to return in the
sum of all ReadResponse
messages. A read_limit
of zero indicates that
there is no limit, and a negative read_limit
will cause an error.
If the stream returns fewer bytes than allowed by the read_limit
and no
error occurred, the stream includes all data from the read_offset
to the
end of the resource.
archive_entry: String
Only applies if the referenced file is a known archive type (ar, jar, zip) The above read_offset and read_limit fields are applied to this entry. If this file is not an archive, INVALID_ARGUMENT is thrown.
Trait Implementations§
source§impl Clone for GetFileRequest
impl Clone for GetFileRequest
source§fn clone(&self) -> GetFileRequest
fn clone(&self) -> GetFileRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetFileRequest
impl Debug for GetFileRequest
source§impl Default for GetFileRequest
impl Default for GetFileRequest
source§impl Message for GetFileRequest
impl Message for GetFileRequest
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 GetFileRequest
impl PartialEq for GetFileRequest
source§fn eq(&self, other: &GetFileRequest) -> bool
fn eq(&self, other: &GetFileRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetFileRequest
Auto Trait Implementations§
impl Freeze for GetFileRequest
impl RefUnwindSafe for GetFileRequest
impl Send for GetFileRequest
impl Sync for GetFileRequest
impl Unpin for GetFileRequest
impl UnwindSafe for GetFileRequest
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