Struct google_api_proto::google::cloud::discoveryengine::logging::ErrorLog
source · pub struct ErrorLog {
pub service_context: Option<ServiceContext>,
pub context: Option<ErrorContext>,
pub message: String,
pub status: Option<Status>,
pub request_payload: Option<Struct>,
pub response_payload: Option<Struct>,
pub import_payload: Option<ImportErrorContext>,
}
Expand description
An error log which is reported to the Error Reporting system.
Fields§
§service_context: Option<ServiceContext>
The service context in which this error has occurred.
context: Option<ErrorContext>
A description of the context in which the error occurred.
message: String
A message describing the error.
status: Option<Status>
The RPC status associated with the error log.
request_payload: Option<Struct>
The API request payload, represented as a protocol buffer.
Most API request types are supported—for example:
type.googleapis.com/google.cloud.discoveryengine.v1alpha.DocumentService.CreateDocumentRequest
type.googleapis.com/google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEventRequest
response_payload: Option<Struct>
The API response payload, represented as a protocol buffer.
This is used to log some “soft errors”, where the response is valid but we consider there are some quality issues like unjoined events.
The following API responses are supported, and no PII is included:
google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend
google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEvent
google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent
import_payload: Option<ImportErrorContext>
The error payload that is populated on LRO import APIs.
Trait Implementations§
source§impl Message for ErrorLog
impl Message for ErrorLog
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for ErrorLog
impl PartialEq for ErrorLog
impl StructuralPartialEq for ErrorLog
Auto Trait Implementations§
impl Freeze for ErrorLog
impl RefUnwindSafe for ErrorLog
impl Send for ErrorLog
impl Sync for ErrorLog
impl Unpin for ErrorLog
impl UnwindSafe for ErrorLog
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
Mutably borrows from an owned value. Read more
§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>
Wrap the input message
T
in a tonic::Request