pub struct FetchBlobResponse {
pub status: Option<Status>,
pub uri: String,
pub qualifiers: Vec<Qualifier>,
pub expires_at: Option<Timestamp>,
pub blob_digest: Option<Digest>,
pub digest_function: i32,
}Expand description
A response message for [Fetch.FetchBlob][build.bazel.remote.asset.v1.Fetch.FetchBlob].
Fields§
§status: Option<Status>If the status has a code other than OK, it indicates that the operation
was unable to be completed for reasons outside the servers’ control.
The possible fetch errors include:
DEADLINE_EXCEEDED: The operation could not be completed within the specified timeout.NOT_FOUND: The requested asset was not found at the specified location.PERMISSION_DENIED: The request was rejected by a remote server, or requested an asset from a disallowed origin.ABORTED: The operation could not be completed, typically due to a failed consistency check.RESOURCE_EXHAUSTED: There is insufficient quota of some resource to perform the requested operation. The client may retry after a delay.
uri: StringThe uri from the request that resulted in a successful retrieval, or from
which the error indicated in status was obtained.
qualifiers: Vec<Qualifier>Any qualifiers known to the server and of interest to clients.
expires_at: Option<Timestamp>A minimum timestamp the content is expected to be available through. Servers MAY omit this field, if not known with confidence.
blob_digest: Option<Digest>The result of the fetch, if the status had code OK.
The digest of the file’s contents, available for download through the CAS.
digest_function: i32This field SHOULD be set to the digest function that was used by the server to compute [FetchBlobResponse.blob_digest]. Clients could use this to determine whether the server honors [FetchBlobRequest.digest_function] that was set in the request.
If unset, clients SHOULD default to use SHA256 regardless of the requested [FetchBlobRequest.digest_function].
Implementations§
Source§impl FetchBlobResponse
impl FetchBlobResponse
Sourcepub fn digest_function(&self) -> Value
pub fn digest_function(&self) -> Value
Returns the enum value of digest_function, or the default if the field is set to an invalid enum value.
Sourcepub fn set_digest_function(&mut self, value: Value)
pub fn set_digest_function(&mut self, value: Value)
Sets digest_function to the provided enum value.
Trait Implementations§
Source§impl Clone for FetchBlobResponse
impl Clone for FetchBlobResponse
Source§fn clone(&self) -> FetchBlobResponse
fn clone(&self) -> FetchBlobResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FetchBlobResponse
impl Debug for FetchBlobResponse
Source§impl Default for FetchBlobResponse
impl Default for FetchBlobResponse
Source§impl Message for FetchBlobResponse
impl Message for FetchBlobResponse
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 FetchBlobResponse
impl PartialEq for FetchBlobResponse
impl StructuralPartialEq for FetchBlobResponse
Auto Trait Implementations§
impl Freeze for FetchBlobResponse
impl RefUnwindSafe for FetchBlobResponse
impl Send for FetchBlobResponse
impl Sync for FetchBlobResponse
impl Unpin for FetchBlobResponse
impl UnwindSafe for FetchBlobResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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