Struct google_api_proto::google::cloud::webrisk::v1beta1::ComputeThreatListDiffResponse
source · pub struct ComputeThreatListDiffResponse {
pub response_type: i32,
pub additions: Option<ThreatEntryAdditions>,
pub removals: Option<ThreatEntryRemovals>,
pub new_version_token: Bytes,
pub checksum: Option<Checksum>,
pub recommended_next_diff: Option<Timestamp>,
}
Fields§
§response_type: i32
The type of response. This may indicate that an action must be taken by the client when the response is received.
additions: Option<ThreatEntryAdditions>
A set of entries to add to a local threat type’s list.
removals: Option<ThreatEntryRemovals>
A set of entries to remove from a local threat type’s list. This field may be empty.
new_version_token: Bytes
The new opaque client version token.
checksum: Option<Checksum>
The expected SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database after applying the provided diff. If the client state doesn’t match the expected state, the client must disregard this diff and retry later.
recommended_next_diff: Option<Timestamp>
The soonest the client should wait before issuing any diff request. Querying sooner is unlikely to produce a meaningful diff. Waiting longer is acceptable considering the use case. If this field is not set clients may update as soon as they want.
Implementations§
source§impl ComputeThreatListDiffResponse
impl ComputeThreatListDiffResponse
sourcepub fn response_type(&self) -> ResponseType
pub fn response_type(&self) -> ResponseType
Returns the enum value of response_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_response_type(&mut self, value: ResponseType)
pub fn set_response_type(&mut self, value: ResponseType)
Sets response_type
to the provided enum value.
Trait Implementations§
source§impl Clone for ComputeThreatListDiffResponse
impl Clone for ComputeThreatListDiffResponse
source§fn clone(&self) -> ComputeThreatListDiffResponse
fn clone(&self) -> ComputeThreatListDiffResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for ComputeThreatListDiffResponse
impl Message for ComputeThreatListDiffResponse
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 ComputeThreatListDiffResponse
impl PartialEq for ComputeThreatListDiffResponse
source§fn eq(&self, other: &ComputeThreatListDiffResponse) -> bool
fn eq(&self, other: &ComputeThreatListDiffResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ComputeThreatListDiffResponse
Auto Trait Implementations§
impl !Freeze for ComputeThreatListDiffResponse
impl RefUnwindSafe for ComputeThreatListDiffResponse
impl Send for ComputeThreatListDiffResponse
impl Sync for ComputeThreatListDiffResponse
impl Unpin for ComputeThreatListDiffResponse
impl UnwindSafe for ComputeThreatListDiffResponse
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