var File_google_cloud_retail_logging_error_log_proto protoreflect.FileDescriptor
A description of the context in which an error occurred.
type ErrorContext struct { // The HTTP request which was processed when the error was triggered. HttpRequest *HttpRequestContext `protobuf:"bytes,1,opt,name=http_request,json=httpRequest,proto3" json:"http_request,omitempty"` // The location in the source code where the decision was made to // report the error, usually the place where it was logged. ReportLocation *SourceLocation `protobuf:"bytes,2,opt,name=report_location,json=reportLocation,proto3" json:"report_location,omitempty"` // contains filtered or unexported fields }
func (*ErrorContext) Descriptor() ([]byte, []int)
Deprecated: Use ErrorContext.ProtoReflect.Descriptor instead.
func (x *ErrorContext) GetHttpRequest() *HttpRequestContext
func (x *ErrorContext) GetReportLocation() *SourceLocation
func (*ErrorContext) ProtoMessage()
func (x *ErrorContext) ProtoReflect() protoreflect.Message
func (x *ErrorContext) Reset()
func (x *ErrorContext) String() string
An error log which is reported to the Error Reporting system. This proto a superset of google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent.
type ErrorLog struct { // The service context in which this error has occurred. ServiceContext *ServiceContext `protobuf:"bytes,1,opt,name=service_context,json=serviceContext,proto3" json:"service_context,omitempty"` // A description of the context in which the error occurred. Context *ErrorContext `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"` // A message describing the error. Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // The RPC status associated with the error log. Status *status.Status `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` // The API request payload, represented as a protocol buffer. // // Most API request types are supported. For example: // // "type.googleapis.com/google.cloud.retail.v2.ProductService.CreateProductRequest" // "type.googleapis.com/google.cloud.retail.v2.UserEventService.WriteUserEventRequest" RequestPayload *structpb.Struct `protobuf:"bytes,5,opt,name=request_payload,json=requestPayload,proto3" json:"request_payload,omitempty"` // 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.retail.v2.PredictionService.Predict" // "google.cloud.retail.v2.UserEventService.WriteUserEvent" // "google.cloud.retail.v2.UserEventService.CollectUserEvent" ResponsePayload *structpb.Struct `protobuf:"bytes,6,opt,name=response_payload,json=responsePayload,proto3" json:"response_payload,omitempty"` // The error payload that is populated on LRO import APIs. ImportPayload *ImportErrorContext `protobuf:"bytes,7,opt,name=import_payload,json=importPayload,proto3" json:"import_payload,omitempty"` // contains filtered or unexported fields }
func (*ErrorLog) Descriptor() ([]byte, []int)
Deprecated: Use ErrorLog.ProtoReflect.Descriptor instead.
func (x *ErrorLog) GetContext() *ErrorContext
func (x *ErrorLog) GetImportPayload() *ImportErrorContext
func (x *ErrorLog) GetMessage() string
func (x *ErrorLog) GetRequestPayload() *structpb.Struct
func (x *ErrorLog) GetResponsePayload() *structpb.Struct
func (x *ErrorLog) GetServiceContext() *ServiceContext
func (x *ErrorLog) GetStatus() *status.Status
func (*ErrorLog) ProtoMessage()
func (x *ErrorLog) ProtoReflect() protoreflect.Message
func (x *ErrorLog) Reset()
func (x *ErrorLog) String() string
HTTP request data that is related to a reported error.
type HttpRequestContext struct { // The HTTP response status code for the request. ResponseStatusCode int32 `protobuf:"varint,1,opt,name=response_status_code,json=responseStatusCode,proto3" json:"response_status_code,omitempty"` // contains filtered or unexported fields }
func (*HttpRequestContext) Descriptor() ([]byte, []int)
Deprecated: Use HttpRequestContext.ProtoReflect.Descriptor instead.
func (x *HttpRequestContext) GetResponseStatusCode() int32
func (*HttpRequestContext) ProtoMessage()
func (x *HttpRequestContext) ProtoReflect() protoreflect.Message
func (x *HttpRequestContext) Reset()
func (x *HttpRequestContext) String() string
The error payload that is populated on LRO import APIs, including
"google.cloud.retail.v2.ProductService.ImportProducts" and "google.cloud.retail.v2.EventService.ImportUserEvents".
type ImportErrorContext struct { // The operation resource name of the LRO. OperationName string `protobuf:"bytes,1,opt,name=operation_name,json=operationName,proto3" json:"operation_name,omitempty"` // Cloud Storage file path of the import source. // Can be set for batch operation error. GcsPath string `protobuf:"bytes,2,opt,name=gcs_path,json=gcsPath,proto3" json:"gcs_path,omitempty"` // Line number of the content in file. // Should be empty for permission or batch operation error. LineNumber string `protobuf:"bytes,3,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"` // Detailed content which caused the error. // Should be empty for permission or batch operation error. // // Types that are assignable to LineContent: // // *ImportErrorContext_CatalogItem // *ImportErrorContext_Product // *ImportErrorContext_UserEvent LineContent isImportErrorContext_LineContent `protobuf_oneof:"line_content"` // contains filtered or unexported fields }
func (*ImportErrorContext) Descriptor() ([]byte, []int)
Deprecated: Use ImportErrorContext.ProtoReflect.Descriptor instead.
func (x *ImportErrorContext) GetCatalogItem() string
func (x *ImportErrorContext) GetGcsPath() string
func (m *ImportErrorContext) GetLineContent() isImportErrorContext_LineContent
func (x *ImportErrorContext) GetLineNumber() string
func (x *ImportErrorContext) GetOperationName() string
func (x *ImportErrorContext) GetProduct() string
func (x *ImportErrorContext) GetUserEvent() string
func (*ImportErrorContext) ProtoMessage()
func (x *ImportErrorContext) ProtoReflect() protoreflect.Message
func (x *ImportErrorContext) Reset()
func (x *ImportErrorContext) String() string
type ImportErrorContext_CatalogItem struct { // The detailed content which caused the error on importing a catalog item. CatalogItem string `protobuf:"bytes,4,opt,name=catalog_item,json=catalogItem,proto3,oneof"` }
type ImportErrorContext_Product struct { // The detailed content which caused the error on importing a product. Product string `protobuf:"bytes,5,opt,name=product,proto3,oneof"` }
type ImportErrorContext_UserEvent struct { // The detailed content which caused the error on importing a user event. UserEvent string `protobuf:"bytes,6,opt,name=user_event,json=userEvent,proto3,oneof"` }
Describes a running service that sends errors.
type ServiceContext struct { // An identifier of the service. // For example, "retail.googleapis.com". Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // contains filtered or unexported fields }
func (*ServiceContext) Descriptor() ([]byte, []int)
Deprecated: Use ServiceContext.ProtoReflect.Descriptor instead.
func (x *ServiceContext) GetService() string
func (*ServiceContext) ProtoMessage()
func (x *ServiceContext) ProtoReflect() protoreflect.Message
func (x *ServiceContext) Reset()
func (x *ServiceContext) String() string
Indicates a location in the source code of the service for which errors are reported.
type SourceLocation struct { // Human-readable name of a function or method. // For example, "google.cloud.retail.v2.UserEventService.ImportUserEvents". FunctionName string `protobuf:"bytes,1,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"` // contains filtered or unexported fields }
func (*SourceLocation) Descriptor() ([]byte, []int)
Deprecated: Use SourceLocation.ProtoReflect.Descriptor instead.
func (x *SourceLocation) GetFunctionName() string
func (*SourceLocation) ProtoMessage()
func (x *SourceLocation) ProtoReflect() protoreflect.Message
func (x *SourceLocation) Reset()
func (x *SourceLocation) String() string