pub struct UpdateActionResultRequest {
pub instance_name: String,
pub action_digest: Option<Digest>,
pub action_result: Option<ActionResult>,
pub results_cache_policy: Option<ResultsCachePolicy>,
pub digest_function: i32,
}Expand description
A request message for [ActionCache.UpdateActionResult][build.bazel.remote.execution.v2.ActionCache.UpdateActionResult].
Fields§
§instance_name: StringThe instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted.
action_digest: Option<Digest>The digest of the [Action][build.bazel.remote.execution.v2.Action] whose result is being uploaded.
action_result: Option<ActionResult>The [ActionResult][build.bazel.remote.execution.v2.ActionResult] to store in the cache.
results_cache_policy: Option<ResultsCachePolicy>An optional policy for the results of this execution in the remote cache. The server will have a default policy if this is not provided. This may be applied to both the ActionResult and the associated blobs.
digest_function: i32The digest function that was used to compute the action digest.
If the digest function used is one of MD5, MURMUR3, SHA1, SHA256, SHA384, SHA512, or VSO, the client MAY leave this field unset. In that case the server SHOULD infer the digest function using the length of the action digest hash and the digest functions announced in the server’s capabilities.
Implementations§
Source§impl UpdateActionResultRequest
impl UpdateActionResultRequest
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 UpdateActionResultRequest
impl Clone for UpdateActionResultRequest
Source§fn clone(&self) -> UpdateActionResultRequest
fn clone(&self) -> UpdateActionResultRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpdateActionResultRequest
impl Debug for UpdateActionResultRequest
Source§impl Default for UpdateActionResultRequest
impl Default for UpdateActionResultRequest
Source§impl Message for UpdateActionResultRequest
impl Message for UpdateActionResultRequest
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.impl StructuralPartialEq for UpdateActionResultRequest
Auto Trait Implementations§
impl Freeze for UpdateActionResultRequest
impl RefUnwindSafe for UpdateActionResultRequest
impl Send for UpdateActionResultRequest
impl Sync for UpdateActionResultRequest
impl Unpin for UpdateActionResultRequest
impl UnwindSafe for UpdateActionResultRequest
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